home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2002 March / PCWMAR02.iso / software / windowsxp / ftgateoffice / ftgateoffice.exe / Main / nt.fts < prev    next >
Encoding:
Text File  |  2001-11-29  |  4.1 KB  |  177 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 m
  9.  
  10. var domain
  11. var name
  12.  
  13. if ((form.command==1)||(form.command==3))
  14. {
  15.     domain = form.domain
  16.     name = form.name
  17.  
  18.     d.domainname = form.domain
  19.     m = new d.mailbox
  20.     m.name=name
  21.  
  22.     m.usesystemlogon = (form.usesystemlogon=="on")
  23.     m.systemlogonid = form.systemlogonid
  24.  
  25.     var suffix = ".fts?domain="+domain+"&name="+name
  26.     if (form.command==3)
  27.         output.redirect("done.fts")
  28.     else if (m.usesystemlogon)
  29.         output.redirect("quota"+suffix)
  30.     else
  31.         output.redirect("password"+suffix)
  32. }
  33. else if (form.command=="2")
  34. {
  35.     output.redirect("local.fts?domain="+form.domain+"&name="+form.name)
  36. }
  37. else
  38. {
  39.     domain = request.domain
  40.     name = request.name
  41.  
  42.     d.domainname = request.domain
  43.     m = new d.mailbox
  44.     m.name=name
  45. }
  46. %>
  47. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
  48. <HTML>
  49. <HEAD>
  50. <LINK REL=STYLESHEET HREF="/utility/main<%=nn4%>.css" TYPE="text/css">
  51. <META NAME="GENERATOR" Content="Microsoft Developer Studio">
  52. <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
  53. <TITLE>Mailbox Wizard</TITLE>
  54. <SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
  55. <!--
  56. var dir="<%=buttons%>";
  57.  
  58. function isOK(form)
  59. {
  60.     if (form.usesystemlogon.checked && form.systemlogonid.value=="")
  61.     {
  62.         window.alert("Enter an ID to use.");
  63.         form.systemlogonid.focus();
  64.  
  65.         return false;
  66.     }
  67.  
  68.     return true;
  69. }
  70.  
  71. <%
  72. if (netscape)
  73. {
  74.   %>
  75.   document.captureEvents(Event.KEYPRESS);
  76.   document.onkeypress = keypress;
  77.  
  78.   function keypress(event)
  79.   {
  80.     if (event.which==13)
  81.     {
  82.       onNext();
  83.       return false;
  84.     }
  85.  
  86.     return true;
  87.   }
  88.   <%
  89. }
  90. else
  91. {
  92.   %>
  93.   function keypress()
  94.   {
  95.     if (event.keyCode==13)
  96.     {
  97.       event.returnValue=null;
  98.       onNext();
  99.     }
  100.   }
  101.   <%
  102. }
  103. %>
  104.  
  105. function onLoad()
  106. {
  107.     <%
  108.     if (session.system.error)
  109.     {
  110.         output.writeln("aspError("+session.system.error+");")
  111.     }
  112.     %>
  113.  
  114.   document.ftgate.usesystemlogon.focus();
  115. }
  116. //-->
  117. </SCRIPT>
  118. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/cookies.js" TYPE="text/javascript"></SCRIPT>
  119. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/core.js" TYPE="text/javascript"></SCRIPT>
  120. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/wizard.js" TYPE="text/javascript"></SCRIPT>
  121. </HEAD>
  122.  
  123. <%
  124. var pagetitle="System Logon"
  125. #include <header.fts>
  126. %>
  127.  
  128. <!-- start of the tabs -->
  129. <FORM NAME="ftgate" METHOD="POST" onSubmit="return isOK(this)" ACTION="nt.fts">
  130. <INPUT TYPE="HIDDEN" NAME="command" VALUE="1">
  131. <INPUT TYPE="HIDDEN" NAME="domain" VALUE="<%=domain%>">
  132. <INPUT TYPE="HIDDEN" NAME="name" VALUE="<%=name%>">
  133.  
  134. <!-- start of the tab body -->
  135. <TABLE BORDER="0" BGCOLOR="<%=border%>" WIDTH="100%" CELLPADDING="0" CELLSPACING="0"><TR><TD>
  136. <TABLE <%=table%> CELLPADDING="0" CELLSPACING="0">
  137.   <!-- start of block -->
  138.   <TR>
  139.     <TD VALIGN="TOP"> 
  140.         <!-- sub table goes here -->
  141.         <TABLE BORDER="0" WIDTH="100%">
  142.           <TR>
  143.                 <TD VALIGN="TOP">
  144.                         <TABLE BORDER="0" WIDTH="100%">
  145.                             <TR>
  146.                                 <TH COLSPAN="3">If you want to use NT password control then check the box and
  147.                                 enter the NT ID to use in the adjacent field. If the box is left clear then
  148.                                 the next page will request a password for the mailbox.<P></TH>
  149.                             </TR>
  150.                             <TR>
  151.                                 <TD>
  152.                                     <INPUT TYPE="CHECKBOX" NAME="usesystemlogon"
  153.                                     <% if (m.usesystemlogon!=0) output.write("CHECKED") %>>Use NT password control<BR>
  154.                                 </TD>
  155.                                 <TD>ID:</TD>
  156.                                 <TD><INPUT TYPE="TEXT" NAME="systemlogonid" size="<%=size20%>" VALUE="<%=m.systemlogonid%>"></TD>
  157.                             </TR>
  158.                         </TABLE>
  159.           </TD>
  160.             </TR>
  161.                 <%
  162.                 #include <footer.fts>
  163.                 %>
  164.         </TABLE>
  165.         <!-- sub table ends here -->
  166.     </TD>
  167.   </TR>
  168.   <!-- end of block -->
  169. </TABLE>
  170. <!-- end of the tab body -->
  171. </TD></TR></TABLE>
  172. <INPUT TYPE="HIDDEN" NAME="href" VALUE="/mailboxes/wizard/nt.fts?domain=<%=domain%>&name=<%=name%>">
  173. </FORM>
  174. </TD><TD WIDTH="10"> </TD></TR></TABLE>
  175. </BODY>
  176. </HTML>
  177.