home *** CD-ROM | disk | FTP | other *** search
Wrap
<% dim szPath szPath = "Table" SkinTable = SysInfo.GetSkinParameter(szPath) szPath = "Font" SkinFont = SysInfo.GetSkinParameter(szPath) ruleName = Request.ReqParam("rule") Set rule = Rules.item(ruleName) if Request.ReqParam("action") = "Cancel" Then Response.Redirect( "/rules/rule.agp?rule="+ ruleName) end if action = Request.ReqParam("action") if action = "Commit" then chkBoxes = Request.ReqParam("cb") for i = 1 to 7 for j = 0 to 23 rule.SetRuleTimeRestriction i, j, True next next if( chkBoxes <> "" ) then while ( chkBoxes <> "" ) aBox = Mid(chkBoxes,1,3) chkBoxes = Mid(chkBoxes,5) sI = Mid(aBox,1,1) sJ = Mid(aBox,2,2) rule.SetRuleTimeRestriction sI, sJ, False wend rule.Commit Response.Redirect( "/rules/rule.agp?rule=" & ruleName ) end if end if %> <script language="JavaScript"> <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v4.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && document.getElementById) x=document.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <html> <head> <title>Professional GateKeeper - Infopulse</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> </head> <body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" background="../images/backgr_x.gif"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="344"><img src="images/1_r1_c2.jpg" width="344" height="70"></td> <td width="135"><img src="images/1_r1_c3.jpg" width="135" height="70"></td> <td width="100"><a href="hlpRules.agp"><img src="images/1_r1_c4.jpg" width="100" height="70"border=0></a></td> <td width="1000"> </td> </tr> </table> <map name="n1_r4_c3Map"> <area shape="rect" coords="492,45,567,76" href="#"> </map> <p><big><strong><font face="Arial">Edit time schedule for when the site rules for <%Response.Write(ruleName)%> should be applied</font></strong></big></p> <font face="Arial"> <strong>Note:</strong>0 means hour 0.00.00 - 0.59.59, checked means that the rule will NOT APPLY </font> <% if Not Err.Number = 0 Then Response.Write("<B><FONT COLOR=""#FF0000"">" & Err.Description & ": " & ruleName & "</FONT></B><br>") end if %> <form name="RuleHours" id="RuleHours" method="POST" action= "/rules/advancedrule.agp?rule=<%Response.Write(ruleName)%>"> <% ' procedure for checking rights Sub IsChecked( zi, ora ) if(rule.GetRuleTimeRestriction( zi, ora )=1) then Response.Write(" checked") end if end sub %> <div align="center"><center> <table border="1" cellpadding="0" cellspacing="0" width="100%"> <tr> <td bgcolor="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">   </font></strong></td> <% for i = 0 to 23 %> <td bgcolor="<%Response.Write(SkinTable)%>" align="center"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>"> <%Response.Write(i)%> </font></strong></td> <% next %> </tr> <% Sub WriteDay( nr ) Select case nr Case 1 Response.Write("Sunday") Case 2 Response.Write("Monday") Case 3 Response.Write("Tuesday") Case 4 Response.Write("Wednesday") Case 5 Response.Write("Thursday") Case 6 Response.Write("Friday") Case 7 Response.Write("Saturday") End Select End Sub %> <% for i = 1 to 7 %> <tr> <td><strong><font face="Arial"> <%WriteDay(i)%> </font></strong></td> <% for j = 0 to 23 %> <td width="50"> <input type="checkbox" name="cb" value="<%Response.Write(i*100+j)%>" <% IsChecked i,j %>> </td> <% next %> </tr> <% next %> </table></center></div> <br> <input type="submit" name="action" value="Commit"> <input type="submit" name="action" value="Cancel"> </form> <font size="1" face="Arial"><%Response.Write(GateKeeper.Version)%></font> </body> </html>