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.
287 lines
8.2 KiB
287 lines
8.2 KiB
4 months ago
|
<!-- $Id: maintcnd.htt,v 1.10 2006/07/31 21:20:39 psims Exp $ -->
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE><%=PHRASE.419%> <%=PHRASE.64%></TITLE>
|
||
|
<BASEFONT FACE="Arial">
|
||
|
<%=SYSTEM.STARTIF?SESSION.browserapp MSIE INCLUDE %>
|
||
|
<STYLE>
|
||
|
<!--
|
||
|
SELECT {font-size: 10px;width: 400;}
|
||
|
SELECT {font-size: 10px;width: 400;}
|
||
|
INPUT {font-size: 10px;height: 20;}
|
||
|
-->
|
||
|
</STYLE>
|
||
|
<%=SYSTEM.ENDIF%>
|
||
|
<%=SYSTEM.INCLUDEJS global.js %>
|
||
|
<SCRIPT language="JavaScript">
|
||
|
<!--
|
||
|
var down, csec, syncform;
|
||
|
var wdwready=false;
|
||
|
function wdw_onLoad() {
|
||
|
syncform = top.findex.document.syncform
|
||
|
syncform.csec.value = <%=SYSTEM.autologout%>;
|
||
|
monitor();
|
||
|
make_select_day();
|
||
|
make_select_date();
|
||
|
<%=SYSTEM.STARTIF?CLIENT.clcnd1vals NULL EXCLUDE %>
|
||
|
make_select_cnd1();
|
||
|
<%=SYSTEM.ENDIF%>
|
||
|
<%=SYSTEM.STARTIF?CLIENT.clcnd2vals NULL EXCLUDE %>
|
||
|
make_select_cnd2();
|
||
|
<%=SYSTEM.ENDIF%>
|
||
|
<%=SYSTEM.STARTIF?CLIENT.clcnd3vals NULL EXCLUDE %>
|
||
|
make_select_cnd3();
|
||
|
<%=SYSTEM.ENDIF%>
|
||
|
<%=SYSTEM.STARTIF?CLIENT.clcnd4vals NULL EXCLUDE %>
|
||
|
make_select_cnd4();
|
||
|
<%=SYSTEM.ENDIF%>
|
||
|
wdwready=true;
|
||
|
}
|
||
|
|
||
|
function monitor() {
|
||
|
monitorrepeat();
|
||
|
}
|
||
|
|
||
|
function monitorrepeat() {
|
||
|
csec=syncform.csec.value;
|
||
|
csec--;
|
||
|
syncform.csec.value=csec;
|
||
|
if ((csec > 0)) {
|
||
|
down=setTimeout("monitorrepeat()",1000);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function reset_autotimer() {
|
||
|
if (wdwready==true) {
|
||
|
syncform.csec.value=<%=SYSTEM.autologout%>;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function cndDblClick(objForm) {
|
||
|
if (wdwready==true) {
|
||
|
return btn_cupd_click(objForm);
|
||
|
} else {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
function btn_cupd_click(objForm) {
|
||
|
if (document.clientwdw.cndid.selectedIndex==-1) {
|
||
|
alert("<%=PHRASE.503%>");
|
||
|
return false;
|
||
|
} else {
|
||
|
objForm.dbop.value="cupd";
|
||
|
objForm.submit();
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function btn_cnew_click(objForm) {
|
||
|
objForm.dbop.value="cnew";
|
||
|
objForm.submit();
|
||
|
return true;
|
||
|
}
|
||
|
function makeFilter(obj) {
|
||
|
jumbo = '/cgi-bin/sadmin.pl?tid=<%=FORM.tid%>&dtl=<%=FORM.dtl%>&lang=<%=FORM.lang%>&filterbydate=Y&day_filter=' + document.clientwdw.day_filter.value + '&date_filter=' + document.clientwdw.date_filter.value;
|
||
|
|
||
|
<%=SYSTEM.STARTIF?CLIENT.clcnd1vals NULL EXCLUDE %>
|
||
|
jumbo = jumbo + '&cnd1=' + document.clientwdw.cnd1.value;
|
||
|
<%=SYSTEM.ENDIF%>
|
||
|
<%=SYSTEM.STARTIF?CLIENT.clcnd2vals NULL EXCLUDE %>
|
||
|
jumbo = jumbo + '&cnd2=' + document.clientwdw.cnd2.value;
|
||
|
<%=SYSTEM.ENDIF%>
|
||
|
<%=SYSTEM.STARTIF?CLIENT.clcnd3vals NULL EXCLUDE %>
|
||
|
if (document.clientwdw.cnd3.type != "radio" || (document.clientwdw.cnd3.type == radio && document.clientwdw.cnd3.checked)) {
|
||
|
jumbo = jumbo + '&cnd3=' + document.clientwdw.cnd3.value;
|
||
|
}
|
||
|
<%=SYSTEM.ENDIF%>
|
||
|
<%=SYSTEM.STARTIF?CLIENT.clcnd4vals NULL EXCLUDE %>
|
||
|
jumbo = jumbo + '&cnd4=' + document.clientwdw.cnd4.value;
|
||
|
<%=SYSTEM.ENDIF%>
|
||
|
top.frames.detail.location.href = jumbo;
|
||
|
}
|
||
|
|
||
|
function make_select_day() {
|
||
|
var i, j;
|
||
|
j=document.clientwdw.day_filter.length;
|
||
|
for ( i=0;i < j; i++) {
|
||
|
if ( document.clientwdw.day_filter.options[i].value == "<%=FORM.day_filter%>") {
|
||
|
document.clientwdw.day_filter.options[i].selected = true;
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
function make_select_cnd1() {
|
||
|
var i, j;
|
||
|
j=document.clientwdw.cnd1.length;
|
||
|
for ( i=0;i < j; i++) {
|
||
|
if ( document.clientwdw.cnd1.options[i].value == "<%=FORM.cnd1%>") {
|
||
|
document.clientwdw.cnd1.options[i].selected = true;
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function make_select_cnd2() {
|
||
|
var i, j;
|
||
|
j=document.clientwdw.cnd2.length;
|
||
|
for ( i=0;i < j; i++) {
|
||
|
if ( document.clientwdw.cnd2.options[i].value == "<%=FORM.cnd2%>") {
|
||
|
document.clientwdw.cnd2.options[i].selected = true;
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function make_select_cnd3() {
|
||
|
var i, j;
|
||
|
//alert(document.clientwdw.cnd3.type);
|
||
|
if (document.clientwdw.cnd3.type == "radio") {
|
||
|
document.clientwdw.cnd3.value = "<%=FORM.cnd3%>";
|
||
|
} else {
|
||
|
j=document.clientwdw.cnd3.length;
|
||
|
for ( i=0;i < j; i++) {
|
||
|
if ( document.clientwdw.cnd3.options[i].value == "<%=FORM.cnd3%>") {
|
||
|
document.clientwdw.cnd3.options[i].selected = true;
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function make_select_cnd4() {
|
||
|
var i, j;
|
||
|
j=document.clientwdw.cnd4.length;
|
||
|
for ( i=0;i < j; i++) {
|
||
|
if ( document.clientwdw.cnd4.options[i].value == "<%=FORM.cnd4%>") {
|
||
|
document.clientwdw.cnd4.options[i].selected = true;
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function make_select_date() {
|
||
|
var i, j;
|
||
|
j=document.clientwdw.date_filter.length;
|
||
|
for ( i=0;i < j; i++) {
|
||
|
if ( document.clientwdw.date_filter.options[i].value == "<%=FORM.date_filter%>") {
|
||
|
document.clientwdw.date_filter.options[i].selected = true;
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function btn_cdel_click(objForm) {
|
||
|
if (document.clientwdw.cndid.selectedIndex==-1) {
|
||
|
alert("<%=PHRASE.503%>");
|
||
|
return false;
|
||
|
} else {
|
||
|
//hkh 03/04 pop-up a message to confirm delete - bug#103
|
||
|
if (confirm("<%=PHRASE.759%>")) {
|
||
|
objForm.dbop.value="cdel";
|
||
|
objForm.submit();
|
||
|
return true;
|
||
|
}
|
||
|
return 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%>">
|
||
|
<FORM METHOD=POST ACTION="<%=PATHS.cgiroot%>/tadmin.pl"
|
||
|
Name="clientwdw">
|
||
|
<INPUT NAME="tid" TYPE=HIDDEN VALUE="<%=SESSION.tid%>">
|
||
|
<INPUT NAME="dbop" TYPE=HIDDEN VALUE="">
|
||
|
<INPUT NAME="lang" TYPE=HIDDEN VALUE="<%=SESSION.lang%>">
|
||
|
<CENTER>
|
||
|
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=1 WIDTH="100%">
|
||
|
<TR>
|
||
|
<TD ALIGN="center" VALIGN="middle" NOWRAP>
|
||
|
<FONT SIZE=2 COLOR="<%=SYSTEM.HEADERCOLOR%>">
|
||
|
<B><%=CLIENT.clorg%></B><BR>
|
||
|
</FONT>
|
||
|
<FONT SIZE=4 COLOR="<%=SYSTEM.HEADERCOLOR%>">
|
||
|
<B><%=PHRASE.103%> <%=PHRASE.105%></B><BR>
|
||
|
</FONT>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR>
|
||
|
<TD ALIGN="center" VALIGN="middle" NOWRAP>
|
||
|
<FONT SIZE=2 COLOR="<%=SYSTEM.ERRORCOLOR%>"><%=SYSTEM.pwchange%></FONT>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<FONT SIZE=2>
|
||
|
<%=SYSTEM.STARTIF?FORM.skey login INCLUDE %>
|
||
|
<A HREF="sadmin.pl?tid=<%=FORM.tid%>&dbop=<%=FORM.dbop%>&dtl=<%=FORM.dtl%>&lang=<%=FORM.lang%>&skey=name"><%=PHRASE.558%></A><BR>
|
||
|
<INPUT TYPE=hidden NAME="sortedkey" VALUE="login">
|
||
|
<%=SYSTEM.ELSE%>
|
||
|
<A HREF="sadmin.pl?tid=<%=FORM.tid%>&dbop=<%=FORM.dbop%>&dtl=<%=FORM.dtl%>&lang=<%=FORM.lang%>&skey=login"><%=PHRASE.559%></A><BR>
|
||
|
<INPUT TYPE=hidden NAME="sortedkey" VALUE="name">
|
||
|
<%=SYSTEM.ENDIF%>
|
||
|
<SELECT NAME=cndid SIZE=20 onChange="reset_autotimer()" onDblClick="return cndDblClick(document.clientwdw)">
|
||
|
<%=CANDIDATES.Options%>
|
||
|
</SELECT><BR>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td><%=PHRASE.851%></td><td align="left"><SELECT NAME="day_filter" SIZE="1">
|
||
|
<OPTION VALUE=""> </OPTION>
|
||
|
<OPTION VALUE="3"> 3 <%=PHRASE.910%> </OPTION>
|
||
|
<OPTION VALUE="7"> 7 <%=PHRASE.910%> </OPTION>
|
||
|
<OPTION VALUE="15"> 15 <%=PHRASE.910%> </OPTION>
|
||
|
<OPTION VALUE="30"> 1 <%=PHRASE.912%> </OPTION>
|
||
|
<OPTION VALUE="60"> 2 <%=PHRASE.913%> </OPTION>
|
||
|
<OPTION VALUE="90"> 3 <%=PHRASE.913%> </OPTION>
|
||
|
<OPTION VALUE="180"> 6 <%=PHRASE.913%> </OPTION>
|
||
|
<OPTION VALUE="365"> 12 <%=PHRASE.913%> </OPTION>
|
||
|
<OPTION VALUE="730"> 24 <%=PHRASE.913%> </OPTION>
|
||
|
</SELECT></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td><%=PHRASE.852%></td><td align="left"><SELECT NAME="date_filter" SIZE="1">
|
||
|
<OPTION VALUE=""> </OPTION>
|
||
|
<OPTION VALUE="7"> 1 <%=PHRASE.911%> </OPTION>
|
||
|
<OPTION VALUE="30"> 1 <%=PHRASE.912%> </OPTION>
|
||
|
<OPTION VALUE="60"> 2 <%=PHRASE.913%> </OPTION>
|
||
|
<OPTION VALUE="90"> 3 <%=PHRASE.913%> </OPTION>
|
||
|
<OPTION VALUE="180"> 6 <%=PHRASE.913%> </OPTION>
|
||
|
<OPTION VALUE="365"> 12 <%=PHRASE.913%> </OPTION>
|
||
|
<OPTION VALUE="730"> 24 <%=PHRASE.913%> </OPTION>
|
||
|
</SELECT></td>
|
||
|
</tr>
|
||
|
<%=SYSTEM.STARTIF?CLIENT.clcnd1vals NULL EXCLUDE %>
|
||
|
<%=CLIENT.clcnd1input%>
|
||
|
<%=SYSTEM.ENDIF%>
|
||
|
<%=SYSTEM.STARTIF?CLIENT.clcnd2vals NULL EXCLUDE %>
|
||
|
<%=CLIENT.clcnd2input%>
|
||
|
<%=SYSTEM.ENDIF%>
|
||
|
<%=SYSTEM.STARTIF?CLIENT.clcnd3vals NULL EXCLUDE %>
|
||
|
<%=CLIENT.clcnd3input%>
|
||
|
<%=SYSTEM.ENDIF%>
|
||
|
<%=SYSTEM.STARTIF?CLIENT.clcnd4vals NULL EXCLUDE %>
|
||
|
<%=CLIENT.clcnd4input%>
|
||
|
<%=SYSTEM.ENDIF%>
|
||
|
<tr>
|
||
|
<td></td><td align="right"><input type="BUTTON" value="<%=PHRASE.931%> <%=PHRASE.106%>" name="filter_cnd" onClick="makeFilter(this)"></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<br>
|
||
|
<INPUT TYPE=BUTTON NAME="cupd" VALUE="<%=PHRASE.185%> <%=PHRASE.103%>" onClick="btn_cupd_click(document.clientwdw)"><BR>
|
||
|
<INPUT TYPE=BUTTON NAME="cnew" VALUE="<%=PHRASE.150%> <%=PHRASE.103%>" onClick="btn_cnew_click(document.clientwdw)">
|
||
|
<INPUT TYPE=BUTTON NAME="cdel" VALUE="<%=PHRASE.165%> <%=PHRASE.103%>" onClick="btn_cdel_click(document.clientwdw)"><BR>
|
||
|
</FONT>
|
||
|
</FORM>
|
||
|
</CENTER>
|
||
|
<FONT SIZE=-1>* <%=PHRASE.741%></FONT>
|
||
|
<CENTER>
|
||
|
<FONT SIZE=1 COLOR="#8C8C8C">
|
||
|
<%=PHRASE.136%>
|
||
|
</FONT>
|
||
|
</CENTER>
|
||
|
</BODY>
|
||
|
</HTML>
|