<%-- 
    Document   : ques_view
    Created on : Feb 22, 2008, 11:25:31 AM
    Author     : aili
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
   
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<f:view locale="#{facade.locale}">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>PETS</title>
        <%--<h:outputText value="#{QuestionBean.activeQuestion.head}" escape="false" />--%>
        <script src = '<h:outputText value="#{conf.appRoot}"/>/Jscript/QTIV2JSCRIPT.js' type='text/javascript'></script>
        <script src='<h:outputText value="#{conf.appRoot}"/>/Jscript/prototype.js' type='text/javascript'></script>
        <script src='<h:outputText value="#{conf.appRoot}"/>/Jscript/scriptaculous.js' type='text/javascript'></script>
        <script type="text/javascript" src="<h:outputText value="#{conf.appRoot}"/>/Jscript/carpeSlider.js"></script>
        <script type="text/javascript" src="<h:outputText value="#{conf.appRoot}"/>/Jscript/imageMap.js"></script>
        <script type="text/javascript" src="<h:outputText value="#{conf.appRoot}"/>/Jscript/wz_jsgraphics.js"></script>
        <script type="text/javascript" src="<h:outputText value="#{conf.appRoot}"/>/Jscript/associateInteractions.js"></script>
        <link rel="stylesheet" type="text/css" media="screen,projection" href="<h:outputText value="#{conf.appRoot}"/>/style/pets.css" />
        <link rel='stylesheet' type='text/css' media='screen' href='<h:outputText value="#{conf.appRoot}"/>/style/r2q2.css' />
    </head>
    <body>
    <f:loadBundle basename="pets.i18n.messages" var="msgs" />
    <table class="main_table" cellpadding="0" cellspacing="0">
        <tr>
            <td class="header" colspan="3"></td>
        </tr>
        <tr>
            <td style="width:20%" rowspan="6" valign="top" >
                <h:form>
                    &nbsp;
                    <h:commandLink action="#{facade.setLocale}" value="et">
                        <f:param name="langid" value="et" />
                    </h:commandLink>
                    &nbsp;
                    <h:commandLink action="#{facade.setLocale}" value="en">
                        <f:param name="langid" value="en" />
                    </h:commandLink>
                </h:form>
            </td>
            <td></td>
            <td style="width:20%" rowspan="6"></td>
        </tr>        
        <tr>
            <td>
                <h:form>
                    <table cellpadding="0" cellspacing="0" class="menu">
                        <tr style="height:21px">
                            <td align="center" valign="top"><img src="../../../style/arrow_down.gif" /></td>
                        </tr>
                        <%@ include file="../../../WEB-INF/jspf/UserMenu.jspf" %>
                    </table>
                </h:form>
            </td>                        
        </tr>
        <tr>
            <td class="heading"></td>
        </tr>
        <tr>
            <td style="height:20px;">
            </td>
        </tr>
        <tr>
            <td>
                <h:form id="QuestionForm">
                    <b><h:outputText value="#{msgs.Ques_preview}" /></b>
                    <hr />
                    <div style="font-size:0.9em;">
                    <h:outputText value="#{msgs.Maximum_points}: " />
                    <h:outputText value="#{TestBean.activeQuesPoints}" />
                    </div>
                    <h:outputText value="#{TestBean.activeQuesBody}" escape="false" />
                    <br />
                    <input type="button" value="<h:outputText value="#{msgs.Back}" />"
                        onClick="javascript: history.go(-1)" />
                </h:form>
            </td>
        </tr>   
<%@ include file ="../../../WEB-INF/jspf/Footer.jspf" %>
</f:view>