home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2002 March / PCWMAR02.iso / software / windowsxp / ftgateoffice / ftgateoffice.exe / Main / forward.fts < prev    next >
Encoding:
Text File  |  2001-11-29  |  4.9 KB  |  194 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.forwardmethod = form.forwardmethod
  26.     m.forwardaddress = form.forwardaddress
  27.  
  28.     var suffix = ".fts?domain="+domain+"&name="+name
  29.     if (form.command==3)
  30.         output.redirect("done.fts")
  31.     else if (m.type==MBX_LIST)
  32.         output.redirect("script"+suffix)
  33.     else
  34.         output.redirect("cc"+suffix)
  35. }
  36. else if (form.command=="2")
  37. {
  38.     output.redirect("general.fts?domain="+form.domain+"&name="+form.name)
  39. }
  40. else
  41. {
  42.     domain = request.domain
  43.     name = request.name
  44.  
  45.     d.domainname = request.domain
  46.     m = new d.mailbox
  47.     m.name=name
  48. }
  49. %>
  50. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
  51. <HTML>
  52. <HEAD>
  53. <LINK REL=STYLESHEET HREF="/utility/main<%=nn4%>.css" TYPE="text/css">
  54. <META NAME="GENERATOR" Content="Microsoft Developer Studio">
  55. <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
  56. <TITLE>Mailbox Wizard</TITLE>
  57. <SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
  58. <!--
  59. var dir="<%=buttons%>";
  60.  
  61. <%
  62. if (netscape)
  63. {
  64.   %>
  65.   var enter=false;
  66.   document.captureEvents(Event.KEYPRESS);
  67.   document.onkeypress = keypress;
  68.   document.onfocus = focus;
  69.  
  70.  
  71.   function keypress(event)
  72.   {
  73.     if (event.which==13)
  74.     {
  75.       onNext();
  76.       return false;
  77.     }
  78.  
  79.     return true;
  80.   }
  81.   <%
  82. }
  83. else
  84. {
  85.   %>
  86.   function keypress()
  87.   {
  88.     if (event.keyCode==13)
  89.     {
  90.       event.returnValue=null;
  91.       onNext();
  92.     }
  93.   }
  94.   <%
  95. }
  96. %>
  97.  
  98. function isOK(form)
  99. {
  100.     if (!form.forwardmethod[0].checked && !isEmailList(form.forwardaddress.value))
  101.     {
  102.         window.alert(errEmailList);
  103.         form.forwardaddress.focus();
  104.         return false;
  105.     }
  106.  
  107.     return true;
  108. }
  109.  
  110. function onLoad()
  111. {
  112.     <%
  113.     if (session.system.error)
  114.     {
  115.         output.writeln("alert(aspError("+session.system.error+"));")
  116.     }
  117.     %>
  118.   document.ftgate.forwardaddress.focus();
  119. }
  120. //-->
  121. </SCRIPT>
  122. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/cookies.js" TYPE="text/javascript"></SCRIPT>
  123. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/core.js" TYPE="text/javascript"></SCRIPT>
  124. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/wizard.js" TYPE="text/javascript"></SCRIPT>
  125. </HEAD>
  126.  
  127. <%
  128. var pagetitle="Forward Method"
  129. #include <header.fts>
  130. %>
  131.  
  132. <!-- start of the tabs -->
  133. <FORM NAME="ftgate" METHOD="POST" onSubmit="return isOK(this)" ACTION="forward.fts">
  134. <INPUT TYPE="HIDDEN" NAME="command" VALUE="1">
  135. <INPUT TYPE="HIDDEN" NAME="domain" VALUE="<%=domain%>">
  136. <INPUT TYPE="HIDDEN" NAME="name" VALUE="<%=name%>">
  137.  
  138. <!-- start of the tab body -->
  139. <TABLE BORDER="0" BGCOLOR="<%=border%>" WIDTH="100%" CELLPADDING="0" CELLSPACING="0"><TR><TD>
  140. <TABLE <%=table%> CELLPADDING="0" CELLSPACING="0">
  141.   <!-- start of block -->
  142.   <TR>
  143.     <TD VALIGN="TOP">
  144.         <!-- sub table goes here -->
  145.         <TABLE BORDER="0" WIDTH="100%">
  146.           <TR>
  147.                 <TD VALIGN="TOP">
  148.                         <TABLE BORDER="0" WIDTH="100%">
  149.                             <TR>
  150.                                 <TH COLSPAN="2">Mail forwarding will send a copy of messages received
  151.                                 to the fully qualified email address (e.g. user@domain.com), or list of
  152.                                 addresses separtated by semicolons (e.g. user@domain.com; user@another.com),
  153.                                 defined in the Forward to field. The orginal email can be kept, so that the original
  154.                                 recipient can download the email, as well.<P></TH>
  155.                             </TR>
  156.                       <TR>
  157.                           <TD VALIGN="TOP">Forward method</TD>
  158.                           <TD>
  159.                               <INPUT TYPE="RADIO" NAME="forwardmethod" VALUE="<%=FM_KEEP%>"
  160.                               <% if (m.forwardmethod==FM_KEEP) output.write("CHECKED") %>>Do not forward<BR>
  161.                               <INPUT TYPE="RADIO" NAME="forwardmethod" VALUE="<%=FM_FORWARDKEEP%>"
  162.                               <% if (m.forwardmethod==FM_FORWARDKEEP) output.write("CHECKED") %>>Forward and keep<BR>
  163.                                     <%
  164.                                     if (m.type!=MBX_AUTO)
  165.                                     {
  166.                                         %>
  167.                                   <INPUT TYPE="RADIO" NAME="forwardmethod" VALUE="<%=FM_FORWARDDELETE%>"
  168.                                   <% if (m.forwardmethod==FM_FORWARDDELETE) output.write("CHECKED") %>>Forward and delete<BR>
  169.                                         <%
  170.                                     }
  171.                                     %>
  172.                               Forward to <INPUT TYPE="TEXT" NAME="forwardaddress" SIZE="<%=size20%>" VALUE="<%=m.forwardaddress%>">
  173.                           </TD>
  174.                       </TR>
  175.                         </TABLE>
  176.           </TD>
  177.             </TR>
  178.                 <%
  179.                 #include <footer.fts>
  180.                 %>
  181.         </TABLE>
  182.         <!-- sub table ends here -->
  183.     </TD>
  184.     </TR>
  185.   <!-- end of block -->
  186. </TABLE>
  187. <!-- end of the tab body -->
  188. </TD></TR></TABLE>
  189. <INPUT TYPE="HIDDEN" NAME="href" VALUE="/mailboxes/wizard/forward.fts?domain=<%=domain%>&name=<%=name%>">
  190. </FORM>
  191. </TD><TD WIDTH="10"> </TD></TR></TABLE>
  192. </BODY>
  193. </HTML>
  194.