home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2002 March / PCWMAR02.iso / software / windowsxp / ftgateoffice / ftgateoffice.exe / Main / privileges.fts < prev    next >
Encoding:
Text File  |  2001-11-29  |  10.0 KB  |  296 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 domain
  8. var name
  9.  
  10. var d = new server.domain
  11. var buildType=build()
  12.  
  13. if (form.config>=1)
  14.     d.domainname = form.domain
  15. else
  16.     d.domainname = request.domain
  17.  
  18. var m = new d.mailbox
  19.  
  20. if (form.config=="1")
  21. {
  22.     domain = form.domain
  23.     name = form.name
  24.  
  25.     m.name=name
  26.   m.priv.domaindefaults = form.domaindefaults
  27.   m.priv.editauto = form.editauto
  28.   m.priv.editdetails = form.editdetails
  29.   m.priv.editforward = form.editforward
  30.   m.priv.editpassword = form.editpassword
  31.   m.priv.managedomain = form.managedomain
  32.   m.priv.webaccess = form.webaccess
  33.  
  34.     if (form.redirect!="")
  35.         output.redirect(form.redirect+"?domain="+d.domainname)
  36. }
  37. else if (form.config=="2")
  38. {
  39.   if (form.redirect!="")
  40.         output.redirect(form.redirect+"?domain="+form.domain+"&name="+form.name)
  41. }
  42. else
  43. {
  44.     domain = request.domain
  45.     name = request.name
  46.  
  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>Mailboxes -- Privileges</TITLE>
  57. <SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
  58. <!--
  59. var dir="<%=buttons%>";
  60. var pro=<%=build()==FTGATE_PRO%>;
  61.  
  62. if (!document.images) {}
  63. else {
  64.     plus0 = new Image();
  65.     plus0.src  = dir+"open.gif";
  66.     plus1 = new Image();
  67.     plus1.src = dir+"openon.gif";
  68.     minus0 = new Image();
  69.     minus0.src  = dir+"close.gif";
  70.     minus1 = new Image();
  71.     minus1.src = dir+"closeon.gif";
  72. }
  73.  
  74. <%
  75. if (netscape)
  76. {
  77.     %>
  78.   document.captureEvents(Event.KEYPRESS|Event.FOCUS);
  79.   document.onkeypress = keypress;
  80.   document.onfocus = focus;
  81.  
  82.   function focus(event)
  83.   {
  84.     if (event.target==document.ftgate.postaladdress)
  85.     {
  86.       enter=true;
  87.     }
  88.     else
  89.       enter=false;
  90.   }
  91.  
  92.   function keypress(event)
  93.   {
  94.     if (enter)
  95.       return true;
  96.  
  97.         if (event.which==13)
  98.         {
  99.             onApply();
  100.             return false;
  101.         }
  102.  
  103.         return true;
  104.     }
  105.     <%
  106. }
  107. else
  108. {
  109.     %>
  110.     function keypress()
  111.     {
  112.     if (document.activeElement==document.ftgate.postaladdress)
  113.             return;
  114.  
  115.         if (event.keyCode==13)
  116.         {
  117.             event.returnValue=null;
  118.             onApply();
  119.         }
  120.     }
  121.     <%
  122. }
  123. %>
  124.  
  125. function onLoad()
  126. {
  127.     <%
  128.     if (build()==FTGATE_PRO)
  129.         output.writeln("setPage(4, \"User Mailbox\");")
  130.     else
  131.         output.writeln("setPage(3, \"User Mailbox\");")
  132.     %>
  133.  
  134.     document.ftgate.domaindefaults.focus();
  135. }
  136.  
  137. function isOK(form)
  138. {
  139.     return true
  140. }
  141. //-->
  142. </SCRIPT>
  143. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/cookies.js" TYPE="text/javascript"></SCRIPT>
  144. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/core.js" TYPE="text/javascript"></SCRIPT>
  145. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/spin.js" TYPE="text/javascript"></SCRIPT>
  146. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/time.js" TYPE="text/javascript"></SCRIPT>
  147. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/dialog.js" TYPE="text/javascript"></SCRIPT>
  148. </HEAD>
  149.  
  150. <BODY BGCOLOR="white" onLoad="onLoad()" MARGINHEIGHT="0" MARGINWIDTH="0" onkeypress="keypress()">
  151.  
  152. <TABLE BORDER="0" BGCOLOR="<%=border%>" WIDTH="<%=bodywidth%>" HEIGHT="<%=bodyheight%>" CELLPADDING="0" CELLSPACING="0"><TR><TD> </TD><TD VALIGN="TOP">
  153.  
  154. <A HREF="javascript:onLaunch('/domains/index.fts')"><SPAN ID="top">Domains</SPAN></A><SPAN ID="top"> / </SPAN>
  155. <A HREF="javascript:onLaunch('/mailboxes/index.fts')"><SPAN ID="top"><%=d.domainname%></SPAN></A><SPAN ID="top"> / </SPAN>
  156. <SPAN ID="topsel"><%=m.name%></SPAN><SPAN ID="top"></SPAN>
  157.  
  158. <!-- start of the tabs -->
  159. <FORM NAME="ftgate" METHOD="POST" ACTION="privileges.fts">
  160. <INPUT TYPE="HIDDEN" NAME="config" VALUE="1">
  161. <INPUT TYPE="HIDDEN" NAME="domain" VALUE="<%=d.domainname%>">
  162. <INPUT TYPE="HIDDEN" NAME="name" VALUE="<%=name%>">
  163.  
  164. <INPUT TYPE="HIDDEN" NAME="redirect" VALUE="">
  165.  
  166. <TABLE BORDER="0" WIDTH="100%" CELLSPACING="0" CELLPADDING="0">
  167.     <TR>
  168.         <TD WIDTH="5" HEIGHT="18"><IMG SRC="/images/left.gif" VSPACE="0" BORDER="0" WIDTH="5" HEIGHT="18"></TD>
  169.         <TD CLASS="navoff" WIDTH="50" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('general.fts')" CLASS="navoff">General</A></TD>
  170.         <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
  171.         <TD CLASS="navoff" WIDTH="55" HEIGHT="18"ALIGN="CENTER"><A HREF="javascript:onLaunch('optionsuser.fts')" CLASS="navoff">Options</A></TD>
  172.         <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
  173.         <%
  174.         var width=bodywidth
  175.         width=width-56
  176.         %>
  177.         <TD CLASS="navoff" WIDTH="55" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('script.fts')" CLASS="navoff">Script</A></TD>
  178.         <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
  179.         <TD CLASS="navoff" WIDTH="55" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('security.fts')" CLASS="navoff">Security</A></TD>
  180.         <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
  181.         <TD CLASS="navoff" WIDTH="55" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('info.fts')" CLASS="navoff">Info</A></TD>
  182.         <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
  183.         <TD CLASS="navoff" WIDTH="55" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('quota.fts')" CLASS="navoff">Quota</A></TD>
  184.         <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
  185.         <TD CLASS="navon" WIDTH="55" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('privileges.fts')" CLASS="navon">Privileges</A></TD>
  186.         <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
  187.         <TD CLASS="navoff" WIDTH="50" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('mailbox.fts')" CLASS="navoff">Mailbox</A></TD>
  188.         <TD BGCOLOR="<%=border%>" WIDTH="5" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/right.gif" WIDTH="5" HEIGHT="18"></TD>
  189.         <%
  190.         if (buildType==FTGATE_PRO)
  191.         {
  192.             %>
  193.             <TD WIDTH="<%=(bodywidth-447)%>"> </TD>
  194.             <%
  195.         }
  196.         else
  197.         {
  198.             %>
  199.             <TD WIDTH="<%=(bodywidth-391)%>"> </TD>
  200.             <%
  201.         }
  202.         %>
  203.     </TR>
  204. </TABLE>
  205. <!-- end of the tabs -->
  206.  
  207. <!-- start of the tab body -->
  208. <TABLE BORDER="0" BGCOLOR="<%=border%>" WIDTH="100%" CELLPADDING="0" CELLSPACING="0"><TR><TD>
  209. <TABLE <%=table%> CELLPADDING="0" CELLSPACING="0">
  210.     <!-- start of block -->
  211.     <TR>
  212.         <TD VALIGN="TOP">
  213.             <TABLE BORDER="0" WIDTH="100%">
  214.                 <!-- sub table goes here -->
  215.                 <TR>
  216.                     <TD>
  217.                         <TABLE CLASS="box" WIDTH="100%">
  218.                             <TR>
  219.                                 <TD>
  220.                                     <TABLE BORDER="0" WIDTH="100%">
  221.                                         <TR>
  222.                                             <TH COLSPAN="2">Mailbox Privileges</TH>
  223.                                         </TR>
  224.                                         <TR>
  225.                                             <TD><INPUT TYPE="CHECKBOX" NAME="domaindefaults" onChange="setModified(true)"
  226.                                                 <% if (m.priv.domaindefaults) output.writeln("CHECKED") %>>Use default privilege set for this domain</TD>
  227.                                         </TR>
  228.                                         <TR>
  229.                                             <TD><INPUT TYPE="CHECKBOX" NAME="editauto" onChange="setModified(true)"
  230.                                                 <% if (m.priv.editauto) output.writeln("CHECKED") %>>Allow modification of auto response method</TD>
  231.                                         </TR>
  232.                                         <TR>
  233.                                             <TD><INPUT TYPE="CHECKBOX" NAME="editdetails" onChange="setModified(true)"
  234.                                                 <% if (m.priv.editdetails) output.writeln("CHECKED") %>>Allow modification of personal details</TD>
  235.                                         </TR>
  236.                                         <TR>
  237.                                             <TD><INPUT TYPE="CHECKBOX" NAME="editforward" onChange="setModified(true)"
  238.                                                 <% if (m.priv.editforward) output.writeln("CHECKED") %>>Allow modification of forward method</TD>
  239.                                         </TR>
  240.                                         <TR>
  241.                                             <TD><INPUT TYPE="CHECKBOX" NAME="editpassword" onChange="setModified(true)"
  242.                                                 <% if (m.priv.editpassword) output.writeln("CHECKED") %>>Allow modification of password</TD>
  243.                                         </TR>
  244. <!--                                        <TR>
  245.                                             <TD><INPUT TYPE="CHECKBOX" NAME="managedomain" onChange="setModified(true)"
  246.                                                 <% if (m.priv.managedomain) output.writeln("CHECKED") %>>Allow owner to manage this domain</TD>
  247.                                         </TR>
  248. -->
  249.                                         <TR>
  250.                                             <TD><INPUT TYPE="CHECKBOX" NAME="webaccess" onChange="setModified(true)"
  251.                                                 <% if (m.priv.webaccess) output.writeln("CHECKED") %>>Allow access to the Web Mail system</TD>
  252.                                         </TR>
  253.                                     </TABLE>
  254.                                 </TD>
  255.                             </TR>
  256.                         </TABLE>
  257.                     </TD>
  258.                 </TR>
  259.                 <!-- sub table ends here -->
  260.                 <!-- table footer starts here -->
  261.                 <TR>
  262.                     <TD ALIGN="RIGHT">
  263.                         <A HREF="javascript:onClose()"
  264.                         onMouseDown="change('closeA', 'ok', 1)"
  265.                         onMouseOut="change('closeA', 'ok', 0)"><IMG SRC="<%=buttons%>ok.gif" NAME="closeA" BORDER="0" WIDTH="50" HEIGHT="20" ALT="Apply changes and close" HSPACE="5"></A>
  266.                         <A HREF="javascript:onCancel('domain=<%=domain%>')"
  267.                         onMouseDown="change('cancelA', 'cancel', 1)"
  268.                         onMouseOut="change('cancelA', 'cancel', 0)"><IMG SRC="<%=buttons%>cancel.gif" NAME="cancelA" BORDER="0" WIDTH="50" HEIGHT="20" ALT="Cancel"></A>
  269.                         <A HREF="javascript:onApply()"
  270.                         onMouseDown="change('applyA', 'apply', 1)"
  271.                         onMouseOut="change('applyA', 'apply', 0)"><IMG SRC="<%=buttons%>apply.gif" NAME="applyA" BORDER="0" WIDTH="50" HEIGHT="20" ALT="Apply changes" HSPACE="5"></A>
  272.                     </TD>
  273.                 </TR>
  274.                 <!-- table footer ends here -->
  275.             </TABLE>
  276.             <!-- sub table ends here -->
  277.         </TD>
  278.     <!-- end of block -->
  279.  
  280. </TABLE>
  281. <!-- end of the tab body -->
  282. </TD></TR></TABLE>
  283.  
  284. <SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
  285. <!--
  286.     var href="/mailboxes/privileges.fts?domain=<%=d.domainname%>&name=<%=name%>";
  287.     var bodywidth=<%=bodywidth%>;
  288. //-->
  289. </SCRIPT>
  290. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/footer.js" TYPE="text/javascript"></SCRIPT>
  291. </FORM>
  292.  
  293. </TD><TD WIDTH="10"> </TD></TR></TABLE>
  294. </BODY>
  295. </HTML>
  296.