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.
260 lines
7.3 KiB
260 lines
7.3 KiB
<!-- $Id: grpdefa.htt,v 1.2 2004/03/10 18:27:58 bcarico Exp $ -->
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>Group Registration Form</TITLE>
|
|
<BASEFONT FACE="Arial">
|
|
<%=SYSTEM.INCLUDEJS global.js %>
|
|
<SCRIPT language="JavaScript">
|
|
<!--
|
|
var down, csec, syncform;
|
|
|
|
function wdw_onLoad() {
|
|
syncform = top.findex.document.syncform
|
|
syncform.csec.value = <%=SYSTEM.autologout%>;
|
|
reset_grplist();
|
|
set_validdates();
|
|
monitor();
|
|
}
|
|
|
|
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%>;
|
|
}
|
|
|
|
function set_validdates() {
|
|
var objForm, sDate, sValue, nIdx;
|
|
objForm = document.form1
|
|
sDate=objForm.validfrom.value;
|
|
sValue=sDate.substring(0,2);
|
|
for (nIdx=0; nIdx < objForm.validfrommonth.options.length; nIdx++) {
|
|
if (objForm.validfrommonth.options[nIdx].value == sValue) {
|
|
objForm.validfrommonth.selectedIndex = nIdx;
|
|
break;
|
|
}
|
|
}
|
|
sValue=sDate.substring(3,5);
|
|
for (nIdx=0; nIdx < objForm.validfromday.options.length; nIdx++) {
|
|
if (objForm.validfromday.options[nIdx].value == sValue) {
|
|
objForm.validfromday.selectedIndex = nIdx;
|
|
break;
|
|
}
|
|
}
|
|
sValue=sDate.substring(6,10);
|
|
for (nIdx=0; nIdx < objForm.validfromyear.options.length; nIdx++) {
|
|
if (objForm.validfromyear.options[nIdx].value == sValue) {
|
|
objForm.validfromyear.selectedIndex = nIdx;
|
|
break;
|
|
}
|
|
}
|
|
sDate=objForm.validto.value;
|
|
sValue=sDate.substring(0,2);
|
|
for (nIdx=0; nIdx < objForm.validtomonth.options.length; nIdx++) {
|
|
if (objForm.validtomonth.options[nIdx].value == sValue) {
|
|
objForm.validtomonth.selectedIndex = nIdx;
|
|
break;
|
|
}
|
|
}
|
|
sValue=sDate.substring(3,5);
|
|
for (nIdx=0; nIdx < objForm.validtoday.options.length; nIdx++) {
|
|
if (objForm.validtoday.options[nIdx].value == sValue) {
|
|
objForm.validtoday.selectedIndex = nIdx;
|
|
break;
|
|
}
|
|
}
|
|
sValue=sDate.substring(6,10);
|
|
for (nIdx=0; nIdx < objForm.validtoyear.options.length; nIdx++) {
|
|
if (objForm.validtoyear.options[nIdx].value == sValue) {
|
|
objForm.validtoyear.selectedIndex = nIdx;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function reset_grplist() {
|
|
var objForm, sOrgList, sValue, bSelect, nIdx;
|
|
objForm = document.form1
|
|
sOrgList=","+objForm.origlist.value+",";
|
|
objForm.grplist.selectedIndex = -1;
|
|
if (sOrgList==",,") { return;}
|
|
for (nIdx = 0; nIdx < objForm.grplist.length; nIdx++) {
|
|
sValue = ","+objForm.grplist.options[nIdx].value+",";
|
|
bSelect=(sOrgList.indexOf(sValue) != -1) ? true : false;
|
|
objForm.grplist.options[nIdx].selected = bSelect;
|
|
}
|
|
return;
|
|
}
|
|
|
|
function form1_submit(objForm) {
|
|
var nIdx;
|
|
if (objForm.active.value =="Y") {
|
|
if (objForm.grpowner.value != "") {
|
|
if (objForm.grpid.value != "") {
|
|
if (objForm.grpnme.value != "") {
|
|
nIdx = objForm.validfrommonth.selectedIndex;
|
|
objForm.validfrom.value = objForm.validfrommonth.options[nIdx].value;
|
|
nIdx = objForm.validfromday.selectedIndex;
|
|
objForm.validfrom.value += "-"+objForm.validfromday.options[nIdx].value;
|
|
nIdx = objForm.validfromyear.selectedIndex;
|
|
objForm.validfrom.value += "-"+objForm.validfromyear.options[nIdx].value;
|
|
nIdx = objForm.validtomonth.selectedIndex;
|
|
objForm.validto.value = objForm.validtomonth.options[nIdx].value;
|
|
nIdx = objForm.validtoday.selectedIndex;
|
|
objForm.validto.value += "-"+objForm.validtoday.options[nIdx].value;
|
|
nIdx = objForm.validtoyear.selectedIndex;
|
|
objForm.validto.value += "-"+objForm.validtoyear.options[nIdx].value;
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
alert("<%=PHRASE.499%>");
|
|
return false;
|
|
} else {
|
|
alert("<%=PHRASE.497%>");
|
|
return false;
|
|
}
|
|
}
|
|
|
|
function grpid_check(objForm) {
|
|
var sURL,down;
|
|
if (objForm.chkgrpid.checked) {
|
|
sURL = "<%=PATHS.cgiroot%>/groupid.pl?tid=<%=SESSION.tid%>&lang=<%=SESSION.lang%>";
|
|
objWdw = window.open("", "helpwindow", "height=300, width=300, resizable=no, scrollbars=auto");
|
|
objWdw.document.open();
|
|
objWdw.document.write("<CENTER><%=PHRASE.498%><BR><%=PHRASE.479%></CENTER>");
|
|
objWdw.document.location = sURL;
|
|
objForm.chkgrpid.checked=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 NAME="form1" METHOD=POST ACTION="<%=PATHS.cgiroot%>/grpdef.pl"
|
|
enctype="multipart/form-data" onSubmit="return form1_submit(this)">
|
|
<INPUT TYPE="HIDDEN" NAME="tid" VALUE="<%=SESSION.tid%>">
|
|
<INPUT TYPE="HIDDEN" NAME="new" VALUE="<%=FORM.new%>">
|
|
<INPUT TYPE="HIDDEN" NAME="dbop" VALUE="<%=FORM.pageid%>">
|
|
<INPUT TYPE="HIDDEN" NAME="active" VALUE="<%=CLIENT.active%>">
|
|
<INPUT TYPE="HIDDEN" NAME="validfrom" VALUE="<%=GROUP.validfrom%>">
|
|
<INPUT TYPE="HIDDEN" NAME="validto" VALUE="<%=GROUP.validto%>">
|
|
<INPUT TYPE="HIDDEN" NAME="origlist" VALUE="<%=GROUP.grplist%>">
|
|
<input name="lang" type="hidden" value="<%=SESSION.lang%>">
|
|
<TABLE CELLSPACING=0 CELLPADDING=2 BORDER=1>
|
|
<TR>
|
|
<TD ALIGN="left" VALIGN="middle" NOWRAP>
|
|
<%=PHRASE.227%> <BR>
|
|
</TD>
|
|
<TD ALIGN="left" VALIGN="middle" NOWRAP>
|
|
<%=PHRASE.224%> <BR>
|
|
</TD>
|
|
</TR>
|
|
<TR>
|
|
<TD colspan=2 ALIGN="left" VALIGN="middle" NOWRAP>
|
|
<%=PHRASE.226%> <BR>
|
|
</TD>
|
|
</TR>
|
|
<TR>
|
|
<%=SYSTEM.STARTIF?FORM.new Y INCLUDE %>
|
|
<TD ALIGN="left" VALIGN="middle" NOWRAP>
|
|
<INPUT TYPE=TEXT NAME="grpowner" SIZE=10 VALUE="<%=GROUP.grpowner%>">
|
|
</TD>
|
|
<TD ALIGN="left" VALIGN="middle" NOWRAP>
|
|
<INPUT TYPE=TEXT NAME="grpid" SIZE=10 VALUE="<%=GROUP.grpid%>">
|
|
</TD>
|
|
<%=SYSTEM.ELSE%>
|
|
<TD ALIGN="left" VALIGN="middle" NOWRAP>
|
|
<%=GROUP.grpowner%>
|
|
<INPUT TYPE=HIDDEN NAME="grpowner" VALUE="<%=GROUP.grpowner%>">
|
|
</TD>
|
|
<TD ALIGN="left" VALIGN="middle" NOWRAP>
|
|
<%=GROUP.grpid%>
|
|
<INPUT TYPE=HIDDEN NAME="grpid" VALUE="<%=GROUP.grpid%>">
|
|
</TD>
|
|
<%=SYSTEM.ENDIF%>
|
|
</TR>
|
|
<TR>
|
|
<TD colspan=2 ALIGN="left" VALIGN="middle" NOWRAP>
|
|
<INPUT TYPE=TEXT NAME="grpnme" size=30 VALUE="<%=GROUP.grpnme%>">
|
|
</TD>
|
|
</TR>
|
|
<TR>
|
|
<TD ALIGN="left" VALIGN="middle" NOWRAP>
|
|
<%=PHRASE.448%> <BR>
|
|
</TD>
|
|
<TD ALIGN="left" VALIGN="middle" NOWRAP>
|
|
<%=PHRASE.449%> <BR>
|
|
</TD>
|
|
</TR>
|
|
<TR>
|
|
<TD ALIGN="left" VALIGN="middle" NOWRAP>
|
|
<FONT SIZE=2>
|
|
<SELECT NAME="validfrommonth">
|
|
<%=SYSTEM.months%>
|
|
</SELECT>
|
|
<SELECT NAME="validfromday">
|
|
<%=SYSTEM.days%>
|
|
</SELECT>
|
|
<SELECT NAME="validfromyear">
|
|
<%=SYSTEM.years%>
|
|
</SELECT>
|
|
</FONT>
|
|
</TD>
|
|
<TD ALIGN="left" VALIGN="middle" NOWRAP>
|
|
<FONT SIZE=2>
|
|
<SELECT NAME="validtomonth">
|
|
<%=SYSTEM.months%>
|
|
</SELECT>
|
|
<SELECT NAME="validtoday">
|
|
<%=SYSTEM.days%>
|
|
</SELECT>
|
|
<SELECT NAME="validtoyear">
|
|
<%=SYSTEM.years%>
|
|
</SELECT>
|
|
</FONT>
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
|
|
<TR>
|
|
<TD ALIGN="right" VALIGN="middle" NOWRAP>
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR>
|
|
<TD ALIGN="center" VALIGN="middle" NOWRAP>
|
|
<FONT COLOR="<%=SYSTEM.HEADERCOLOR%"><%=PHRASE.82%><BR></FONT>
|
|
<SELECT NAME="grplist" SIZE=8 multiple>
|
|
<%=CLIENT.userlist%>
|
|
</SELECT>
|
|
</TD>
|
|
<TD ALIGN="center" VALIGN="middle">
|
|
<FONT SIZE=2 COLOR="<%=SYSTEM.ERRORCOLOR%>">
|
|
<%=PHRASE.83%><BR>
|
|
<%=PHRASE.435%><BR>
|
|
<%=PHRASE.235%><BR>
|
|
</FONT>
|
|
<BR>
|
|
<INPUT TYPE=SUBMIT VALUE="<%=PHRASE.2%>">
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
</FORM>
|
|
</BODY>
|
|
</HTML>
|
|
|