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.
176 lines
4.2 KiB
176 lines
4.2 KiB
5 months ago
|
<!-- $Id: tcstmpgdtl.htt,v 1.2 2006/07/13 23:44:14 ddoughty Exp $ -->
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE><%=TEST.desc%> <%=PHRASE.648%></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();
|
||
|
document.form1.onsubmit=submitpage;
|
||
|
}
|
||
|
|
||
|
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 submitpage() {
|
||
|
var oform=document.form1;
|
||
|
if (oform.page.selectedIndex=-1) {
|
||
|
return false;
|
||
|
} else {
|
||
|
if ((oform.page.cstmpghtml.value=="") && (oform.dbop.value != "g")) {
|
||
|
return false;
|
||
|
} else {
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function selectpage(olst) {
|
||
|
if (olst.selectedIndex != -1) {
|
||
|
olst.form.dbop.value="g";
|
||
|
olst.form.submit();
|
||
|
return true;
|
||
|
} else {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function savepage(oform) {
|
||
|
if (oform.page.selectedIndex != -1) {
|
||
|
oform.cstmpgrawhtml.value=oform.cstmpghtml.value
|
||
|
oform.cstmpgrawhtml.value+="<RAWHTML>";
|
||
|
oform.dbop.value="s";
|
||
|
oform.submit();
|
||
|
return true;
|
||
|
} else {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function deletepage(oform) {
|
||
|
if (oform.page.selectedIndex != -1) {
|
||
|
if (confirm("<%=PHRASE.643%>")) {
|
||
|
oform.dbop.value="d";
|
||
|
oform.submit();
|
||
|
return true;
|
||
|
} else {
|
||
|
return false;
|
||
|
}
|
||
|
} else {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function previewhtml(oform) {
|
||
|
var wdw;
|
||
|
wdw = window.open("","cspgpvw","resizable=yes,toolbar=yes,menubar=yes,scrollbars=yes,status=yes");
|
||
|
wdw.document.open();
|
||
|
wdw.document.writeln(oform.cstmpghtml.value);
|
||
|
wdw.document.close();
|
||
|
wdw.focus();
|
||
|
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%>">
|
||
|
<CENTER>
|
||
|
<FORM METHOD=POST ACTION="<%=PATHS.cgiroot%>/tcstmpgdtl.pl" Name="form1"
|
||
|
enctype="multipart/form-data">
|
||
|
<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="g">
|
||
|
|
||
|
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
|
||
|
<TR>
|
||
|
<TD colspan=3 nowrap align=left>
|
||
|
<FONT SIZE=2 COLOR="<%=SYSTEM.HEADERCOLOR%>">
|
||
|
<SELECT name="page" onChange="return selectpage(this)">
|
||
|
<%=SYSTEM.STARTIF?TEST.seq std,adp INCLUDE %>
|
||
|
<option value="ins"<%=FORM.insselected%>><%=PHRASE.644%>
|
||
|
<option value="cxp"<%=FORM.cxpselected%>><%=PHRASE.645%>
|
||
|
<option value="cep"<%=FORM.cepselected%>><%=PHRASE.857%>
|
||
|
<option value="cxf"<%=FORM.cxfselected%>><%=PHRASE.646%>
|
||
|
<option value="cef"<%=FORM.cefselected%>><%=PHRASE.858%>
|
||
|
<%=SYSTEM.ELSE%>
|
||
|
<option value="ins"<%=FORM.insselected%>><%=PHRASE.649%>
|
||
|
<%=SYSTEM.ENDIF%>
|
||
|
<option value="cxu"<%=FORM.cxuselected%>><%=PHRASE.647%>
|
||
|
<option value="ceu"<%=FORM.ceuselected%>><%=PHRASE.859%>
|
||
|
</SELECT>
|
||
|
<NOBR> <%=TEST.id%>:<%=TEST.desc%> </NOBR>
|
||
|
</FONT>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR>
|
||
|
<TD colspan=3 ALIGN="left" VALIGN=middle NOWRAP>
|
||
|
<FONT SIZE=2>
|
||
|
<TEXTAREA NAME="cstmpghtml" rows=18 cols=65 onChange="return reset_autotimer()"><%=FORM.html%></TEXTAREA>
|
||
|
<INPUT Type=hidden NAME="cstmpgrawhtml" value="<%=FORM.html%>">
|
||
|
</FONT>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR>
|
||
|
<TD>
|
||
|
<FONT SIZE=2>
|
||
|
<INPUT TYPE=BUTTON NAME="Preview" VALUE="<%=PHRASE.517%>" onClick="return previewhtml(this.form)">
|
||
|
</FONT>
|
||
|
</TD>
|
||
|
<TD>
|
||
|
<FONT SIZE=2>
|
||
|
<INPUT TYPE=SUBMIT NAME="Save" VALUE="<%=PHRASE.518%>" onClick="return savepage(this.form)">
|
||
|
</FONT>
|
||
|
</TD>
|
||
|
<TD align=right>
|
||
|
<FONT SIZE=2>
|
||
|
<INPUT TYPE=SUBMIT NAME="Delete" VALUE="<%=PHRASE.519%>" onClick="return deletepage(this.form)">
|
||
|
</FONT>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
</FORM>
|
||
|
<P>
|
||
|
<FONT SIZE=1 COLOR="#8C8C8C">
|
||
|
<%=PHRASE.136%><BR>
|
||
|
</FONT>
|
||
|
</P>
|
||
|
</CENTER>
|
||
|
</BODY>
|
||
|
</HTML>
|