home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2002 March / PCWMAR02.iso / software / windowsxp / ftgateoffice / ftgateoffice.exe / Main / robin.fts < prev    next >
Encoding:
Text File  |  2001-11-29  |  4.0 KB  |  169 lines

  1. <%
  2. #include </utility/security.fts>
  3. #include </utility/global.fts>
  4. #include </utility/theme.fts>
  5. #include </utility/ftgate.fts>
  6.  
  7. var d = new server.domain
  8. var buildType = build()
  9. var m
  10.  
  11. var domain
  12. var name
  13.  
  14. session.system.error=0
  15.  
  16. if ((form.command==1)||(form.command==3))
  17. {
  18.     domain = form.domain
  19.     name = form.name
  20.  
  21.     d.domainname = form.domain
  22.     m = new d.mailbox
  23.     m.name=name
  24.  
  25.     m.roundrobin = form.roundrobin
  26.  
  27.     if (form.command==3)
  28.         output.redirect("done.fts")
  29.     else
  30.         output.redirect("script.fts?domain="+domain+"&name="+name)
  31. }
  32. else if (form.command=="2")
  33. {
  34.     output.redirect("general.fts?domain="+form.domain+"&name="+form.name)
  35. }
  36. else
  37. {
  38.     domain = request.domain
  39.     name = request.name
  40.  
  41.     d.domainname = request.domain
  42.     m = new d.mailbox
  43.     m.name=name
  44. }
  45. %>
  46. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
  47. <HTML>
  48. <HEAD>
  49. <LINK REL=STYLESHEET HREF="/utility/main<%=nn4%>.css" TYPE="text/css">
  50. <META NAME="GENERATOR" Content="Microsoft Developer Studio">
  51. <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
  52. <TITLE>Mailbox Wizard</TITLE>
  53. <SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
  54. <!--
  55. var dir="<%=buttons%>";
  56.  
  57. <%
  58. if (netscape)
  59. {
  60.   %>
  61.   document.captureEvents(Event.KEYPRESS);
  62.   document.onkeypress = keypress;
  63.  
  64.   function keypress(event)
  65.   {
  66.     if (event.which==13)
  67.     {
  68.       onNext();
  69.       return false;
  70.     }
  71.  
  72.     return true;
  73.   }
  74.   <%
  75. }
  76. else
  77. {
  78.   %>
  79.   function keypress()
  80.   {
  81.     if (event.keyCode==13)
  82.     {
  83.       event.returnValue=null;
  84.       onNext();
  85.     }
  86.   }
  87.   <%
  88. }
  89. %>
  90.  
  91. function onLoad()
  92. {
  93.     <%
  94.     if (session.system.error)
  95.     {
  96.         output.writeln("alert(aspError("+session.system.error+"));")
  97.     }
  98.     %>
  99.   document.ftgate.roundrobin.focus();
  100. }
  101.     
  102. function isOK(form)
  103. {
  104.     return true;
  105. }
  106. //-->
  107. </SCRIPT>
  108. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/cookies.js" TYPE="text/javascript"></SCRIPT>
  109. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/core.js" TYPE="text/javascript"></SCRIPT>
  110. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/wizard.js" TYPE="text/javascript"></SCRIPT>
  111. </HEAD>
  112.  
  113. <%
  114. var pagetitle="Round Robin"
  115. #include <header.fts>
  116. %>
  117.  
  118. <!-- start of the tabs -->
  119. <FORM NAME="ftgate" METHOD="POST" onSubmit="return isOK(this)" ACTION="robin.fts">
  120. <INPUT TYPE="HIDDEN" NAME="command" VALUE="1">
  121. <INPUT TYPE="HIDDEN" NAME="domain" VALUE="<%=domain%>">
  122. <INPUT TYPE="HIDDEN" NAME="name" VALUE="<%=name%>">
  123.  
  124. <!-- start of the tab body -->
  125. <TABLE BORDER="0" BGCOLOR="<%=border%>" WIDTH="100%" CELLPADDING="0" CELLSPACING="0"><TR><TD>
  126. <TABLE <%=table%> CELLPADDING="0" CELLSPACING="0">
  127.   <!-- start of block -->
  128.   <TR>
  129.     <TD VALIGN="TOP">
  130.         <!-- sub table goes here -->
  131.         <TABLE BORDER="0" WIDTH="100%">
  132.           <TR>
  133.                 <TD>
  134.                         <TABLE BORDER="0" WIDTH="100%">
  135.                             <TR>
  136.                                 <TH>When you check this box emails arriving will be delivered to each
  137.                                 member of the group in turn, rather than all members of the group
  138.                                 receiving all emails.<P>
  139.                                 E.g. The first email to arrive gets delivered to the first member of
  140.                                 the group. The next email is sent to the secend member of the group,
  141.                                 and so on. Once everyone in the group has received an email, the
  142.                                 cycle repeats wit the first member receiving the next email.<P></TH>
  143.                             </TR>
  144.                             <TR>
  145.                                 <TD><INPUT TYPE="CHECKBOX" NAME="roundrobin" onClick="setModified(true)"
  146.                                     <% if (m.roundrobin) output.writeln("CHECKED") %>>Round robin delivery
  147.                                 </TD>
  148.                             </TR>
  149.                         </TABLE>
  150.           </TD>
  151.             </TR>
  152.                 <%
  153.                 #include <footer.fts>
  154.                 %>
  155.         </TABLE>
  156.         <!-- sub table ends here -->
  157.     </TD>
  158.   </TR>
  159.   <!-- end of block -->
  160. </TABLE>
  161. <!-- end of the tab body -->
  162. </TD></TR></TABLE>
  163. <INPUT TYPE="HIDDEN" NAME="href" VALUE="/mailboxes/wizard/robin.fts?domain=<%=domain%>&name=<%=name%>">
  164. </FORM>
  165.  
  166. </TD><TD WIDTH="10"> </TD></TR></TABLE>
  167. </BODY>
  168. </HTML>
  169.