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 m
-
- var domain
- var name
-
- session.system.error=0
-
- if ((form.command==1)||(form.command==3))
- {
- domain = form.domain
- name = form.name
-
- d.domainname = form.domain
- m = new d.mailbox
- m.name=name
-
- m.attachtextenable = form.attachtextenable
- m.attachtext = form.attachtext
-
- if (form.command==3)
- output.redirect("done.fts")
- else
- output.redirect("listmembers.fts?domain="+domain+"&name="+name)
- }
- else if (form.command=="2")
- {
- output.redirect("leave.fts?domain="+form.domain+"&name="+form.name)
- }
- else
- {
- domain = request.domain
- name = request.name
-
- d.domainname = request.domain
- m = new d.mailbox
- 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>Mailbox Wizard</TITLE>
- <SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
- <!--
- var dir="<%=buttons%>";
-
- <%
- 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.attachtext)
- {
- enter=true;
- }
- else
- enter=false;
- }
-
- function keypress(event)
- {
- if (enter)
- return true;
-
- if (event.which==13)
- {
- onNext();
- return false;
- }
-
- return true;
- }
- <%
- }
- else
- {
- %>
- function keypress()
- {
- if (document.activeElement==document.ftgate.attachtext)
- return;
-
- if (event.keyCode==13)
- {
- event.returnValue=null;
- onNext();
- }
- }
- <%
- }
- %>
-
- function isOK(form)
- {
- if (form.attachtextenable.checked && form.attachtext.value=="")
- {
- alert("Enter a message to attach to each posting.")
- form.attachtext.focus();
-
- return false;
- }
-
- return true;
- }
-
- function onLoad()
- {
- <%
- if (session.system.error)
- {
- output.writeln("alert(aspError("+session.system.error+"));")
- }
- %>
- document.ftgate.attachtext.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/wizard.js" TYPE="text/javascript"></SCRIPT>
- </HEAD>
-
- <%
- var pagetitle="Attach Text"
- #include <header.fts>
- %>
-
- <!-- start of the tabs -->
- <FORM NAME="ftgate" METHOD="POST" onSubmit="return isOK(this)" ACTION="attach.fts">
- <INPUT TYPE="HIDDEN" NAME="command" VALUE="1">
- <INPUT TYPE="HIDDEN" NAME="domain" VALUE="<%=domain%>">
- <INPUT TYPE="HIDDEN" NAME="name" VALUE="<%=name%>">
-
- <!-- 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>
- <TABLE BORDER="0" WIDTH="100%">
- <TR>
- <TH COLSPAN="3">If the box is cheked then the message below it will be
- attached to the bottom of all postings to the list.<P></TH>
- </TR>
- <TR>
- <TD ROWSPAN="2" VALIGN="TOP">Append to Message</TD>
- <TD COLSPAN="2">
- <INPUT TYPE="CHECKBOX" NAME="attachtextenable"
- <% if (m.attachtextenable) output.writeln("CHECKED") %>>Append this text to all outgoing messages
- </TR>
- <TR>
- <TD> </TD>
- <TD><TEXTAREA NAME="attachtext" ROWS="5" COLS="40" onKeyPress="setModified(true)">
- <%=m.attachtext%></TEXTAREA></TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- <%
- #include <footer.fts>
- %>
- </TABLE>
- <!-- sub table ends here -->
- </TD>
- </TR>
- <!-- end of block -->
- </TABLE>
- <!-- end of the tab body -->
- </TD></TR></TABLE>
- <INPUT TYPE="HIDDEN" NAME="href" VALUE="/mailboxes/wizard/attach.fts?domain=<%=domain%>&name=<%=name%>">
- </FORM>
-
- </TD><TD WIDTH="10"> </TD></TR></TABLE>
- </BODY>
- </HTML>
-