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.

153 lines
4.3 KiB

<!-- $Id: qins.htt,v 1.2 2004/02/05 01:36:05 jeffo Exp $ -->
<TITLE>Test Worksheets</TITLE>
<%=SYSTEM.INCLUDEJS global.js %>
<script language="Javascript">
<!--
<%=SYSTEM.STARTIF?SESSION.browserapp MSIE INCLUDE %>
var down,wdw,i,imax;
<%=FORM.jscript%>
function wdw_onLoad() {
Printpage();
return true;
}
function Printpage() {
var sURL;
eval("sURL=sWorksheet"+i+";");
wdw=window.open(sURL,"printwdw","resizeable=no,height=1,width=1");
wdw.print();
wdw.close();
if (i < imax) {
down=setTimeout("Printpage()",5000);
}
i++;
document.form1.submit.focus();
}
function Reprintpage(oIndex) {
var sURL;
eval("sURL=sWorksheet"+oIndex+";");
wdw=window.open(sURL,"printwdw","resizeable=no,height=1,width=1");
wdw.print();
wdw.close();
return true;
}
function confirmsubmit() {
var sMsg;
sMsg = "If you have not successfully printed ALL worksheets ";
sMsg += "select CANCEL to stay on this page."+unescape("%0D")+unescape("%0A");
sMsg += "Otherwise, select OK to begin the test.";
if (confirm(sMsg))
return true;
else
return false;
}
<%=SYSTEM.ELSE%>
var down,i,imax,swattr;
eval("swattr="+unescape("%22")+"resizeable=yes,height=80,width=650"+unescape("%22")+";");
<%=FORM.jscript%>
function wdw_onLoad() {
var sURL,spw;
for (i=1;i<=imax;i++) {
eval("sURL=sWorksheet"+i+";");
eval("spw="+unescape("%22")+"printwdw"+i+unescape("%22")+";");
eval("wdw"+i+"=window.open(sURL,spw,swattr);");
}
document.form1.submit.focus();
return true;
}
function Reprintpage(oIndex) {
eval("wdw"+oIndex+".print();");
return true;
}
function confirmsubmit() {
var sMsg;
sMsg = "If you have not successfully printed ALL worksheets ";
sMsg += "select CANCEL to stay on this page."+unescape("%0D")+unescape("%0A");
sMsg += "Otherwise, select OK to begin the test.";
if (confirm(sMsg)) {
for (i=1;i<=imax;i++) {
eval("wdw"+i+".close();");
}
return true;
} else {
return false;
}
}
<%=SYSTEM.ENDIF%>
window.onload=wdw_onLoad;
// -->
</script>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080">
<form name="form1" method="post" action="<%=PATHS.cgiroot%>/tqrs.pl"
onSubmit="return confirmsubmit()">
<input type="hidden" name="tid" value="<%=SESSION.tid%>">
<input type="hidden" name="tstid" value="<%=TEST_SESSION.id%>">
<input type="hidden" name="qid" value="0">
<input type="hidden" name="qno" value="0">
<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%>">
<CENTER>
<blockquote>
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%>
<TR>
<TD valign=top>
The test you are about to begin (<%=TEST.desc%>) requires
printed copies of the worksheets to be used as reference
during the test.<BR>
&nbsp;<BR>
<%=SYSTEM.STARTIF?SESSION.browserapp MSIE INCLUDE %>
The worksheets should have automatically printed already;
however, if the printing failed for any reason
you may reprint any or all of the worksheets individually
by clicking on the appropriate reprint buttons below.<BR>
<%=SYSTEM.ELSE%>
The worksheets may have automatically printed already;
however, if the printing failed for any reason
you may reprint any or all of the worksheets individually
by clicking on the appropriate print buttons below.<BR>
<%=SYSTEM.ENDIF%>
&nbsp;<BR>
</TD>
</TR>
<TR>
<TD align=left valign=top>
<%=FORM.buttons%>
</TD>
</TR>
<TR>
<TD valign=top>
&nbsp;<BR>
<FONT COLOR="#FF0000"><B>
DO NOT BEGIN THE TEST UNTIL YOU HAVE SUCCESSFULLY PRINTED
THE WORKSHEETS.<BR>
YOU WILL NOT BE ABLE TO PRINT THE WORKSHEETS AT ANY
TIME AFTER YOU LEAVE THIS PAGE.<BR>
</B></FONT>
&nbsp;<BR>
Once you have successfully printed all the worksheets,
you may begin the test by clicking the Begin Button below.<BR>
&nbsp;<BR>
</TD>
</TR>
<TR>
<TD align=center valign=top>
<INPUT TYPE=Submit NAME="submit" VALUE="Begin"><BR>
</TD>
</TR>
</TABLE>
</blockquote>
</form>
</CENTER>
</BODY>
</HTML>