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.

181 lines
4.3 KiB

<!-- $Id: taccdtl.htt -->
<HTML>
<HEAD>
<TITLE><%=PHRASE.593%></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 s,a;
document.taccform.onsubmit=submit1;
showpwdlist(document.taccform);
s="<%=FORM.dbopmessage%>";
if (s != "") {
alert(s);
}
}
function autoLoginOnClick(oform) {
var s=oform.spwdlist.value,i;
if (oform.chkautologin.checked) {
oform.spwdlist.value=s+"_____,Auto login";
} else {
re = /_____,Auto login/g;
oform.spwdlist.value=s.replace(re, "");
}
return true;
}
function recSave(oform,dbop) {
if (confirm("Are you sure you want to replace the existing access list with this one?")) {
oform.dbop.value=dbop;
return submit1(oform,dbop);
} else {
return false;
}
}
function recClear(oform,dbop) {
if (confirm("Are you sure you want to delete the existing access list?")) {
oform.dbop.value=dbop;
return submit1(oform,dbop);
} else {
return false;
}
}
function submit1(oform,dop) {
var s;
s=oform.spwdlist.value;
oform.pwdlist.value=reformat(s);
oform.submit();
return true;
}
function showpwdlist(oform) {
var s;
s=oform.pwdlist.value;
oform.spwdlist.value=unformat(s);
}
function unformat(s) {
var i,l,c,r,t;
l=s.length;
t="";
for(i=0;i<=l;i++) {
c=s.charAt(i);
r=c.toString();
if (r == "+") {
t+=" ";
} else {
if (r == ";") {
t+=unescape("%0D")+unescape("%0A");
} else {
t+=r;
}
}
}
return t;
}
function reformat(s) {
var i,l,c,r,t;
l=s.length;
t="";
for(i=0;i<=l;i++) {
c=s.charAt(i);
r=c.toString();
if (r == " ") {
t+="+";
} else {
if (r == unescape("%0A")) {
t+=";";
} else {
if (r != unescape("%0D")) {
t+=r;
}
}
}
}
return t;
}
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%>/taccdef.pl" Name="taccform">
<INPUT NAME="frm" TYPE=HIDDEN VALUE="2">
<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="">
<INPUT NAME="pwdlist" TYPE=HIDDEN VALUE="<%=TEST.taccpwds%>">
<CENTER>
<TABLE cellpadding=0 cellspacing=2 border=0>
<TR>
<TD colspan=2 align="CENTER" valign=top>
<FONT SIZE=2 COLOR="<%=SYSTEM.HEADERCOLOR%>"><B><%=TEST.desc%> <%=PHRASE.593%></B></FONT>
</TD>
</TR>
<TR>
<TD colspan=2 align="left" valign=top>
<FONT SIZE="2"><nobr>
<i>
<b>To allow access to the test/survey using a common Login ID:</b><br>
&nbsp;&nbsp;1). select the common login ID to be used<br>
&nbsp;&nbsp;2). enter the list of access passwords to be accepted.<br>
<b>The access password list should contain one candidate per row and each row can consist of 1 or 2 fields:</b><br>
&nbsp;&nbsp;<u>password</u>&nbsp;(<b>required</b>),&nbsp;<u>descriptor</u>&nbsp;(optional user defined reference)<br>
&nbsp;<br>
</i></nobr>
</FONT>
</TD>
</TR>
<TR>
<TD align="right" valign=middle>
<FONT SIZE="2"><nobr>
<b>Common Login ID:&nbsp;</b>
</nobr></FONT>
</TD>
<TD align="left" valign=middle>
<FONT SIZE="2">
<select NAME="uidlist">
<%=TEST.tacccnds%>
</select>
<input type=checkbox name=chkautologin <%=TEST.chkautologin%> onClick="return autoLoginOnClick(this.form)"> <b>Allow auto-login</b>
<input type=hidden name=autologin <%=TEST.autologin%>>
</FONT>
</TD>
</TR>
<TR>
<TD align="right" valign=top>
<FONT SIZE="2"><nobr>
<b>Access Passwords:&nbsp;</b>
</nobr></FONT>
</TD>
<TD align="left" valign=top>
<FONT SIZE="2">
<TEXTAREA NAME="spwdlist" ROWS=10 COLS=40></TEXTAREA>
</FONT>
</TD>
</TR>
<TR>
<TD colspan=2 align="center" valign=middle>
<FONT SIZE="2">
<INPUT TYPE=BUTTON NAME="recsav" VALUE="Replace" onClick="return recSave(this.form,'s')">
<INPUT TYPE=BUTTON NAME="recdel" VALUE="Delete" onClick="return recClear(this.form,'d')">
</FONT>
</TD>
</TR>
</TABLE>
</CENTER>
</FORM>
</BODY>
</HTML>