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.
123 lines
3.0 KiB
123 lines
3.0 KiB
5 months ago
|
<!-- $Id: subjareadtl.htt -->
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE><%=PHRASE.419%> <%=PHRASE.64%></TITLE>
|
||
|
<BASEFONT FACE="Arial">
|
||
|
<%=SYSTEM.STARTIF?SESSION.browserapp MSIE INCLUDE %>
|
||
|
<STYLE>
|
||
|
<!--
|
||
|
SELECT {font-size: 10px;height: 100;}
|
||
|
INPUT {font-size: 10px;height: 20;}
|
||
|
-->
|
||
|
</STYLE>
|
||
|
<%=SYSTEM.ENDIF%>
|
||
|
<%=SYSTEM.INCLUDEJS global.js %>
|
||
|
<SCRIPT language="JavaScript">
|
||
|
<!--
|
||
|
function wdw_onLoad() {
|
||
|
var sURL;
|
||
|
document.sbaform.onsubmit=submit1;
|
||
|
if ("<%=FORM.respmsg%>" != "") {
|
||
|
sURL="<%=PATHS.cgiroot%>/sbadef.pl?tid=<%=SESSION.tid%>&lang=<%=SESSION.lang%>&frm=2&tstid=<%=FORM.tstid%>";
|
||
|
parent.sbahdr.document.location.replace(sURL);
|
||
|
alert("<%=FORM.respmsg%>");
|
||
|
}
|
||
|
}
|
||
|
function submit1(oform,dop) {
|
||
|
var b,c,s;
|
||
|
b=true;
|
||
|
if ((dop == "s") || (dop == "a")) {
|
||
|
if (oform.sbaid.value=="") {
|
||
|
c=oform.sbaid;
|
||
|
s="ID";
|
||
|
} else {
|
||
|
if (oform.desc.value=="") {
|
||
|
c=oform.desc;
|
||
|
s="Description";
|
||
|
} else {
|
||
|
b=false;
|
||
|
}
|
||
|
}
|
||
|
t="You must enter a "+s+".";
|
||
|
} else {
|
||
|
t="System Error.";
|
||
|
c=oform.desc;
|
||
|
}
|
||
|
if (b) {
|
||
|
alert(t);
|
||
|
c.focus();
|
||
|
return false;
|
||
|
} else {
|
||
|
oform.dbop.value=dop;
|
||
|
oform.submit();
|
||
|
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%>">
|
||
|
<FORM METHOD=POST ACTION="<%=PATHS.cgiroot%>/sbadef.pl" Name="sbaform">
|
||
|
<INPUT NAME="frm" TYPE=HIDDEN VALUE="3">
|
||
|
<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="mid" TYPE=HIDDEN VALUE="<%=SUBJAREA.mid%>">
|
||
|
<INPUT NAME="dbop" TYPE=HIDDEN VALUE="">
|
||
|
<INPUT TYPE=HIDDEN NAME="qcnt" VALUE="<%=SUBJAREA.qcnt%>">
|
||
|
<TABLE cellpadding=0 cellspacing=0 border=0 width=100%>
|
||
|
<TR>
|
||
|
<TD colspan=2 align="CENTER" valign=top>
|
||
|
<FONT SIZE=2><B><%=PHRASE.32%></B></FONT>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR>
|
||
|
<TD align="right" valign=middle>
|
||
|
<FONT SIZE="2">
|
||
|
ID:
|
||
|
</FONT>
|
||
|
</TD>
|
||
|
<TD align="left" valign=middle>
|
||
|
<FONT SIZE="2">
|
||
|
<%=SYSTEM.STARTIF?SUBJAREA.sbanew Y INCLUDE %>
|
||
|
<INPUT TYPE=TEXT NAME="sbaid" SIZE=10 MAXLENGTH=10 VALUE="<%=SUBJAREA.id%>">
|
||
|
<%=SYSTEM.ELSE%>
|
||
|
<%=SUBJAREA.id%><INPUT TYPE=HIDDEN NAME="sbaid" VALUE="<%=SUBJAREA.id%>">
|
||
|
<%=SYSTEM.ENDIF%>
|
||
|
<i>(<%=SUBJAREA.qcnt%> questions)</i>
|
||
|
</FONT>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR>
|
||
|
<TD align="right" valign=middle>
|
||
|
<FONT SIZE="2">
|
||
|
Description:
|
||
|
</FONT>
|
||
|
</TD>
|
||
|
<TD align="left" valign=middle>
|
||
|
<FONT SIZE="2">
|
||
|
<INPUT TYPE=TEXT NAME="desc" SIZE=30 MAXLENGTH=50 VALUE="<%=SUBJAREA.desc%>">
|
||
|
</FONT>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR>
|
||
|
<TD colspan=2 align="center" valign=middle>
|
||
|
<FONT SIZE="2">
|
||
|
<br>
|
||
|
<%=SYSTEM.STARTIF?SUBJAREA.sbanew Y INCLUDE %>
|
||
|
<INPUT TYPE=BUTTON NAME="savechanges" VALUE="Save" onClick="return submit1(this.form,'a')">
|
||
|
<%=SYSTEM.ELSE%>
|
||
|
<INPUT TYPE=BUTTON NAME="savechanges" VALUE="Save" onClick="return submit1(this.form,'s')">
|
||
|
<%=SYSTEM.ENDIF%>
|
||
|
</FONT>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
</FORM>
|
||
|
</BODY>
|
||
|
</HTML>
|