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.
 
 
 
 
 
 

681 lines
19 KiB

<!-- $Id: treplica.htt -->
<HTML>
<HEAD>
<TITLE><%=PHRASE.671%></TITLE>
<BASEFONT FACE="Arial">
<%=SYSTEM.STARTIF?SESSION.browserapp MSIE INCLUDE %>
<STYLE>
<!--
SELECT {font-size: 10px;height: 150;width: 200;}
INPUT {font-size: 10px;height: 20;}
-->
</STYLE>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.INCLUDEJS global.js %>
<SCRIPT language="JavaScript">
<!--
var ulist = new Array;
function user(oform,lv) {
var s,v;
v="x";
s="??????????????????????";
this.profid=oform.profid.value;
this.pwd=oform.pwd.value;
this.nmf=oform.nmf.value;
this.nmm=oform.nmm.value;
this.nml=oform.nml.value;
this.adr=oform.adr.value;
this.cty=oform.cty.value;
this.ste=oform.ste.value;
this.pst=oform.pst.value;
this.ctry=oform.ctry.value;
this.eml=oform.eml.value;
this.value=lv;
if (lv != v) {
s="<"+this.value+">";
s+=" "+this.profid;
s+=":"+this.pwd;
s+=" "+this.nml;
s+=","+this.nmf;
s+=" "+this.nmm;
}
this.text=s;
return this;
}
function updateuser(ousr,oform,lv) {
var s,v;
v="x";
ousr.value=lv;
if (lv == v) {
ousr.profid="";
ousr.pwd="";
ousr.nmf="";
ousr.nmm="";
ousr.nml="";
ousr.adr="";
ousr.cty="";
ousr.ste="";
ousr.pst="";
ousr.ctry="US";
ousr.eml="";
s="??????????????????????";
} else {
ousr.profid=oform.profid.value;
ousr.pwd=oform.pwd.value;
ousr.nmf=oform.nmf.value;
ousr.nmm=oform.nmm.value;
ousr.nml=oform.nml.value;
ousr.adr=oform.adr.value;
ousr.cty=oform.cty.value;
ousr.ste=oform.ste.value;
ousr.pst=oform.pst.value;
ousr.ctry=oform.ctry.value;
ousr.eml=oform.eml.value;
s="<"+ousr.value+">";
s+=" "+ousr.profid;
s+=":"+ousr.pwd;
s+=" "+ousr.nml;
s+=","+ousr.nmf;
s+=" "+ousr.nmm;
}
ousr.text=s;
return true;
}
function wdw_onLoad() {
var s;
document.treplicaform.onsubmit=submit1;
s="<%=FORM.dbopmessage%>";
if (s != "") {
alert(s);
}
buildArray(document.treplicaform);
}
function buildArray(oform) {
var i,s,v;
v="x";
for(i=0;i < oform.rulist.options.length; i++) {
ulist[i]=new user(oform,v);
}
}
function removeItem(oform) {
var i,j,v,u;
v="x";
for (i=0;i<oform.rulist.options.length; i++) {
if (oform.rulist.options[i].selected==true) {
updateuser(ulist[i],oform,v);
oform.rulist.options[i].value=ulist[i].value;
oform.rulist.options[i].text=ulist[i].text;
oform.rulist.options[i].selected=false;
}
}
for (i=0;i<ulist.length; i++) {
if (ulist[i].value == v) {
u=ulist[i];
for (j=i+1; j<ulist.length;j++) {
if (ulist[j].value != v) {
ulist[i]=ulist[j];
ulist[j]=u;
break;
}
}
}
}
for (i=0; i<oform.rulist.options.length;i++) {
oform.rulist.options[i].value=ulist[i].value;
oform.rulist.options[i].text=ulist[i].text;
}
oform.profid.value="";
oform.pwd.value="";
oform.nmf.value="";
oform.nmm.value="";
oform.nml.value="";
oform.adr.value="";
oform.cty.value="";
oform.ste.value="";
oform.pst.value="";
oform.ctry.value="US";
oform.eml.value="";
return false;
}
function addUserItem(oform) {
var i;
for (i=0;i<oform.rulist.options.length; i++) {
if (oform.rulist.options[i].value=="x") {
updateuser(ulist[i],oform,"USR");
oform.rulist.options[i].text=ulist[i].text;
oform.rulist.options[i].value=ulist[i].value;
break;
}
}
return false;
}
function addTaclItem(oform) {
var i;
for (i=0;i<oform.rulist.options.length; i++) {
if (oform.rulist.options[i].value=="x") {
updateuser(ulist[i],oform,"ACL");
oform.rulist.options[i].text=ulist[i].text;
oform.rulist.options[i].value=ulist[i].value;
break;
}
}
return false;
}
function selectUser(oform) {
var i,j;
i=oform.rulist.options.selectedIndex;
if (ulist[i].value=="x") {
oform.profid.value="";
oform.pwd.value="";
oform.nmf.value="";
oform.nmm.value="";
oform.nml.value="";
oform.adr.value="";
oform.cty.value="";
oform.ste.value="";
oform.pst.value="";
oform.ctry.value="";
oform.eml.value="";
} else {
oform.profid.value=ulist[i].profid;
oform.pwd.value=ulist[i].pwd;
oform.nmf.value=ulist[i].nmf;
oform.nmm.value=ulist[i].nmm;
oform.nml.value=ulist[i].nml;
oform.adr.value=ulist[i].adr;
oform.cty.value=ulist[i].cty;
oform.ste.value=ulist[i].ste;
oform.pst.value=ulist[i].pst;
oform.ctry.value=ulist[i].ctry;
oform.eml.value=ulist[i].eml;
}
}
function reformatClick(oform) {
var i,c,s,t,tb;
tb=unescape("%09");
s=oform.pastetext.value;
t="";
for (i=0;i<s.length; i++) {
c=s.charAt(i);
if (c==tb) {
t+=",";
} else {
t+=c;
}
}
oform.pastetext.value=t;
return false;
}
function pasteitClick(oform) {
var c,fe,i,j,lf,cm,s,t,u,v,haderr;
hadderr=false;
s=oform.pastetext.value;
oform.pastetext.value="";
lf=unescape("%0D")+unescape("%0A");
cm=",";
i=s.indexOf(lf,0);
while (s != "") {
if (i == -1) {
t=s;
s="";
} else {
j=s.length;
t=s.substring(0,i);
i=i+lf.length;
s=s.substring(i,j);
}
i=t.indexOf(cm,0);
fe=true;
if (i != -1) {
t=firstword(oform.rtype,t,cm);
u=oform.rtype.value;
oform.rtype.value=u.toUpperCase();
if ((oform.rtype.value == "USR") || (oform.rtype.value == "ACL")) {
t=firstword(oform.profid,t,cm);
if (oform.profid.value == "") {
fe=true;
v=u+",*<"+oform.profid.value+">,"+t;
} else {
v=u+","+oform.profid.value+",";
t=firstword(oform.pwd,t,cm);
if (oform.pwd.value == "") {
fe=true;
v+="*<"+oform.pwd.value+">,"+t;
} else {
v+=oform.pwd.value+",";
t=firstword(oform.eml,t,cm);
v+=oform.eml.value+",";
t=firstword(oform.nmf,t,cm);
v+=oform.nmf.value+",";
t=firstword(oform.nmm,t,cm);
if (oform.nmm.value.length > 1) {
fe=true;
v+="*<"+oform.nmm.value+">,"+t;
} else {
v+=oform.nmm.value+",";
t=firstword(oform.nml,t,cm);
t=firstword(oform.adr,t,cm);
t=firstword(oform.cty,t,cm);
t=firstword(oform.ste,t,cm);
t=firstword(oform.pst,t,cm);
t=firstword(oform.ctry,t,cm);
if (oform.rtype.value == "USR") {
addUserItem(oform);
} else {
addTaclItem(oform);
}
fe=false;
}
}
}
} else {
v="*<"+u+">,"+t;
}
}
if (fe) {
oform.pastetext.value+="FE>"+v+unescape("%0D")+unescape("%0A");
hadderr=true;
}
t="";
i=s.indexOf(lf,0);
}
if (hadderr) {
alert("The text contained format errors and the error lines were retained in the box for correction.");
}
return false;
}
function firstword(o,s,d) {
var i,j,w;
w="";
i=s.indexOf(d,0);
if (i==-1) {
w=s;
s="";
} else {
j=s.length;
w=s.substring(0,i);
i+=d.length;
s=s.substring(i,j);
}
o.value=w;
return s;
}
function populate_listfield(oform) {
var i,v,fs,rs;
v="x";
fs=",";
rs="/^/";
oform.utlist.value="";
for (i=0;i<ulist.length;i++) {
if (ulist[i].value != v) {
oform.utlist.value+=ulist[i].value+fs;
oform.utlist.value+=ulist[i].profid+fs;
oform.utlist.value+=ulist[i].pwd+fs;
oform.utlist.value+=ulist[i].nmf+fs;
oform.utlist.value+=ulist[i].nmm+fs;
oform.utlist.value+=ulist[i].nml+fs;
oform.utlist.value+=ulist[i].adr+fs;
oform.utlist.value+=ulist[i].cty+fs;
oform.utlist.value+=ulist[i].ste+fs;
oform.utlist.value+=ulist[i].pst+fs;
oform.utlist.value+=ulist[i].ctry+fs;
oform.utlist.value+=ulist[i].eml+rs;
}
}
return true;
}
function recSave(oform,dbop) {
if (confirm("Are you sure you want to replicate the selected test for the selected client?")) {
populate_listfield(oform);
oform.dbop.value=dbop;
return submit1(oform,dbop);
} else {
return false;
}
}
function submit1(oform,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%>/treplica.pl" Name="treplicaform">
<INPUT NAME="tid" TYPE=HIDDEN VALUE="<%=SESSION.tid%>">
<INPUT NAME="clid" TYPE=HIDDEN VALUE="<%=FORM.clid%>">
<INPUT NAME="tstid" TYPE=HIDDEN VALUE="<%=FORM.tstid%>">
<INPUT NAME="cndid" TYPE=HIDDEN VALUE="<%=FORM.cndid%>">
<INPUT NAME="utlist" TYPE=HIDDEN VALUE="">
<INPUT NAME="lang" TYPE=HIDDEN VALUE="<%=SESSION.lang%>">
<INPUT NAME="dbop" TYPE=HIDDEN VALUE="">
<INPUT NAME="rtype" TYPE=HIDDEN VALUE="">
<CENTER>
<TABLE cellpadding=0 cellspacing=2 border=0>
<TR>
<TD colspan=2 align="center" valign=top>
<FONT SIZE="2" COLOR="<%=SYSTEM.HEADERCOLOR%>">
<i>
<B><%=CLIENT.clnmc%> - <%=CANDIDATE.nml%>, <%=CANDIDATE.nmf%> <%=CANDIDATE.nmm%> - <%=TEST.desc%></B>
&nbsp;(<u><%=CLIENT.clid%>.<%=CANDIDATE.uid%>.<%=TEST.id%></u>)<br>
will be replicated for each user id entered below.
&nbsp;<br>
</i>
</FONT>
</TD>
</TR>
<TR>
<TD align="center" valign=top>
<FONT SIZE="2">
<table>
<TR>
<TD colspan=2 ALIGN="center" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<B>Enter ACL/User Profile</B>
<font size=1>
&nbsp;or&nbsp;<a href="#cutpaste">Cut and Paste text to list.</a>
</font>
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="right" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
Common ACL Login:&nbsp;
</FONT>
</TD>
<TD ALIGN="left" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<nobr>
<select NAME="uidlist">
<%=TEST.tacccnds%>
</select>
</nobr>
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="right" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<%=PHRASE.260%>&nbsp;
</FONT>
</TD>
<TD ALIGN="left" VALIGN="middle" NOWRAP>
<FONT SIZE=2><nobr>
<INPUT TYPE=TEXT NAME="profid" SIZE=16 MAXLENGTH=16 VALUE="">
</nobr></FONT>
</TD>
</TR>
<TR>
<TD ALIGN="right" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<%=PHRASE.310%>&nbsp;
</FONT>
</TD>
<TD ALIGN="left" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<INPUT TYPE=TEXT NAME="pwd" SIZE=30 MAXLENGTH=50 VALUE="">
</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=35 MAXLENGTH=100 VALUE="">
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="right" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<%=PHRASE.281%>&nbsp;
</FONT>
</TD>
<TD ALIGN="left" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<INPUT TYPE=TEXT NAME="nmf" SIZE=11 MAXLENGTH=15 VALUE=""
><INPUT TYPE=TEXT NAME="nmm" SIZE=1 MAXLENGTH=1 VALUE=""
><INPUT TYPE=TEXT NAME="nml" SIZE=18 MAXLENGTH=20 VALUE="">
</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="">
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="right" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<%=PHRASE.114%>&nbsp;/&nbsp;
<%=PHRASE.397%>&nbsp;
</FONT>
</TD>
<TD ALIGN="left" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<INPUT TYPE=TEXT NAME="cty" SIZE=25 MAXLENGTH=25 VALUE="">
<INPUT TYPE=TEXT NAME="ste" SIZE=4 MAXLENGTH=4 VALUE="">
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="right" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<%=PHRASE.316%>&nbsp;/&nbsp;
<%=PHRASE.142%>&nbsp;
</FONT>
</TD>
<TD ALIGN="left" VALIGN="middle" NOWRAP>
<FONT SIZE=2>
<INPUT TYPE=TEXT NAME="pst" SIZE=10 MAXLENGTH=10 VALUE="">
<INPUT TYPE=TEXT NAME="ctry" SIZE=4 MAXLENGTH=4 VALUE="US">
</FONT>
</TD>
</TR>
</table>
</FONT>
</TD>
<TD align="center" valign=top>
<FONT SIZE="2">
<table>
<TR>
<TD ALIGN="center" VALIGN="middle" NOWRAP>
<FONT SIZE="2"><nobr>
<b>Replication User List</b><br>
</nobr>
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="center" VALIGN="middle" NOWRAP>
<FONT SIZE="2"><nobr>
<select name="rulist" size=10 onChange="return selectUser(this.form)" multiple>
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
<option value="x">????????????????????????
</select><br>
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="left" VALIGN="middle" NOWRAP>
<FONT SIZE="2"><nobr>
<input type=radio name="profexst" value="e" checked>Report Error if profile exists<br>
<input type=radio name="profexst" value="u">Update existing profiles<br>
<input type=radio name="profexst" value="r">Replace existing profiles<br>
</FONT>
</TD>
</TR>
</table>
</FONT>
</TD>
</TR>
<TR>
<TD colspan=2 align="center" valign=top>
<FONT SIZE="2">
<input type=button name="adduprf" Value="Add User" onClick="return addUserItem(this.form)">
<input type=button name="addtacl" Value="Add to Access Control List" onClick="return addTaclItem(this.form)">
<input type=button name="rmvsel" Value="Remove" onClick="return removeItem(this.form)">
<INPUT TYPE=BUTTON NAME="recsav" VALUE="Replicate" onClick="return recSave(this.form,'s')">
</FONT>
</TD>
</TR>
<TR>
<TD colspan=2 align="center" valign=top>
<FONT SIZE="2">
&nbsp;<br>
</FONT>
</TD>
</TR>
<TR>
<TD colspan=2 align="center" valign=top>
<FONT SIZE="2">
&nbsp;<br>
</FONT>
</TD>
</TR>
<TR>
<TD colspan=2 align="center" valign=top>
<FONT SIZE="2">
<a name="cutpaste">
<b>Type or Cut and Paste the text into the box below.</b><br>
Line format: (fields are separated by commas - do not include quotes)<br>
<b><u>type</u></b>,<b><u>id</u></b>,<b><u>password</u></b>,email,<u>first-name</u>,mi,<u>last-name</u>,street,city,state,postal,country<br>
<font size=1>&nbsp;<br>
TYPE is either USR (User Profile) or ACL (Test Access Control List) record entry.<br>
<b>Bold</b> fields required ACL record types.
<u>Underlined</u> fields required for USR record types.
</font>
</a>
</FONT>
</TD>
</TR>
<TR>
<TD colspan=2 align="center" valign=top>
<FONT SIZE="2">
<TEXTAREA NAME="pastetext" rows=10 cols=60></TEXTAREA><br>
<input type=button name="reformat" value="Convert Tabs" onClick="return reformatClick(this.form)">
<input type=button name="pasteit" value="Paste Into List" onClick="return pasteitClick(this.form)">
<a href="#top">Back To Top</a>
</FONT>
</TD>
</TR>
</TABLE>
</CENTER>
</FORM>
</BODY>
</HTML>