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.
337 lines
10 KiB
337 lines
10 KiB
<!-- $Id: mainttest.htt,v 1.2 2004/02/27 15:59:53 hhubler Exp $ -->
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE><%=PHRASE.419%> <%=PHRASE.64%></TITLE>
|
|
<BASEFONT FACE="Arial">
|
|
<%=SYSTEM.STARTIF?SESSION.browserapp MSIE INCLUDE %>
|
|
<STYLE>
|
|
<!--
|
|
SELECT {font-size: 10px;}
|
|
INPUT {font-size: 10px;height: 20;}
|
|
-->
|
|
</STYLE>
|
|
<%=SYSTEM.ENDIF%>
|
|
<%=SYSTEM.INCLUDEJS global.js %>
|
|
<SCRIPT language="JavaScript">
|
|
<!--
|
|
var down, csec, syncform;
|
|
|
|
function wdw_onLoad() {
|
|
var x,s;
|
|
syncform = top.findex.document.syncform
|
|
syncform.csec.value = <%=SYSTEM.autologout%>;
|
|
monitor();
|
|
for (x=1; x<document.form1.tstid.options.length; x++) {
|
|
if ("<%=FORM.tstid%>" == document.form1.tstid.options[x].value) {
|
|
s=document.form1.tstid.options[x].value;
|
|
document.form1.tstid.selectedIndex = x;
|
|
document.form2.tstid.value=s;
|
|
document.form3.tstid.value=s;
|
|
document.form4.tstid.value=s;
|
|
document.form5.tstid.value=s;
|
|
document.form6.tstid.value=s;
|
|
document.form7.tstid.value=s;
|
|
document.form8.tstid.value=s;
|
|
}
|
|
}
|
|
}
|
|
|
|
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%>;
|
|
}
|
|
|
|
function btn_tupd_click(objForm) {
|
|
var sURL,nidx,sowner,s,t;
|
|
reset_autotimer();
|
|
nidx = objForm.tstid.selectedIndex;
|
|
s=objForm.tstid.options[nidx].value;
|
|
t=objForm.tstid.options[nidx].text;
|
|
if (s.substring(0,1) == "*") {
|
|
document.form2.tstid.value="";
|
|
document.form3.tstid.value="";
|
|
document.form4.tstid.value="";
|
|
document.form5.tstid.value="";
|
|
document.form6.tstid.value="";
|
|
document.form7.tstid.value="";
|
|
document.form8.tstid.value="";
|
|
s=s.substring(1,s.length);
|
|
return btn_tnew_click(objForm,s);
|
|
} else {
|
|
if (t.substring(0,1) == "#") {
|
|
document.form1.btnQuestions.disabled = true;
|
|
document.form1.btnWorksheets.disabled = true;
|
|
document.form1.btnSba.disabled = true;
|
|
document.form1.btnImages.disabled = true;
|
|
} else {
|
|
document.form1.btnQuestions.disabled = false;
|
|
document.form1.btnWorksheets.disabled = false;
|
|
document.form1.btnSba.disabled = false;
|
|
document.form1.btnImages.disabled = false;
|
|
document.form3.tstid.value=s;
|
|
document.form5.tstid.value=s;
|
|
document.form6.tstid.value=s;
|
|
document.form7.tstid.value=s;
|
|
document.form8.tstid.value=s;
|
|
}
|
|
document.form2.tstid.value=s;
|
|
document.form4.tstid.value=s;
|
|
document.form8.tstid.value=s;
|
|
objForm.dbop.value="tupd";
|
|
sowner=objForm.tstid.options[nidx].value;
|
|
sURL="<%=PATHS.cgiroot%>/tadmin.pl?tid=<%=SESSION.tid%>&lang=<%=SESSION.lang%>&dbop=tupd&tstid="+sowner;
|
|
parent.tsequence.document.location = sURL;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
function btn_tnew_click(objForm,sseq) {
|
|
// reset_autotimer();
|
|
var sURL,nidx,sowner;
|
|
// nidx = objForm.seq.selectedIndex;
|
|
// if (nidx == 0) {
|
|
// return false;
|
|
// } else {
|
|
// objForm.tstid.selectedIndex = 0;
|
|
// sowner=objForm.seq.options[nidx].value;
|
|
sURL="<%=PATHS.cgiroot%>/tadmin.pl?tid=<%=SESSION.tid%>&lang=<%=SESSION.lang%>&dbop=tnew&seq="+sseq;
|
|
parent.tsequence.document.location = sURL;
|
|
// objForm.seq.selectedIndex=0;
|
|
return true;
|
|
// }
|
|
}
|
|
function btnTaclClick(oform) {
|
|
if (oform.tstid.value == "") {
|
|
alert("<%=PHRASE.477%>");
|
|
} else {
|
|
oform.submit();
|
|
}
|
|
return false;
|
|
}
|
|
function btnSbaClick(oform) {
|
|
if (oform.tstid.value == "") {
|
|
alert("<%=PHRASE.477%>");
|
|
} else {
|
|
oform.submit();
|
|
}
|
|
return false;
|
|
}
|
|
function btnQuestionsClick(oform) {
|
|
if (oform.tstid.value == "") {
|
|
alert("<%=PHRASE.477%>");
|
|
} else {
|
|
oform.submit();
|
|
}
|
|
return false;
|
|
}
|
|
function btnDeleteClick(oform) {
|
|
if (oform.tstid.value == "") {
|
|
alert("<%=PHRASE.477%>");
|
|
} else {
|
|
if (confirm("Are you sure you want to delete this test/survey?")) {
|
|
oform.submit();
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
function btnHistoryClick(oform) {
|
|
if (oform.tstid.value == "") {
|
|
alert("<%=PHRASE.477%>");
|
|
} else {
|
|
alert("This function is not yet available.");
|
|
// oform.submit();
|
|
}
|
|
return false;
|
|
}
|
|
function btnCustomPgClick(oform) {
|
|
if (oform.tstid.value == "") {
|
|
alert("<%=PHRASE.477%>");
|
|
} else {
|
|
oform.submit();
|
|
}
|
|
return false;
|
|
}
|
|
function btnUpImagesClick(oform) {
|
|
if (oform.tstid.value == "") {
|
|
alert("<%=PHRASE.477%>");
|
|
} else {
|
|
oform.submit();
|
|
}
|
|
return false;
|
|
}
|
|
function btnWorkshtsClick(oform) {
|
|
if (oform.tstid.value == "") {
|
|
alert("<%=PHRASE.477%>");
|
|
} else {
|
|
oform.submit();
|
|
}
|
|
return false;
|
|
}
|
|
|
|
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%>">
|
|
<FORM METHOD=POST ACTION="<%=PATHS.cgiroot%>/tadmin.pl" Name="form1">
|
|
<INPUT NAME="tid" TYPE=HIDDEN VALUE="<%=SESSION.tid%>">
|
|
<INPUT NAME="dbop" TYPE=HIDDEN VALUE="">
|
|
<TABLE cellpadding=0 cellspacing=0 border=0>
|
|
<TR>
|
|
<TD colspan=2 align="left" valign=top>
|
|
<FONT SIZE=2><nobr>
|
|
<B><%=PHRASE.422%> / <%=PHRASE.403%> <%=PHRASE.263%></B>
|
|
<font size=-1>(<%=PHRASE.941%>)</font><br>
|
|
<SELECT NAME=tstid onChange="return btn_tupd_click(this.form)">
|
|
<OPTION VALUE="*std"> <%=PHRASE.286%> <%=PHRASE.393%>
|
|
<OPTION VALUE="*adp"> <%=PHRASE.286%> <%=PHRASE.58%>
|
|
<OPTION VALUE="*svy"> <%=PHRASE.286%> <%=PHRASE.401%>
|
|
<OPTION VALUE="*dmg"> <%=PHRASE.286%> <%=PHRASE.400%>
|
|
<OPTION VALUE="*cfa"> <%=PHRASE.286%> <%=PHRASE.130%>
|
|
<%=SYSTEM.STARTIF?SESSION.uac cnd INCLUDE %>
|
|
<%=CANDIDATE.ownedtests%>
|
|
<%=SYSTEM.ELSE%>
|
|
<%=TESTS.Options%>
|
|
<%=SYSTEM.ENDIF%>
|
|
</SELECT>
|
|
</nobr>
|
|
</FONT>
|
|
</TD>
|
|
<TD align="left" valign="bottom">
|
|
<FONT SIZE=2><nobr>
|
|
<INPUT TYPE=BUTTON name="btnRefresh" VALUE="<%=PHRASE.650%>" onClick="return btn_tupd_click(this.form)"
|
|
><INPUT TYPE=BUTTON name="btnQuestions" VALUE="<%=PHRASE.582%>" onClick="return btnQuestionsClick(document.form7)"
|
|
><INPUT TYPE=BUTTON name="btnCustomPages" VALUE="<%=PHRASE.648%>" onClick="return btnCustomPgClick(document.form8)"
|
|
><INPUT TYPE=BUTTON name="btnWorksheets" VALUE="<%=PHRASE.580%>" onClick="return btnWorkshtsClick(document.form5)">
|
|
</nobr></FONT>
|
|
</TD>
|
|
</TR>
|
|
<TR>
|
|
<TD align="left" valign="top">
|
|
<FONT SIZE=2><nobr>
|
|
<INPUT TYPE=BUTTON name="btnDelete" VALUE="<%=PHRASE.581%>" onClick="return btnDeleteClick(document.form4)">
|
|
</nobr></FONT>
|
|
</TD>
|
|
<TD align="center" valign="top">
|
|
<FONT SIZE=2><nobr>
|
|
<INPUT TYPE=BUTTON name="btnHistory" VALUE="<%=PHRASE.681%>" onClick="return btnHistoryClick(document.form4)">
|
|
</nobr></FONT>
|
|
</TD>
|
|
<TD align="left" valign="top">
|
|
<FONT SIZE=2><nobr>
|
|
<INPUT TYPE=BUTTON name="btnTacl" VALUE="<%=PHRASE.593%>" onClick="return btnTaclClick(document.form2)"
|
|
><INPUT TYPE=BUTTON name="btnSba" VALUE="<%=PHRASE.32%>" onClick="return btnSbaClick(document.form6)"
|
|
><INPUT TYPE=BUTTON name="btnImages" VALUE="<%=PHRASE.583%>" onClick="return btnUpImagesClick(document.form3)">
|
|
</nobr></FONT>
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
</FORM>
|
|
<TABLE cellpadding="0" cellspacing="0" width="100%">
|
|
<TR>
|
|
<TD align="center">
|
|
<FONT SIZE=1>
|
|
<FORM METHOD=POST ACTION="<%=PATHS.cgiroot%>/taccdef.pl" TARGET="tsequence" Name="form2">
|
|
<INPUT NAME="tid" TYPE=HIDDEN VALUE="<%=SESSION.tid%>">
|
|
<INPUT NAME="clid" TYPE=HIDDEN VALUE="<%=SESSION.clid%>">
|
|
<INPUT NAME="tstid" TYPE=HIDDEN VALUE="<%=TEST.id%>">
|
|
<INPUT TYPE="HIDDEN" NAME="flags" VALUE="<%=TEST.flags%>">
|
|
<INPUT TYPE="HIDDEN" NAME="lang" VALUE="<%=SESSION.lang%>">
|
|
<INPUT TYPE="HIDDEN" NAME="frm" VALUE="2">
|
|
<INPUT TYPE="HIDDEN" NAME="dbop" VALUE="">
|
|
<br>
|
|
</FORM>
|
|
</FONT>
|
|
</TD>
|
|
<TD align="center">
|
|
<FONT SIZE=1>
|
|
<FORM METHOD=POST ACTION="<%=PATHS.cgiroot%>/sbaframes.pl" TARGET="tsequence" Name="form6">
|
|
<INPUT NAME="tid" TYPE=HIDDEN VALUE="<%=SESSION.tid%>">
|
|
<INPUT NAME="clid" TYPE=HIDDEN VALUE="<%=SESSION.clid%>">
|
|
<INPUT NAME="tstid" TYPE=HIDDEN VALUE="<%=TEST.id%>">
|
|
<INPUT TYPE="HIDDEN" NAME="flags" VALUE="<%=TEST.flags%>">
|
|
<INPUT TYPE="HIDDEN" NAME="lang" VALUE="<%=SESSION.lang%>">
|
|
<br>
|
|
</FORM>
|
|
</FONT>
|
|
</TD>
|
|
<TD align="center">
|
|
<FONT SIZE=1>
|
|
<FORM METHOD=POST ACTION="<%=PATHS.cgiroot%>/qframes.pl" TARGET="tsequence" Name="form7">
|
|
<INPUT NAME="tid" TYPE=HIDDEN VALUE="<%=SESSION.tid%>">
|
|
<INPUT NAME="clid" TYPE=HIDDEN VALUE="<%=SESSION.clid%>">
|
|
<INPUT NAME="tstid" TYPE=HIDDEN VALUE="<%=TEST.id%>">
|
|
<INPUT TYPE="HIDDEN" NAME="flags" VALUE="<%=TEST.flags%>">
|
|
<INPUT TYPE="HIDDEN" NAME="lang" VALUE="<%=SESSION.lang%>">
|
|
<br>
|
|
</FORM>
|
|
</FONT>
|
|
</TD>
|
|
<TD align="center" valign=middle>
|
|
<FONT SIZE=1>
|
|
<FORM METHOD=POST ACTION="<%=PATHS.cgiroot%>/tcstmpgdtl.pl" TARGET="tsequence" Name="form8">
|
|
<INPUT NAME="tid" TYPE=HIDDEN VALUE="<%=SESSION.tid%>">
|
|
<INPUT NAME="clid" TYPE=HIDDEN VALUE="<%=SESSION.clid%>">
|
|
<INPUT NAME="tstid" TYPE=HIDDEN VALUE="<%=TEST.id%>">
|
|
<INPUT TYPE="HIDDEN" NAME="lang" VALUE="<%=SESSION.lang%>">
|
|
<INPUT TYPE="HIDDEN" NAME="page" VALUE="ins">
|
|
<br>
|
|
</FORM>
|
|
</FONT>
|
|
</TD>
|
|
<TD align="center">
|
|
<FONT SIZE=1>
|
|
<FORM METHOD=POST ACTION="<%=PATHS.cgiroot%>/tdef.pl" TARGET="tsequence" Name="form3">
|
|
<INPUT NAME="tid" TYPE=HIDDEN VALUE="<%=SESSION.tid%>">
|
|
<INPUT NAME="clid" TYPE=HIDDEN VALUE="<%=SESSION.clid%>">
|
|
<INPUT NAME="tstid" TYPE=HIDDEN VALUE="<%=TEST.id%>">
|
|
<INPUT TYPE="HIDDEN" NAME="flags" VALUE="<%=TEST.flags%>">
|
|
<INPUT TYPE="HIDDEN" NAME="lang" VALUE="<%=SESSION.lang%>">
|
|
<INPUT TYPE="HIDDEN" NAME="UploadImages" VALUE="Images">
|
|
<br>
|
|
</FORM>
|
|
</FONT>
|
|
</TD>
|
|
<TD align="center">
|
|
<FONT SIZE=1>
|
|
<FORM METHOD=POST ACTION="<%=PATHS.cgiroot%>/tworksheet.pl" TARGET="tsequence" Name="form5">
|
|
<INPUT NAME="tid" TYPE=HIDDEN VALUE="<%=SESSION.tid%>">
|
|
<INPUT NAME="clid" TYPE=HIDDEN VALUE="<%=SESSION.clid%>">
|
|
<INPUT NAME="tstid" TYPE=HIDDEN VALUE="<%=TEST.id%>">
|
|
<INPUT TYPE="HIDDEN" NAME="lang" VALUE="<%=SESSION.lang%>">
|
|
<br>
|
|
</FORM>
|
|
</FONT>
|
|
</TD>
|
|
<TD align="center">
|
|
<FONT SIZE=1>
|
|
<!-- hkh 02/04 bug#18 change TARGET from "tsequence" to "_parent" -->
|
|
<FORM METHOD=POST ACTION="<%=PATHS.cgiroot%>/tadmin.pl" TARGET="_parent" Name="form4">
|
|
<INPUT NAME="tid" TYPE=HIDDEN VALUE="<%=SESSION.tid%>">
|
|
<INPUT NAME="clid" TYPE=HIDDEN VALUE="<%=SESSION.clid%>">
|
|
<INPUT NAME="tstid" TYPE=HIDDEN VALUE="<%=TEST.id%>">
|
|
<INPUT NAME="dbop" TYPE=HIDDEN VALUE="tdel">
|
|
<INPUT TYPE="HIDDEN" NAME="lang" VALUE="<%=SESSION.lang%>">
|
|
<br>
|
|
</FONT>
|
|
</FORM>
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
</BODY>
|
|
</HTML>
|
|
|