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.
152 lines
3.5 KiB
152 lines
3.5 KiB
4 months ago
|
<!-- $Id: tworksheet.htt,v 1.1.1.1 2004/01/09 09:22:10 jeffo Exp $ -->
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE><%=PHRASE.513%></TITLE>
|
||
|
<BASEFONT FACE="Arial">
|
||
|
<%=SYSTEM.STARTIF?SESSION.browserapp MSIE INCLUDE %>
|
||
|
<STYLE>
|
||
|
<!--
|
||
|
SELECT {font-size: 10px;}
|
||
|
INPUT {font-size: 10px;height: 20;}
|
||
|
TEXTAREA {font-size: 12px;}
|
||
|
-->
|
||
|
</STYLE>
|
||
|
<%=SYSTEM.ENDIF%>
|
||
|
<%=SYSTEM.INCLUDEJS global.js %>
|
||
|
<script language="JavaScript">
|
||
|
<!--
|
||
|
var down, csec, syncform;
|
||
|
|
||
|
function wdw_onLoad() {
|
||
|
syncform = top.findex.document.syncform;
|
||
|
syncform.csec.value = <%=SYSTEM.autologout%>;
|
||
|
monitor();
|
||
|
}
|
||
|
|
||
|
function monitor() {
|
||
|
monitorrepeat();
|
||
|
}
|
||
|
|
||
|
function monitorrepeat() {
|
||
|
csec=syncform.csec.value;
|
||
|
csec--;
|
||
|
syncform.csec.value=csec;
|
||
|
if ((csec > 0)) {
|
||
|
down=setTimeout("monitorrepeat()",1000);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function reset_autotimer() {
|
||
|
syncform.csec.value=<%=SYSTEM.autologout%>;
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
function selectpage(opage) {
|
||
|
var sURL;
|
||
|
if (opage.selectedIndex == 0) {
|
||
|
if (opage.length > 1) {
|
||
|
if (confirm("<%=PHRASE.514%>")) {
|
||
|
return true;
|
||
|
} else {
|
||
|
window.document.wrkshthtml.value = "";
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
sURL = "<%=PATHS.cgiroot%>/tworksheet.pl"
|
||
|
sURL += "?tid=<%=SESSION.tid%>"
|
||
|
sURL += "&clid=<%=SESSION.clid%>"
|
||
|
sURL += "&tstid=<%=TEST.id%>"
|
||
|
sURL += "&page="
|
||
|
sURL += opage.options[opage.selectedIndex].value;
|
||
|
window.document.location.replace(sURL);
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
function previewhtml() {
|
||
|
var wdw;
|
||
|
wdw = window.open("","worksheetpvw","resizable=yes,toolbar=yes,menubar=yes,scrollbars=yes,status=yes");
|
||
|
wdw.document.open();
|
||
|
wdw.document.writeln(document.form1.wrkshthtml.value);
|
||
|
wdw.document.close();
|
||
|
wdw.focus();
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
function save_onClick(objForm) {
|
||
|
if (objForm.wrkshthtml.value == '') {
|
||
|
alert("<%=PHRASE.515%>");
|
||
|
objForm.wrkshthtml.focus();
|
||
|
return false;
|
||
|
} else {
|
||
|
objForm.wrkshthtml.value += "<RAWHTML>";
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
window.onload=wdw_onLoad;
|
||
|
// -->
|
||
|
</SCRIPT>
|
||
|
</HEAD>
|
||
|
|
||
|
<BODY BACKGROUND="<%=SYSTEM.BACKGROUND%>" BGCOLOR="<%=SYSTEM.BGCOLOR%>"
|
||
|
TEXT="<%=SYSTEM.TEXT%>" LINK="<%=SYSTEM.LINK%>"
|
||
|
VLINK="<%=SYSTEM.VLINK%>" ALINK="<%=SYSTEM.ALINK%>">
|
||
|
<CENTER>
|
||
|
<FORM METHOD=POST ACTION="<%=PATHS.cgiroot%>/tworksheet.pl" Name="form1"
|
||
|
enctype="multipart/form-data" onSubmit="return save_onClick(this)">
|
||
|
<INPUT NAME="tid" TYPE=HIDDEN VALUE="<%=SESSION.tid%>">
|
||
|
<INPUT NAME="clid" TYPE=HIDDEN VALUE="<%=SESSION.clid%>">
|
||
|
<INPUT NAME="tstid" TYPE=HIDDEN VALUE="<%=TEST.id%>">
|
||
|
|
||
|
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 width=500>
|
||
|
<TR>
|
||
|
<TD><%=TEST.logo%></TD>
|
||
|
<TD align=center>
|
||
|
<FONT SIZE=2 COLOR="<%=SYSTEM.HEADERCOLOR%>"><NOBR> <%=TEST.id%>:<%=TEST.desc%> </NOBR></FONT>
|
||
|
</TD>
|
||
|
<TD nowrap align=right>
|
||
|
<FONT SIZE=2 COLOR="<%=SYSTEM.HEADERCOLOR%>">
|
||
|
<%=PHRASE.516%>
|
||
|
<SELECT name="page" onChange="return selectpage(this)">
|
||
|
<%=FORM.pagenos%>
|
||
|
</SELECT>
|
||
|
</FONT>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
|
||
|
<TR>
|
||
|
<TD colspan=3 ALIGN="left" VALIGN=middle NOWRAP>
|
||
|
<FONT SIZE=2>
|
||
|
<TEXTAREA NAME="wrkshthtml" rows=18 cols=65 onChange="return reset_autotimer()"><%=FORM.html%></TEXTAREA>
|
||
|
</FONT>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR>
|
||
|
<TD>
|
||
|
<FONT SIZE=2>
|
||
|
<INPUT TYPE=BUTTON NAME="Preview" VALUE="<%=PHRASE.517%>" onClick="return previewhtml()">
|
||
|
</FONT>
|
||
|
</TD>
|
||
|
<TD>
|
||
|
<FONT SIZE=2>
|
||
|
<INPUT TYPE=SUBMIT NAME="Save" VALUE="<%=PHRASE.518%>">
|
||
|
</FONT>
|
||
|
</TD>
|
||
|
<TD align=right>
|
||
|
<FONT SIZE=2>
|
||
|
<INPUT TYPE=SUBMIT NAME="Delete" VALUE="<%=PHRASE.519%>">
|
||
|
</FONT>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
</FORM>
|
||
|
<P>
|
||
|
<FONT SIZE=1 COLOR="#8C8C8C">
|
||
|
<%=PHRASE.136%><BR>
|
||
|
</FONT>
|
||
|
</P>
|
||
|
</CENTER>
|
||
|
</BODY>
|
||
|
</HTML>
|