home *** CD-ROM | disk | FTP | other *** search
- <%
- #include </utility/global.fts>
- #include </utility/ftgate.fts>
- #include </utility/theme.fts>
- #include </utility/wmsecurity.fts>
-
- var auto
- var fwdg
-
- if (m.priv.domaindefaults)
- {
- auto=d.priv.editauto
- fwdg = d.priv.editforward
- }
- else
- {
- auto=m.priv.editauto
- fwdg = m.priv.editforward
- }
-
- if (form.config==1)
- {
- if (auto)
- {
- m.autoresponsemethod = form.autoresponsemethod
- m.autoresponsesubject = form.autoresponsesubject
- m.autoresponsetext = form.autoresponsetext
- m.outofofficesubject = form.outofofficesubject
- m.outofofficetext = form.outofofficetext
- m.outofofficestate = form.outofofficestate
- }
-
- if (fwdg)
- {
- m.forwardmethod = form.forwardmethod
- m.forwardaddress = form.forwardaddress
- }
-
- output.redirect(form.redirect)
- }
- else if (form.config==2)
- output.redirect(form.redirect)
- %>
- <!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>FTGate Web Mail -- Handling Options</TITLE>
-
- <SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
- <!--
- var dir="<%=buttons%>"
-
- <%
- if (netscape)
- {
- if (auto)
- output.writeln("document.captureEvents(Event.KEYPRESS|Event.FOCUS);")
- else
- output.writeln("document.captureEvents(Event.KEYPRESS);")
- %>
-
- var enter=false;
- document.onkeypress = keypress;
- document.onfocus = focus;
-
- <%
- if (auto)
- {
- %>
- function focus(event)
- {
- if (event.target==document.ftgate.autoresponsetext||event.target==document.ftgate.outofofficetext)
- enter=true;
- else
- enter=false;
- }
- <%
- }
- %>
-
-
- function keypress(event)
- {
- if (event.which==13)
- {
- onClose();
- return false;
- }
-
- return true;
- }
- <%
- }
- else
- {
- %>
- function keypress()
- {
- <%
- if (auto)
- {
- %>
- if (document.activeElement==document.ftgate.autoresponsetext||document.activeElement==document.ftgate.outofofficetext)
- return;
- <%
- }
- %>
-
- if (event.keyCode==13)
- {
- event.returnValue=null;
- onClose();
- }
- }
- <%
- }
- %>
-
- function onLoad()
- {
- <%
- if (fwdg)
- output.writeln("document.ftgate.forwardmethod[0].focus();")
- else if (auto)
- output.writeln("document.ftgate.autoresponsemethod[0].focus();")
- %>
- }
-
- function isOK(form)
- {
- <%
- if (fwdg)
- {
- %>
- if ((form.forwardmethod[1].checked||form.forwardmethod[2].checked) && !isEmailList(form.forwardaddress.value))
- {
- window.alert(errEmailList);
- form.forwardaddress.focus();
- return false;
- }
- <%
- }
- if (auto)
- {
- %>
- if (form.autoresponsemethod[1].checked && (form.autoresponsesubject.value==""))
- {
- window.alert("Enter an autoresponse message.");
- form.autoresponsesubject.focus();
- return false;
- }
-
- if (form.outofofficestate[2].checked && (form.outofofficetext.value==""))
- {
- alert("Enter an out of office message");
- form.outofofficesubject.focus();
- return false;
- }
- <%
- }
- %>
-
- return true;
- }
-
- //-->
- </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="100%" HEIGHT="<%=bodyheight%>" CELLPADDING="0" CELLSPACING="0"><TR><TD> </TD><TD VALIGN="TOP">
-
- <SPAN ID="top">Mailbox:</SPAN> <SPAN ID="topsel"><%=m.name%>@<%=d.domainname%></SPAN>
-
- <FORM NAME="ftgate" METHOD="POST" onSubmit="return isOK(this)" ACTION="handling.fts">
- <INPUT TYPE="HIDDEN" NAME="redirect" VALUE="">
- <INPUT TYPE="HIDDEN" NAME="config" VALUE="1">
-
- <TABLE ID="table" BORDER="0" 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('/inbox/index.fts')" CLASS="navoff">Inbox</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('/addresses/index.fts')" CLASS="navoff">Addresses</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="50" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('/options/index.fts')" CLASS="navon">Options</A></TD>
- <TD WIDTH="5" HEIGHT="18"><IMG SRC="/images/right-s.gif" VSPACE="0" BORDER="0" WIDTH="5" HEIGHT="18"></TD>
- <TD WIDTH="<%=bodywidth-167%>" HEIGHT="18"> </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>
- <TABLE BORDER="0" WIDTH="100%">
- <TR>
- <TH COLSPAN="2">Mail Handling Options</TH>
- </TR>
- <%
- if (fwdg)
- {
- %>
- <TR>
- <TD VALIGN="TOP">Forwarding:</TD>
- <TD>
- <INPUT TYPE="RADIO" NAME="forwardmethod" VALUE="0" ACCESSKEY="N"
- <% if (m.forwardmethod==0) output.write("CHECKED") %>>Do <U>n</U>ot forward<BR>
- <INPUT TYPE="RADIO" NAME="forwardmethod" VALUE="1" ACCESSKEY="K"
- <% if (m.forwardmethod==1) output.write("CHECKED") %>>Forward and <U>k</U>eep<BR>
- <INPUT TYPE="RADIO" NAME="forwardmethod" VALUE="2" ACCESSKEY="D"
- <% if (m.forwardmethod==2) output.write("CHECKED") %>>Forward and <U>d</U>elete<BR>
- </TD>
- </TR>
- <TR>
- <TD> </TD>
- <TD>Forward to: <INPUT TYPE="TEXT" NAME="forwardaddress" SIZE="<%=size20%>" VALUE="<%=m.forwardaddress%>">
- </TD>
- </TR>
- <%
- }
- if (auto)
- {
- %>
- <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" onChange="setModified(true)" NAME="autoresponsesubject" VALUE="<%=m.autoresponsesubject%>"><BR>
- <TEXTAREA NAME="autoresponsetext" COLS="<%=size60%>" ROWS="4" onChange="setModified(true)">
- <%=m.autoresponsetext%></TEXTAREA>
- </TD>
- </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="<%=size60%>" ROWS="4" onChange="setModified(true)">
- <%=m.outofofficetext%></TEXTAREA>
- </TD>
- </TR>
- <%
- }
- if (!(fwdg||auto))
- {
- %>
- <TR>
- <TH COLSPAN="2">You do not have sufficient privileges to modify these details.</TH>
- </TR>
- <%
- }
- %>
- </TABLE>
- </TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- <TR>
- <TD ALIGN="RIGHT">
- <A HREF="javascript:onClose()"
- onMouseDown="change('closeA', 'ok', 1)"
- onMouseOut="change('closeA', 'ok', 0)"><IMG SRC="<%=buttons%>ok2.gif" NAME="closeA" BORDER="0" WIDTH="50" HEIGHT="20" ALT="Apply changes and close"></A>
- <A HREF="javascript:onCancel()"
- 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>
- </TD>
- </TR>
- </TABLE>
- <!----- sub table ends here --->
- </TD>
- </TR>
- <!------ end of block ----->
- </TABLE>
- <!--- end of the tab body --->
- </TD></TR></TABLE>
-
- </FORM>
- </TD><TD WIDTH="10"> </TD></TD></TR></TABLE>
- </BODY>
- </HTML>
-