home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2002 March / PCWMAR02.iso / software / windowsxp / ftgateoffice / ftgateoffice.exe / Main / leave.fts < prev    next >
Encoding:
Text File  |  2001-11-29  |  4.1 KB  |  187 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. session.system.error=0
  14.  
  15. if ((form.command==1)||(form.command==3))
  16. {
  17.     domain = form.domain
  18.     name = form.name
  19.  
  20.     d.domainname = form.domain
  21.     m = new d.mailbox
  22.     m.name=name
  23.  
  24.     m.leavetitle = form.leavetitle
  25.     m.leavetext = form.leavetext
  26.  
  27.     if (form.command==3)
  28.         output.redirect("done.fts")
  29.     else
  30.         output.redirect("attach.fts?domain="+domain+"&name="+name)
  31. }
  32. else if (form.command=="2")
  33. {
  34.     output.redirect("join.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.   var enter=false;
  62.   document.captureEvents(Event.KEYPRESS|Event.FOCUS);
  63.   document.onkeypress = keypress;
  64.   document.onfocus = focus;
  65.  
  66.   function focus(event)
  67.   {
  68.     if (event.target==event.target==document.ftgate.leavetext)
  69.     {
  70.       enter=true;
  71.     }
  72.     else
  73.       enter=false;
  74.   }
  75.  
  76.   function keypress(event)
  77.   {
  78.     if (enter)
  79.       return true;
  80.  
  81.     if (event.which==13)
  82.     {
  83.       onApply();
  84.       return false;
  85.     }
  86.  
  87.     return true;
  88.   }
  89.   <%
  90. }
  91. else
  92. {
  93.   %>
  94.   function keypress()
  95.   {
  96.     if (document.activeElement==document.ftgate.leavetext)
  97.       return;
  98.  
  99.     if (event.keyCode==13)
  100.     {
  101.       event.returnValue=null;
  102.       onApply();
  103.     }
  104.   }
  105.   <%
  106. }
  107. %>
  108.  
  109. function isOK(form)
  110. {
  111.     return true;
  112. }
  113.  
  114. function onLoad()
  115. {
  116.     <%
  117.     if (session.system.error)
  118.     {
  119.         output.writeln("alert(aspError("+session.system.error+"));")
  120.     }
  121.     %>
  122.  
  123.   document.ftgate.leavetitle.focus();
  124. }
  125. //-->
  126. </SCRIPT>
  127. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/cookies.js" TYPE="text/javascript"></SCRIPT>
  128. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/core.js" TYPE="text/javascript"></SCRIPT>
  129. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/wizard.js" TYPE="text/javascript"></SCRIPT>
  130. </HEAD>
  131.  
  132. <%
  133. var pagetitle="Leave Message"
  134. #include <header.fts>
  135. %>
  136.  
  137. <!-- start of the tabs -->
  138. <FORM NAME="ftgate" METHOD="POST" onSubmit="return isOK(this)" ACTION="leave.fts">
  139. <INPUT TYPE="HIDDEN" NAME="command" VALUE="1">
  140. <INPUT TYPE="HIDDEN" NAME="domain" VALUE="<%=domain%>">
  141. <INPUT TYPE="HIDDEN" NAME="name" VALUE="<%=name%>">
  142.  
  143. <!-- start of the tab body -->
  144. <TABLE BORDER="0" BGCOLOR="<%=border%>" WIDTH="100%" CELLPADDING="0" CELLSPACING="0"><TR><TD>
  145. <TABLE <%=table%> CELLPADDING="0" CELLSPACING="0">
  146.   <!-- start of block -->
  147.   <TR>
  148.     <TD VALIGN="TOP">
  149.         <!-- sub table goes here -->
  150.         <TABLE BORDER="0" WIDTH="100%">
  151.           <TR>
  152.                 <TD>
  153.                         <TABLE BORDER="0" WIDTH="100%">
  154.                             <TR>
  155.                                 <TH COLSPAN="3">This message will be sent whenever someone leaves the list.<P></TH>
  156.                             </TR>
  157.                             <TR>
  158.                                 <TD ROWSPAN="2" VALIGN="TOP">Leave message</TD>
  159.                                 <TD VALIGN="TOP">Title</TD>
  160.                                 <TD><INPUT TYPE="TEXT" NAME="leavetitle" VALUE="<%=m.leavetitle%>" SIZE="40" onKeyPress="setModified(true)"></TD>
  161.                             </TR>
  162.                             <TR>
  163.                                 <TD VALIGN="TOP">Text</TD>
  164.                                 <TD VALIGN="TOP"><TEXTAREA NAME="leavetext" ROWS="5" COLS="40" onKeyPress="setModified(true)">
  165. <%=m.leavetext%></TEXTAREA></TD>
  166.                             </TR>
  167.                         </TABLE>
  168.           </TD>
  169.             </TR>
  170.                 <%
  171.                 #include <footer.fts>
  172.                 %>
  173.         </TABLE>
  174.         <!-- sub table ends here -->
  175.     </TD>
  176.   </TR>
  177.   <!-- end of block -->
  178. </TABLE>
  179. <!-- end of the tab body -->
  180. </TD></TR></TABLE>
  181. <INPUT TYPE="HIDDEN" NAME="href" VALUE="/mailboxes/wizard/leave.fts?domain=<%=domain%>&name=<%=name%>">
  182. </FORM>
  183.  
  184. </TD><TD WIDTH="10"> </TD></TR></TABLE>
  185. </BODY>
  186. </HTML>
  187.