home *** CD-ROM | disk | FTP | other *** search
- <%
- #include </utility/security.fts>
- #include </utility/global.fts>
- #include </utility/theme.fts>
- #include </utility/ftgate.fts>
-
- var d = new server.domain
- var buildType=build()
-
- var domain
- var name
-
- session.system.error=0
-
- if (form.config>=1)
- d.domainname = form.domain
- else
- d.domainname = request.domain
-
- var m = new d.mailbox
-
- if (form.config==1)
- {
- domain = form.domain
- name = form.name
-
- m.name=name
-
- m.forwardmethod = form.forwardmethod
- m.forwardaddress = form.forwardaddress
- m.autoresponsemethod = form.autoresponsemethod
- m.autoresponsesubject = form.autoresponsesubject
- m.autoresponsetext = form.autoresponsetext
- m.ccto = form.ccto
- m.outofofficesubject = form.outofofficesubject
- m.outofofficetext = form.outofofficetext
- m.outofofficestate = form.outofofficestate
-
- if (form.redirect!="")
- {
- var parms="?domain="+domain+"&name="+name
- output.redirect(form.redirect+parms)
- }
- }
- else if (form.config=="2")
- {
- if (form.redirect!="")
- output.redirect(form.redirect+"?domain="+form.domain+"&name="+form.name)
- }
- else
- {
- domain = request.domain
- name = request.name
-
- m.name=name
- }
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
- <HTML>
- <HEAD>
- <LINK REL=STYLESHEET HREF="/utility/main<%=nn4%>.css" TYPE="text/css">
- <META NAME="GENERATOR" Content="Microsoft Developer Studio">
- <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
- <TITLE>Mailboxes -- Options</TITLE>
- <SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
- <!--
- var dir="<%=buttons%>";
- var pro=<%=build()==FTGATE_PRO%>;
-
- <%
- if (netscape)
- {
- %>
- var enter=false;
- document.captureEvents(Event.KEYPRESS|Event.FOCUS);
- document.onkeypress = keypress;
- document.onfocus = focus;
-
- function focus(event)
- {
- if (event.target==document.ftgate.autoresponsetext||event.target==document.ftgate.outofofficetext)
- {
- enter=true;
- }
- else
- enter=false;
- }
-
- function keypress(event)
- {
- if (enter)
- return true;
-
- if (event.which==13)
- {
- onApply();
- return false;
- }
-
- return true;
- }
- <%
- }
- else
- {
- %>
- function keypress()
- {
- if (document.activeElement==document.ftgate.autoresponsetext||document.activeElement==document.ftgate.outofofficetext)
- return;
-
- if (event.keyCode==13)
- {
- event.returnValue=null;
- onApply();
- }
- }
- <%
- }
- %>
-
- function isOK(form)
- {
- if ((form.ccto.value!="")&&(!isEmail(form.ccto.value)))
- {
- alert(errEmail);
- form.ccto.focus();
- return false;
- }
-
- if ((form.forwardmethod[1].checked||form.forwardmethod[2].checked) && !isEmailList(form.forwardaddress.value))
- {
- alert(errEmailList);
- form.forwardaddress.focus();
- return false;
- }
-
- if (form.autoresponsemethod[1].checked && (form.autoresponsesubject.value==""))
- {
- alert("Enter a subject for the message to send");
- form.autoresponsesubject.focus();
- return false;
- }
-
- if (form.autoresponsemethod[1].checked && (form.autoresponsetext.value==""))
- {
- alert("Enter a message to send");
- form.autoresponsetext.focus();
- return false;
- }
-
- if (form.outofofficestate[2].checked && (form.outofofficesubject.value==""))
- {
- alert("Enter an out of office message subject");
- form.outofofficesubject.focus();
- return false;
- }
-
- if (form.outofofficestate[2].checked && (form.outofofficetext.value==""))
- {
- alert("Enter an out of office message");
- form.outofofficetext.focus();
- return false;
- }
- return true;
- }
-
- function onLoad()
- {
- <%
- if (build()==FTGATE_PRO)
- output.writeln("setPage(4, \"User Mailbox\");")
- else
- output.writeln("setPage(3, \"User Mailbox\");")
- %>
-
- document.ftgate.ccto.focus();
- }
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/cookies.js" TYPE="text/javascript"></SCRIPT>
- <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/core.js" TYPE="text/javascript"></SCRIPT>
- <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/dialog.js" TYPE="text/javascript"></SCRIPT>
- </HEAD>
-
- <BODY BGCOLOR="white" onLoad="onLoad()" MARGINHEIGHT="0" MARGINWIDTH="0" onkeypress="keypress()">
-
- <TABLE BORDER="0" BGCOLOR="<%=border%>" WIDTH="<%=bodywidth%>" HEIGHT="<%=bodyheight%>" CELLPADDING="0" CELLSPACING="0"><TR><TD> </TD><TD VALIGN="TOP">
-
- <A HREF="javascript:onLaunch('/domains/index.fts')"><SPAN ID="top">Domains</SPAN></A><SPAN ID="top"> / </SPAN>
- <A HREF="javascript:onLaunch('/mailboxes/index.fts')"><SPAN ID="top"><%=d.domainname%></SPAN></A><SPAN ID="top"> / </SPAN>
- <SPAN ID="topsel"><%=m.name%></SPAN><SPAN ID="top"></SPAN>
-
- <!-- start of the tabs -->
- <FORM NAME="ftgate" METHOD="POST" onSubmit="return isOK(this)" ACTION="optionsuser.fts">
- <INPUT TYPE="HIDDEN" NAME="config" VALUE="1">
- <INPUT TYPE="HIDDEN" NAME="domain" VALUE="<%=domain%>">
- <INPUT TYPE="HIDDEN" NAME="name" VALUE="<%=name%>">
- <INPUT TYPE="HIDDEN" NAME="redirect" VALUE="">
-
- <TABLE BORDER="0" WIDTH="100%" CELLSPACING="0" CELLPADDING="0">
- <TR>
- <TD WIDTH="5" HEIGHT="18"><IMG SRC="/images/left.gif" VSPACE="0" BORDER="0" WIDTH="5" HEIGHT="18"></TD>
- <TD CLASS="navoff" WIDTH="50" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('general.fts')" CLASS="navoff">General</A></TD>
- <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
- <TD CLASS="navon" WIDTH="55" HEIGHT="18"ALIGN="CENTER"><A HREF="javascript:onLaunch('optionsuser.fts')" CLASS="navon">Options</A></TD>
- <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
- <%
- var width=bodywidth
- width=width-56
- %>
- <TD CLASS="navoff" WIDTH="55" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('script.fts')" CLASS="navoff">Script</A></TD>
- <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
- <TD CLASS="navoff" WIDTH="55" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('security.fts')" CLASS="navoff">Security</A></TD>
- <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
- <TD CLASS="navoff" WIDTH="55" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('info.fts')" CLASS="navoff">Info</A></TD>
- <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
- <TD CLASS="navoff" WIDTH="55" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('quota.fts')" CLASS="navoff">Quota</A></TD>
- <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
- <TD CLASS="navoff" WIDTH="55" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('privileges.fts')" CLASS="navoff">Privileges</A></TD>
- <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
- <TD CLASS="navoff" WIDTH="50" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('mailbox.fts')" CLASS="navoff">Mailbox</A></TD>
- <TD BGCOLOR="<%=border%>" WIDTH="5" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/right.gif" WIDTH="5" HEIGHT="18"></TD>
- <%
- if (buildType==FTGATE_PRO)
- {
- %>
- <TD WIDTH="<%=(bodywidth-447)%>"> </TD>
- <%
- }
- else
- {
- %>
- <TD WIDTH="<%=(bodywidth-391)%>"> </TD>
- <%
- }
- %>
- </TR>
- </TABLE>
- <!-- end of the tabs -->
-
- <!-- start of the tab body -->
- <TABLE BORDER="0" BGCOLOR="<%=border%>" WIDTH="100%" CELLPADDING="0" CELLSPACING="0"><TR><TD>
- <TABLE <%=table%> CELLPADDING="0" CELLSPACING="0">
- <!-- start of block -->
- <TR>
- <TD VALIGN="TOP">
- <!-- sub table goes here -->
- <TABLE BORDER="0" WIDTH="100%">
- <TR>
- <TD VALIGN="TOP">
- <TABLE CLASS="box" WIDTH="100%">
- <TR>
- <TD VALIGN="TOP">
- <TABLE BORDER="0" WIDTH="100%">
- <TR>
- <TH COLSPAN="2">Send Options</TH>
- </TR>
- <TR>
- <TD>Send copy to:</TD>
- <TD><INPUT TYPE="TEXT" NAME="ccto" SIZE="<%=size40%>" VALUE="<%=m.ccto%>" onChange="setModified(true)"></TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- </TABLE>
- <!-- sub table ends here -->
- <!-- sub table goes here -->
- <TABLE BORDER="0" WIDTH="100%">
- <TR>
- <TD VALIGN="TOP">
- <TABLE CLASS="box" WIDTH="100%">
- <TR>
- <TD>
- <TABLE BORDER="0" WIDTH="100%">
- <TR>
- <TH COLSPAN="2">Forward Options</TH>
- </TR>
- <TR>
- <TD VALIGN="TOP">Forward method</TD>
- <TD>
- <INPUT TYPE="RADIO" NAME="forwardmethod" VALUE="<%=FM_KEEP%>" onChange="setModified(true)"
- <% if (m.forwardmethod==FM_KEEP) output.write("CHECKED") %>>Do not forward<BR>
- <INPUT TYPE="RADIO" NAME="forwardmethod" VALUE="<%=FM_FORWARDKEEP%>" onChange="setModified(true)"
- <% if (m.forwardmethod==FM_FORWARDKEEP) output.write("CHECKED") %>>Forward and keep<BR>
- <INPUT TYPE="RADIO" NAME="forwardmethod" VALUE="<%=FM_FORWARDDELETE%>" onChange="setModified(true)"
- <% if (m.forwardmethod==FM_FORWARDDELETE) output.write("CHECKED") %>>Forward and delete<BR>
- Forward to: <INPUT TYPE="TEXT" NAME="forwardaddress" SIZE="<%=size40%>" VALUE="<%=m.forwardaddress%>" onChange="setModified(true)">
- </TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- </TABLE>
- <!-- sub table ends here -->
- <!-- sub table goes here -->
- <TABLE BORDER="0" WIDTH="100%">
- <TR>
- <TD VALIGN="TOP">
- <TABLE CLASS="box" WIDTH="100%">
- <TR>
- <TD>
- <TABLE BORDER="0" WIDTH="100%">
- <TR>
- <TH>Auto Response Options</TH>
- </TR>
- <TR>
- <TD VALIGN="TOP">Auto response method</TD>
- <TD>
- <INPUT TYPE="RADIO" NAME="autoresponsemethod" VALUE="0" onChange="setModified(true)"
- <% if (m.autoresponsemethod==0) output.write("CHECKED") %>>Off<BR>
- <INPUT TYPE="RADIO" NAME="autoresponsemethod" VALUE="2" onChange="setModified(true)"
- <% if (m.autoresponsemethod==2) output.write("CHECKED") %>>Send the following message<BR>
- Subject: <INPUT TYPE="TEXT" NAME="autoresponsesubject" SIZE="<%=size40%>" VALUE="<%=m.autoresponsesubject%>" onChange="setModified(true)"><BR>
- <TEXTAREA NAME="autoresponsetext" COLS="40" ROWS="4" onChange="setModified(true)">
- <%=m.autoresponsetext%></TEXTAREA>
- </TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- </TABLE>
- <!-- sub table ends here -->
- <!-- sub table goes here -->
- <TABLE BORDER="0" WIDTH="100%">
- <TR>
- <TD VALIGN="TOP">
- <TABLE CLASS="box" WIDTH="100%">
- <TR>
- <TD>
- <TABLE BORDER="0" WIDTH="100%">
- <TR>
- <TH>Out of office options</TH>
- </TR>
- <TR>
- <TD VALIGN="TOP">When out of office</TD>
- <TD>
- <INPUT TYPE="RADIO" NAME="outofofficestate" VALUE="<%=OOO_IN%>" onChange="setModified(true)"
- <% if (m.outofofficestate==OOO_IN) output.write("CHECKED") %>>Show as here<BR>
- <INPUT TYPE="RADIO" NAME="outofofficestate" VALUE="<%=OOO_OUT%>" onChange="setModified(true)"
- <% if (m.outofofficestate==OOO_OUT) output.write("CHECKED") %>>Show as out<BR>
- <INPUT TYPE="RADIO" NAME="outofofficestate" VALUE="<%=OOO_MESSAGE%>" onChange="setModified(true)"
- <% if (m.outofofficestate==OOO_MESSAGE) output.write("CHECKED") %>>Show as out and send following message<BR>
- Subject: <INPUT TYPE="TEXT" NAME="outofofficesubject" SIZE="<%=size40%>" VALUE="<%=m.outofofficesubject%>" onChange="setModified(true)"><BR>
- <TEXTAREA NAME="outofofficetext" COLS="40" ROWS="4" onChange="setModified(true)">
- <%=m.outofofficetext%></TEXTAREA>
- </TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- </TABLE>
- <!-- sub table ends here -->
- <!-- sub table goes here -->
- <TABLE BORDER="0" WIDTH="100%">
- <TR>
- <TD VALIGN="TOP" ALIGN="RIGHT">
- <A HREF="javascript:onClose()"
- onMouseDown="change('closeA', 'ok', 1)"
- 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>
- <A HREF="javascript:onCancel('domain=<%=domain%>')"
- onMouseDown="change('cancelA', 'cancel', 1)"
- onMouseOut="change('cancelA', 'cancel', 0)"><IMG SRC="<%=buttons%>cancel.gif" NAME="cancelA" BORDER="0" WIDTH="50" HEIGHT="20" ALT="Cancel"></A>
- <A HREF="javascript:onApply()"
- onMouseDown="change('applyA', 'apply', 1)"
- onMouseOut="change('applyA', 'apply', 0)"><IMG SRC="<%=buttons%>apply.gif" NAME="applyA" BORDER="0" WIDTH="50" HEIGHT="20" ALT="Apply changes" HSPACE="5"></A>
- </TD>
- </TR>
- </TABLE>
- <!-- sub table ends here -->
- </TD>
- </TR>
- <!-- end of block -->
- </TABLE>
- <!-- end of the tab body -->
- </TD></TR></TABLE>
- <SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
- <!--
- var href="/mailboxes/optionsuser.fts?domain=<%=domain%>&name=<%=name%>";
- var bodywidth=<%=bodywidth%>;
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/footer.js" TYPE="text/javascript"></SCRIPT>
- </FORM>
- </TD><TD WIDTH="10"> </TD></TR></TABLE>
- </BODY>
- </HTML>
-