You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

224 lines
5.4 KiB

<HTML>
<HEAD>
<TITLE>Question <%=QUESTION.id%></TITLE>
<%=SYSTEM.INCLUDEJS global.js %>
<%=SYSTEM.INCLUDEJS testclockbtns.js %>
<%=SYSTEM.STARTIF?QUESTION.enforcetotal 1 EXCLUDE %>
<SCRIPT language="JavaScript">
<!--
function enforcetotals() {
alert("Boo!");
var r,c,prettyi,rowtotal;
var i = 0;
for (r=0; r < <%=QUESTION.rowcount%>; r++) {
rowtotal = 0;
for (c=0; c < <%=QUESTION.colcount%>; c++) {
if (i.toString.length == 1) {
prettyi = "0" + i.toString;
} else {
prettyi = i.toString;
}
val = "qrs"+prettyi;
rowtotal += val.options[val.selectedIndex].value;
i++;
alert(rowtotal);
}
}
}
// -->
</SCRIPT>
<%=SYSTEM.ENDIF%>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080" LEFTMARGIN="40" MARGINWIDTH="40">
<%=SYSTEM.STARTIF?QUESTION.enforcetotal 1 EXCLUDE %>
<form name="form1" method="post" action="<%=PATHS.cgiroot%>/tqrs.pl" on_submit="return enforcetotals()">
<%=SYSTEM.ELSE%>
<form name="form1" method="post" action="<%=PATHS.cgiroot%>/tqrs.pl" on_submit="return btn_pause()">
<%=SYSTEM.ENDIF%>
<input name="lang" type="hidden" value="<%=SESSION.lang%>">
<input type="hidden" name="tid" value="<%=SESSION.tid%>">
<input type="hidden" name="tstid" value="<%=TEST_SESSION.id%>">
<input type="hidden" name="qid" value="<%=QUESTION.id%>">
<input type="hidden" name="qno" value="<%=QUESTION.qno%>">
<input type="hidden" name="tmd" value="<%=TEST.tmd%>">
<input type="hidden" name="maxtm" value="<%=TEST.maxtm%>">
<input type="hidden" name="tmreset" value="<%=TEST_SESSION.resettime%>">
<input type="hidden" name="noq" value="<%=TEST.noq%>">
<!-- v added support for time capture statistics -->
<input type="hidden" name="tcap" value="0">
<input type="hidden" name="qtp" value="<%=QUESTION.qtp%>">
<!-- ^ added support for time capture statistics -->
<!-- v added support for anonymous submission option -->
<input type="hidden" name="anonsubmit" value="N">
<!-- ^ added support for anonymous submission option -->
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%>
<%=SYSTEM.STARTIF?QUESTION.layout 1 INCLUDE %>
<TR>
<td align="left">
<%=QUESTION.illustration%><BR>
<%=SYSTEM.STARTIF?TEST.showsubj Y INCLUDE %>
<FONT SIZE=2>
<B><%=QUESTION.id%>:<%=QUESTION.subj%></B><BR>
</FONT>
<%=SYSTEM.ENDIF%>
&nbsp;<BR>
<FONT SIZE=4>
<%=QUESTION.qtx%><BR>
</FONT>
&nbsp;<BR>
<%=QUESTION.anslist%>
</td>
</TR>
<%=QUESTION.promptcomments%>
<TR>
<td align="left">
&nbsp;<BR>
<CENTER>
<%=TEST_SESSION.navbuttons%><BR>
</CENTER>
&nbsp;<BR>
<FONT COLOR="#FF0000">
<%=QUESTION.qrmwq%>
</FONT>
</td>
</TR>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?QUESTION.layout 2 INCLUDE %>
<TR>
<td align="left">
<%=SYSTEM.STARTIF?TEST.showsubj Y INCLUDE %>
<FONT SIZE=2>
<B><%=QUESTION.id%>:<%=QUESTION.subj%></B><BR>
</FONT>
<%=SYSTEM.ENDIF%>
&nbsp;<BR>
<FONT SIZE=4>
<%=QUESTION.qtx%><BR>
</FONT>
&nbsp;<BR>
<%=QUESTION.illustration%><BR>
&nbsp;<BR>
<%=QUESTION.anslist%>
</td>
</TR>
<%=QUESTION.promptcomments%>
<TR>
<td align="left">
&nbsp;<BR>
<CENTER>
<%=TEST_SESSION.navbuttons%><BR>
</CENTER>
&nbsp;<BR>
<FONT COLOR="#FF0000">
<%=QUESTION.qrmwq%>
</FONT>
</td>
</TR>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?QUESTION.layout 3 INCLUDE %>
<TR>
<td align="left">
<%=SYSTEM.STARTIF?TEST.showsubj Y INCLUDE %>
<FONT SIZE=2>
<B><%=QUESTION.id%>:<%=QUESTION.subj%></B><BR>
</FONT>
<%=SYSTEM.ENDIF%>
&nbsp;<BR>
<FONT SIZE=4>
<%=QUESTION.qtx%><BR>
</FONT>
&nbsp;<BR>
<%=QUESTION.anslist%>
&nbsp;<BR>
<%=QUESTION.illustration%><BR>
</td>
</TR>
<%=QUESTION.promptcomments%>
<TR>
<td align="left">
&nbsp;<BR>
<CENTER>
<%=TEST_SESSION.navbuttons%><BR>
</CENTER>
&nbsp;<BR>
<FONT COLOR="#FF0000">
<%=QUESTION.qrmwq%>
</FONT>
</td>
</TR>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?QUESTION.layout 4 INCLUDE %>
<TR>
<td align="left">
<%=SYSTEM.STARTIF?TEST.showsubj Y INCLUDE %>
<FONT SIZE=2>
<B><%=QUESTION.id%>:<%=QUESTION.subj%></B><BR>
</FONT>
<%=SYSTEM.ENDIF%>
&nbsp;<BR>
<FONT SIZE=4>
<%=QUESTION.qtx%><BR>
</FONT>
&nbsp;<BR>
<%=QUESTION.anslist%>
<%=QUESTION.promptcomments%>
&nbsp;<BR>
<CENTER>
<%=TEST_SESSION.navbuttons%><BR>
</CENTER>
</td>
<td align="right">
<FONT SIZE=2>
&nbsp;&nbsp;<%=QUESTION.illustration%><BR>
</FONT>
</td>
</TR>
<TR>
<td colspan=2 align="left">
&nbsp;<BR>
<FONT COLOR="#FF0000">
<%=QUESTION.qrmwq%>
</FONT>
</td>
</TR>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?QUESTION.layout 5 INCLUDE %>
<TR>
<td align="left">
<%=QUESTION.illustration%>&nbsp;&nbsp;<BR>
</td>
<td align="left">
<%=SYSTEM.STARTIF?TEST.showsubj Y INCLUDE %>
<FONT SIZE=2>
<B><%=QUESTION.id%>:<%=QUESTION.subj%></B><BR>
</FONT>
<%=SYSTEM.ENDIF%>
&nbsp;<BR>
<FONT SIZE=4>
<%=QUESTION.qtx%><BR>
</FONT>
&nbsp;<BR>
<%=QUESTION.anslist%>
<%=QUESTION.promptcomments%>
&nbsp;<BR>
<CENTER>
<%=TEST_SESSION.navbuttons%><BR>
</CENTER>
</td>
</TR>
<TR>
<td colspan=2 align="left">
&nbsp;<BR>
<FONT COLOR="#FF0000">
<%=QUESTION.qrmwq%>
</FONT>
</td>
</TR>
<%=SYSTEM.ENDIF%>
</TABLE>
</form>
</BODY>
</HTML>