home *** CD-ROM | disk | FTP | other *** search
- <%
- #include </utility/global.fts>
- #include </utility/ftgate.fts>
- #include </utility/theme.fts>
- #include </utility/wmsecurity.fts>
-
- var ldap = new server.ldapdata
-
- session.system.error = 0
-
- var sql = "mail LIKE '"+request.mail+"'"
- if (request.cn)
- sql = sql +" AND cn LIKE '"+request.cn+"'"
-
- if (request.givenname)
- sql = sql +" AND gn LIKE '"+request.givenname+"'"
-
- if (request.sn)
- sql = sql +" AND sn LIKE '"+request.sn+"'"
-
- if (request.o)
- sql = sql +" AND o LIKE '"+request.o+"'"
-
- sql = sql +" AND imported="+number(request.imported)
-
- var ok=ldap.entry.select(sql)
-
- var qMail=""
- var qCn=""
- var qGn=""
- var qSn=""
- var qO=""
- var qOu=""
- var qFn=""
- var qPn=""
- var qTitle=""
- var qImported=0
-
- var ok2 = ldap.entry.field.first()
- while (ok2)
- {
- if (ldap.entry.field.name=="mail")
- qMail=ldap.entry.field.value
- else if (ldap.entry.field.name=="cn")
- qCn=ldap.entry.field.value
- else if (ldap.entry.field.name=="givenname")
- qGn=ldap.entry.field.value
- else if (ldap.entry.field.name=="sn")
- qSn=ldap.entry.field.value
- else if (ldap.entry.field.name=="o")
- qO=ldap.entry.field.value
- else if (ldap.entry.field.name=="ou")
- qOu=ldap.entry.field.value
- else if (ldap.entry.field.name=="title")
- qTitle=ldap.entry.field.value
- else if (ldap.entry.field.name=="imported")
- qImported=ldap.entry.field.value
- else if (ldap.entry.field.name=="facsimiletelephonenumber")
- qFn=ldap.entry.field.value
- else if (ldap.entry.field.name=="telephonenumber")
- qPn=ldap.entry.field.value
-
- ok2=ldap.entry.field.next()
- }
- %>
- <!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 -- Address Book Entry</TITLE>
-
- <SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
- <!--
- var dir="<%=buttons%>";
-
- if (!document.images) {}
- else {
- ok0 = new Image();
- ok0.src = dir+"ok.gif";
- ok1 = new Image();
- ok1.src = dir+"okon.gif";
- }
-
- function change(Name,Image,No)
- {
- if (!document.images) {}
- else document [Name].src = eval(Image + No + ".src");
- }
-
- function onClose()
- {
- window.close();
- }
-
- function onLocalHelp()
- {
- window.open("/help/web_mail/inbox/The_Address_Book.htm");
- }
- //-->
- </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>
- <STYLE>
- TD.box
- {
- border-color: darkgray;
- }
- </STYLE>
- </HEAD>
-
- <BODY BGCOLOR="WHITE" BACKGROUND="/images/goldstn1.gif">
- <!-- start of the tab body -->
- <TABLE BORDER="0" WIDTH="100%" CELLPADDING="0" CELLSPACING="0"><TR><TD>
- <TABLE WIDTH="100%" 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" WIDTH="100%">
- <TR><TH WIDTH="1%">Common name</TH><TD class="box"><%=qCn%> </TD></TR>
- <TR><TH WIDTH="1%">First name</TH><TD class="box"><%=qGn%> </TD></TR>
- <TR><TH WIDTH="1%">Last name</TH><TD class="box"><%=qSn%> </TD></TR>
- <TR><TH WIDTH="1%">Email address</TH><TD class="box"><%=qMail%> </TD></TR>
- <TR><TH WIDTH="1%">Job title</TH><TD class="box"><%=qTitle%> </TD></TR>
- <TR><TH WIDTH="1%">Organisation</TH><TD class="box"><%=qO%> </TD></TR>
- <TR><TH WIDTH="1%">Department</TH><TD class="box"><%=qOu%> </TD></TR>
- <TR><TH WIDTH="1%">Phone number</TH><TD class="box"><%=qPn%> </TD></TR>
- <TR><TH WIDTH="1%">Fax number</TH><TD class="box"><%=qFN%> </TD></TR>
- </TABLE>
- </TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- <!-- table footer goes here -->
- <TR>
- <TD ALIGN="CENTER">
- <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="Close" HSPACE="5"></A>
- </TD>
- </TR>
- <!-- table footer ends here -->
- </TABLE>
- </TD>
- </TR>
- <!-- end of block -->
- </TABLE>
- <!-- end of the tab body -->
- </TD></TR></TABLE>
- </BODY>
- </HTML>
-