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.

301 lines
8.9 KiB

<!-- $Id: regtacl.htt,v 1.3 2006/06/07 16:01:32 ddoughty Exp $ -->
<HTML>
<HEAD>
<TITLE>Access Control Registration Form</TITLE>
<BASEFONT FACE="Arial">
<%=SYSTEM.STARTIF?SESSION.browserapp MSIE INCLUDE %>
<STYLE>
<!--
BUTTON {font-size: 10px;height: 20;}
SELECT {font-size: 10px;}
INPUT {font-size: 10px;height: 20;}
-->
</STYLE>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.INCLUDEJS global.js %>
<SCRIPT language="JavaScript">
<!--
function form1_validate(objForm) {
<%=SYSTEM.STARTIF?CANDIDATE.new Y INCLUDE %>
if ((objForm.uidreq.value == "")
|| (objForm.pwdreq.value == "")
|| (objForm.pwdvfy.value == "")
|| (objForm.pwdreq.value != objForm.pwdvfy.value)) {
alert("You must enter a login Id and password."+unescape("%0D")+unescape("%0A")+"The retyped password must match the password entered.");
return false;
}
<%=SYSTEM.ENDIF%>
if ((objForm.nmf.value == "") || (objForm.nml.value == "")) {
alert("<%=PHRASE.474%>");
} else {
if (objForm.reqadr.value == "Y") {
if ((objForm.adr.value == "")
|| (objForm.cty.value == "")
|| (objForm.ste.value == "")
|| (objForm.pst.value == "")
|| (objForm.ctry.value == "")){
alert("<%=PHRASE.475%>");
} else {
return true;
}
} else {
return true;
}
}
return false;
}
function form1_submit(objForm) {
if (form1_validate(objForm)) {
objForm.dbop.value="save";
objForm.submit();
return true;
}
return false;
}
function form1_logout(objForm) {
var sURL;
sURL = "<%=PATHS.cgiroot%>/logout.pl?tid=<%=SESSION.tid%>&idle=N&lang=<%=SESSION.lang%>";
top.document.location.replace(sURL);
return true;
}
function form2_submit(objForm) {
var sURL, nIdx
if (form1_validate(document.form1)) {
nIdx=objForm.tstid.selectedIndex;
if (nIdx == -1) {
alert("You must select the item you wish to begin.");
} else {
sURL="<%=PATHS.cgiroot%>/tstframes.pl?tid=<%=SESSION.tid%>&dbop=starttest&tstid="+objForm.tstid.options[nIdx].value;
//objWdw = window.open("", "testwindow", "fullscreen=yes,resizable=no,scrollbars=auto");
objWdw = window.open("", "testwindow", "height="+screen.height+"width="+screen.width+",screenX=0,screenY=0,left=0,top=0,resizable=yes,scrollbars=auto");
objWdw.document.open();
objWdw.document.write("<CENTER><H1><%=PHRASE.476%><BR><%=PHRASE.479%></CENTER></BR>");
// objWdw.document.location=sURL;
objWdw.document.close();
bReload=true;
objForm.submit();
return true;
}
}
return false;
}
function form3_submit(objForm) {
var sURL, nIdx
var ss, rw;
nIdx=objForm.tstid.selectedIndex;
ss=objForm.tstid.options[nIdx].value;
//hkh 03/04 1st pos. of value fld contains test/survey review indicator - bug#12
rw=ss.substring(0,1);
if (nIdx == -1) {
alert("<%=PHRASE.477%>");
} else {
// hkh 03/04 alert user if test/survey review not allowed - bug#12
if (rw != "Y") {
alert("<%=PHRASE.757%>");
} else {
sURL="<%=PATHS.cgiroot%>/creports.pl?tid=<%=SESSION.tid%>&cndid=<%=SESSION.uid%>&rptno=ACT-C-006";
//objWdw = window.open("", "reportwdw", "fullscreen=no,resizable=yes,scrollbars=auto,toolbar=no");
objWdw = window.open("", "testwindow", "height="+screen.height+"width="+screen.width+",screenX=0,screenY=0,left=0,top=0,resizable=yes,scrollbars=auto");
objWdw.document.open();
objWdw.document.write("<CENTER><H1><%=PHRASE.479%></CENTER></BR>");
objWdw.document.location=sURL;
bReload=true;
return true;
}
}
return false;
}
// -->
</SCRIPT>
</HEAD>
<BODY BACKGROUND="<%=SYSTEM.BACKGROUND%>" BGCOLOR="<%=SYSTEM.BGCOLOR%>"
TEXT="<%=SYSTEM.TEXT%>" LINK="<%=SYSTEM.LINK%>"
VLINK="<%=SYSTEM.VLINK%>" ALINK="<%=SYSTEM.ALINK%>">
<CENTER>
<FORM name="form1" METHOD=POST ACTION="<%=PATHS.cgiroot%>/regtacl.pl">
<input type=hidden name="dbop" value="">
<INPUT NAME="tid" TYPE=HIDDEN VALUE="<%=SESSION.tid%>">
<INPUT NAME="clid" TYPE=HIDDEN VALUE="<%=SESSION.clid%>">
<INPUT NAME="uac" TYPE=HIDDEN VALUE="<%=SESSION.uac%>">
<INPUT TYPE="HIDDEN" NAME="lang" VALUE="<%=SESSION.lang%>">
<INPUT TYPE="HIDDEN" NAME="reqadr" VALUE="<%=CLIENT.clreqadr%>">
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
<TR>
<TD ALIGN="center" VALIGN="top">
<FONT SIZE=1 COLOR="<%=SYSTEM.HEADERCOLOR%>">
<%=CLIENT.clorg%> <%=CLIENT.cldept%><BR>
<%=CLIENT.logo%><BR>
<%=CLIENT.clunit%><BR>
</FONT>
</TD>
<TD ALIGN="center" VALIGN="top">
<FONT SIZE=4 COLOR="<%=SYSTEM.HEADERCOLOR%>">
<B><I><%=CLIENT.sitename%></I></B><BR>
</FONT>
</TD>
</TR>
<TR>
<TD COLSPAN="2" ALIGN="center" VALIGN="middle" NOWRAP>
<FONT SIZE=2 COLOR="<%=SYSTEM.HEADERCOLOR%>"><B><%=PHRASE.339%></B></FONT>
</TD>
</TR>
<TR>
<TD ALIGN="right" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<%=PHRASE.283%>&nbsp;
</FONT>
</TD>
<TD ALIGN="left" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<INPUT TYPE=TEXT NAME="sal" SIZE=6 MAXLENGTH=15 VALUE="<%=CANDIDATE.sal%>">
<INPUT TYPE=TEXT NAME="nmf" SIZE=15 MAXLENGTH=15 VALUE="<%=CANDIDATE.nmf%>">
<INPUT TYPE=TEXT NAME="nmm" SIZE=1 MAXLENGTH=1 VALUE="<%=CANDIDATE.nmm%>">
<INPUT TYPE=TEXT NAME="nml" SIZE=20 MAXLENGTH=20 VALUE="<%=CANDIDATE.nml%>">
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="right" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<%=PHRASE.63%>:&nbsp;
</FONT>
</TD>
<TD ALIGN="left" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<INPUT TYPE=TEXT NAME="adr" SIZE=30 MAXLENGTH=30 VALUE="<%=CANDIDATE.adr%>">
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="right" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<%=PHRASE.114%>&nbsp;
</FONT>
</TD>
<TD ALIGN="left" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<INPUT TYPE=TEXT NAME="cty" SIZE=25 MAXLENGTH=25 VALUE="<%=CANDIDATE.cty%>">
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="right" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<%=PHRASE.397%>&nbsp;
</FONT>
</TD>
<TD ALIGN="left" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<INPUT TYPE=TEXT NAME="ste" SIZE=4 MAXLENGTH=4 VALUE="<%=CANDIDATE.ste%>">
<%=PHRASE.316%>&nbsp;
<INPUT TYPE=TEXT NAME="pst" SIZE=10 MAXLENGTH=10 VALUE="<%=CANDIDATE.pst%>">
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="right" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<%=PHRASE.142%>&nbsp;
</FONT>
</TD>
<TD ALIGN="left" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<INPUT TYPE=TEXT NAME="ctry" SIZE=4 MAXLENGTH=4 VALUE="<%=CANDIDATE.ctry%>">
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="right" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<%=PHRASE.188%>&nbsp;
</FONT>
</TD>
<TD ALIGN="left" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<INPUT TYPE=TEXT NAME="eml" SIZE=30 MAXLENGTH=30 VALUE="<%=CANDIDATE.eml%>">
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="right" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
&nbsp;<BR>
</FONT>
</TD>
<TD ALIGN="left" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<INPUT TYPE=BUTTON VALUE="<%=PHRASE.262%>" onClick="return form1_logout(document.form1)">
</FONT>
</TD>
</TR>
</TABLE>
</FORM>
<HR WIDTH="90%">
<TABLE border=1>
<TR><TD align="center" valign="top">
<FORM NAME="form2" METHOD=POST ACTION="<%=PATHS.cgiroot%>/regtacl.pl" TARGET="testwindow">
<INPUT TYPE="HIDDEN" NAME="tid" VALUE="<%=SESSION.tid%>">
<INPUT TYPE="HIDDEN" NAME="dbop" VALUE="starttest">
<INPUT TYPE="HIDDEN" NAME="reqadr" VALUE="<%=CLIENT.clreqadr%>">
<INPUT TYPE=HIDDEN NAME="lang" VALUE="<%=SESSION.lang%>">
<TABLE BORDER=0>
<TR>
<TD ALIGN="center" VALIGN="middle" NOWRAP>
<FONT SIZE=2 COLOR="<%=SYSTEM.HEADERCOLOR%>"><B>&nbsp;<%=PHRASE.368%>&nbsp;</B></FONT>
</TD>
</TR>
<TR>
<TD ALIGN="center" VALIGN="top" NOWRAP>
<FONT SIZE=2>
<SELECT NAME="tstid" size="4" onDblClick="return form2_submit(document.form2)">
<%=CANDIDATE.tacltests%>
</SELECT><BR>
<INPUT TYPE=BUTTON NAME="begin" Value="<%=PHRASE.93%>" onClick="return form2_submit(document.form2)">
</FONT>
</TD>
</TR>
<TR>
</TR>
</TABLE>
</FORM>
</TD>
<TD align="center" valign="top">
<FORM NAME="form3" METHOD=POST ACTION="<%=PATHS.cgiroot%>/regcnd.pl"
onSubmit="form3_submit(this)" TARGET="reportwdw">
<INPUT TYPE="HIDDEN" NAME="tid" VALUE="<%=SESSION.tid%>">
<INPUT TYPE="HIDDEN" NAME="dbop" VALUE="review">
<INPUT TYPE=HIDDEN NAME="lang" VALUE="<%=SESSION.lang%>">
<TABLE BORDER=0>
<TR>
<TD ALIGN="center" VALIGN="middle" NOWRAP>
<FONT SIZE=2 COLOR="<%=SYSTEM.HEADERCOLOR%>"><B>&nbsp;<%=PHRASE.127%>&nbsp;</B></FONT>
</TD>
</TR>
<TR>
<TD ALIGN="center" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<SELECT NAME="tstid" size="4" onDblClick="return form3_submit(document.form3)">
<%=CANDIDATE.tacltests%>
</SELECT><BR>
<INPUT TYPE=BUTTON NAME="review" Value="<%=PHRASE.482%>" onClick="return form3_submit(document.form3)">
</FONT>
</TD>
</TR>
</TABLE>
</FORM>
</TD></TR>
</TABLE>
<HR WIDTH="90%">
<FONT SIZE=1 COLOR="#806F6C">
<%=PHRASE.428%> <i>TestManager</i> <%=PHRASE.80%> <i>SurveyManager</i> <%=PHRASE.218%>
<A HREF="http://www.actscorp.com/softwareoverview.htm"><%=PHRASE.469%></A>.<BR>
<%=PHRASE.136%><BR>
</FONT>
</CENTER>
</BODY>
</HTML>