home *** CD-ROM | disk | FTP | other *** search
Wrap
<% #include </utility/global.fts> #include </utility/ftgate.fts> #include </utility/theme.fts> #include </utility/wmsecurity.fts> var type=1 #include </utility/common.fts> %> <!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>FTGatePro WebMail</TITLE> </HEAD> <SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript"> <!-- var dir="<%=buttons%>" if (!document.images) {} else { ok0 = new Image(); ok0.src = dir+"ok2.gif"; ok1 = new Image(); ok1.src = dir+"ok2on.gif"; cancel0 = new Image(); cancel0.src = dir+"cancel.gif"; cancel1 = new Image(); cancel1.src = dir+"cancelon.gif"; remove0 = new Image(); remove0.src = dir+"delete.gif"; remove1 = new Image(); remove1.src = dir+"deleteon.gif"; create0 = new Image(); create0.src = dir+"create.gif"; create1 = new Image(); create1.src = dir+"createon.gif"; } function change(Name,Image,No) { if (!document.images) {} else document[Name].src = eval(Image + No + ".src"); if (No==0) st(); } <% if (netscape) { %> var enter=false; document.captureEvents(Event.KEYPRESS); document.onkeypress = keypress; document.onfocus = focus; function focus(event) { if (event.target==document.ftgate.body) { enter=true; } else enter=false; } function keypress(event) { if (enter) return true; if (event.which==13) { if (event.target==document.ftgate.address) onAdd(); else onOK(); return false; } return true; } <% } else { %> function keypress() { if (event.keyCode==13) { event.returnValue=null; if (document.activeElement==document.ftgate.address) onAdd(); else onOK(); } } <% } %> function onLoad() { <% if (err!="") output.writeln("alert(\""+err+"\");") if (modify!=2) output.writeln("document.ftgate.name.focus();"); else output.writeln("document.ftgate.address.focus();"); %> } function onLaunch(href) { window.location.href=href } function isOK(form) { var name = form.name.value; if (name=="") { alert("You must enter a Group name"); form.name.focus(); return false; } if ((name.indexOf("<",0)!=-1)||(name.indexOf(">",0)!=-1)) { alert("You cannot use '<' or '>' characters in the name."); form.name.focus(); return false; } return true; } function onSelect() { var el = document.ftgate.list; var index=el.selectedIndex; if (index==-1) return; document.ftgate.address.value=el.options[index].text; } function onRemove() { var el = document.ftgate.list; var index=el.selectedIndex; change('deleteA', 'remove', 0); if (index==-1) return; var list=""; for (i=0;i<document.ftgate.list.length;i++) { if (i!=index) list=list+document.ftgate.list.options[i].text+"; "; } if (list!="") list=list.slice(0,list.length-2); document.ftgate.email.value=list; document.ftgate.submit(); } function onAdd() { if (!isOK(document.ftgate)) return; if (!isEmail(document.ftgate.address.value)) { alert("This isn't a valid email address"); document.ftgate.address.focus(); return; } if (document.ftgate.list.length) { var index=-1; var found=false; for (i=0; i<document.ftgate.list.length; i++) { if (document.ftgate.list.options[i].text == document.ftgate.address.value) { found=true; break; } if ((document.ftgate.list.options[i].text>document.ftgate.address.value)&&(index==-1)) index = i; } if (found) { alert("This email address is already in the group.") return; } if (index==-1) index=document.ftgate.list.length; } else index=0; var i var list = ""; for (i=0;i<index;i++) list=list+document.ftgate.list.options[i].text+"; "; list=list+document.ftgate.address.value+"; "; for (i=index;i<document.ftgate.list.length;i++) list=list+document.ftgate.list.options[i].text+"; "; if (list!="") list=list.slice(0,list.length-2); document.ftgate.email.value=list; document.ftgate.submit(); } function onCancel() { change('cancelA','cancel',0); onLaunch("index.fts"); } function onOK() { change('okA','ok',0); document.ftgate.modify.value=3; document.ftgate.submit(); } //--> </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> <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"> <FORM NAME="ftgate" METHOD="POST" ACTION="group.fts"> <INPUT TYPE="HIDDEN" NAME="config" VALUE="1"> <INPUT TYPE="HIDDEN" NAME="email" VALUE="<%=email%>"> <INPUT TYPE="HIDDEN" NAME="modify" VALUE="<%=modify%>"> <INPUT TYPE="HIDDEN" NAME="id" VALUE="<%=id%>"> <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="navon" WIDTH="55" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('/addresses/index.fts')" CLASS="navon">Addresses</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('/options/index.fts')" CLASS="navoff">Options</A></TD> <TD WIDTH="5" HEIGHT="18"><IMG SRC="/images/right.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> <TABLE CLASS="box" WIDTH="100%"> <TR> <TD> <TABLE BORDER="0"> <TR> <TH COLSPAN="2"> <% if (modify==1) output.write("Modify ") else output.write("Create ") %>Group of Contacts</TH> </TR> <TR> <TD>Group name</TD> <TD><INPUT TYPE="EDIT" NAME="name" VALUE="<%=name%>"></TD> </TR> </TABLE> </TD> </TR> </TABLE> </TD> </TR> <TR> <TD> <TABLE CLASS="box" WIDTH="100%"> <TR> <TD> <TABLE BORDER="0" WIDTH="100%"> <TR> <TH COLSPAN="5">Group</TH> </TR> <TR> <TD VALIGN="TOP" WIDTH="1%"> <A HREF="javascript:onRemove()" onMouseDown="change('deleteA','remove',1)" onMouseOut="change('deleteA','remove',0)"> <IMG SRC="<%=buttons%>delete.gif" WIDTH="20" HEIGHT="20" BORDER="0" NAME="deleteA" ALT="Delete filter"></A> </TD> <TD> <SELECT NAME="list" CLASS="SEL100" SIZE="10" onChange="onSelect()"> <% var entry while (email!="") { var index=email.indexof(";",0) if (string(index)!="-1") { entry=email.slice(0,index) email=email.slice(index+1,999) email=email.trim() } else { entry=email.slice(0,email.length) email="" } output.writeln("<OPTION VALUE=\""+entry+"\">"+entry+"</OPTION>") } %> </SELECT> </TD> <TD VALIGN="TOP" WIDTH="1%">Address</TD> <TD VALIGN="TOP" WIDTH="1%"><INPUT TYPE="EDIT" NAME="address" SIZE="<%=size30%>"></TD> <TD VALIGN="TOP" WIDTH="1%"> <A HREF="javascript:onAdd()" onmMouseOver="return st('Add this email address to the group')" onMouseDown="change('createA','create',1)" onMouseOut="change('createA','create',0)"><IMG SRC="<%=buttons%>create.gif" WIDTH="20" HEIGHT="20" BORDER="0" NAME="createA" ALT="Add to group"></A> </TD> </TR> </TABLE> </TD> </TR> </TABLE> </TD> </TR> <TR> <TD ALIGN="RIGHT"> <A HREF="javascript:onOK()" onMouseOver="return st('Create the new contact')" onMouseDown="change('okA', 'ok', 1)" onMouseOut="change('okA', 'ok', 0)"><IMG SRC="<%=buttons%>ok2.gif" NAME="okA" BORDER="0" WIDTH="50" HEIGHT="20" ALT="Create the new contact"></A> <A HREF="javascript:onCancel()" onMouseOver="return st('Return to Address book without creating a new contact')" onMouseDown="change('cancelA', 'cancel', 1)" onMouseOut="change('cancelA', 'cancel', 0)"><IMG SRC="<%=buttons%>cancel.gif" NAME="cancelA" BORDER="0" WIDTH="50" HEIGHT="20" ALT="Do not create a new contact"></A> </TD> </TR> </TABLE> <!----- sub table ends here ---> </TD> </TR> <!------ end of block -----> </TABLE> </TD></TR></TABLE> </FORM> </TD><TD WIDTH="10"> </TD></TD></TR></TABLE> </BODY> </HTML>