home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2002 March / PCWMAR02.iso / software / windowsxp / ftgateoffice / ftgateoffice.exe / Main / details.fts < prev    next >
Encoding:
Text File  |  2001-11-29  |  4.4 KB  |  161 lines

  1. <%
  2. #include </utility/global.fts>
  3. #include </utility/ftgate.fts>
  4. #include </utility/theme.fts>
  5. #include </utility/wmsecurity.fts>
  6.  
  7. var ldap = new server.ldapdata
  8.  
  9. session.system.error = 0
  10.  
  11. var sql = "mail LIKE '"+request.mail+"'"
  12. if (request.cn)
  13.     sql = sql +" AND cn LIKE '"+request.cn+"'"
  14.  
  15. if (request.givenname)
  16.     sql = sql +" AND gn LIKE '"+request.givenname+"'"
  17.  
  18. if (request.sn)
  19.     sql = sql +" AND sn LIKE '"+request.sn+"'"
  20.  
  21. if (request.o)
  22.     sql = sql +" AND o LIKE '"+request.o+"'"
  23.  
  24. sql = sql +" AND imported="+number(request.imported)
  25.  
  26. var ok=ldap.entry.select(sql)
  27.  
  28. var qMail=""
  29. var qCn=""
  30. var qGn=""
  31. var qSn=""
  32. var qO=""
  33. var qOu=""
  34. var qFn=""
  35. var qPn=""
  36. var qTitle=""
  37. var qImported=0
  38.  
  39. var ok2 = ldap.entry.field.first()
  40. while (ok2)
  41. {
  42.     if (ldap.entry.field.name=="mail")
  43.         qMail=ldap.entry.field.value
  44.     else if (ldap.entry.field.name=="cn")
  45.         qCn=ldap.entry.field.value
  46.     else if (ldap.entry.field.name=="givenname")
  47.         qGn=ldap.entry.field.value
  48.     else if (ldap.entry.field.name=="sn")
  49.         qSn=ldap.entry.field.value
  50.     else if (ldap.entry.field.name=="o")
  51.         qO=ldap.entry.field.value
  52.     else if (ldap.entry.field.name=="ou")
  53.         qOu=ldap.entry.field.value
  54.     else if (ldap.entry.field.name=="title")
  55.         qTitle=ldap.entry.field.value
  56.     else if (ldap.entry.field.name=="imported")
  57.         qImported=ldap.entry.field.value
  58.     else if (ldap.entry.field.name=="facsimiletelephonenumber")
  59.         qFn=ldap.entry.field.value
  60.     else if (ldap.entry.field.name=="telephonenumber")
  61.         qPn=ldap.entry.field.value
  62.  
  63.     ok2=ldap.entry.field.next()
  64. }
  65. %>
  66. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
  67. <HTML>
  68. <HEAD>
  69. <LINK REL=STYLESHEET HREF="/utility/main<%=nn4%>.css" TYPE="text/css">
  70. <META name="GENERATOR" content="Microsoft Developer Studio">
  71. <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  72. <TITLE>FTGate Web Mail -- Address Book Entry</TITLE>
  73.  
  74. <SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
  75. <!--
  76. var dir="<%=buttons%>";
  77.  
  78. if (!document.images) {}
  79. else {
  80.   ok0 = new Image();
  81.   ok0.src  = dir+"ok.gif";
  82.   ok1 = new Image();
  83.   ok1.src = dir+"okon.gif";
  84. }
  85.  
  86. function change(Name,Image,No)
  87. {
  88.   if (!document.images) {}
  89.   else document [Name].src = eval(Image + No + ".src");
  90. }
  91.  
  92. function onClose()
  93. {
  94.     window.close();
  95. }
  96.  
  97. function onLocalHelp()
  98. {
  99.     window.open("/help/web_mail/inbox/The_Address_Book.htm");
  100. }
  101. //-->
  102. </SCRIPT>
  103. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/cookies.js" TYPE="text/javascript"></SCRIPT>
  104. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/core.js" TYPE="text/javascript"></SCRIPT>
  105. <STYLE>
  106. TD.box
  107. {
  108.     border-color: darkgray;
  109. }
  110. </STYLE>
  111. </HEAD>
  112.  
  113. <BODY BGCOLOR="WHITE" BACKGROUND="/images/goldstn1.gif">
  114. <!-- start of the tab body -->
  115. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="0" CELLSPACING="0"><TR><TD>
  116. <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0">
  117. <!-- start of block -->
  118. <TR>
  119. <TD VALIGN="TOP">
  120.     <!-- sub table goes here -->
  121.     <TABLE BORDER="0" WIDTH="100%">
  122.         <TR>
  123.             <TD>
  124.                 <TABLE CLASS="box" WIDTH="100%">
  125.                     <TR>
  126.                         <TD>
  127.                             <TABLE BORDER="0" WIDTH="100%">
  128.                                 <TR><TH WIDTH="1%">Common name</TH><TD class="box"><%=qCn%> </TD></TR>
  129.                                 <TR><TH WIDTH="1%">First name</TH><TD class="box"><%=qGn%> </TD></TR>
  130.                                 <TR><TH WIDTH="1%">Last name</TH><TD class="box"><%=qSn%> </TD></TR>
  131.                                 <TR><TH WIDTH="1%">Email address</TH><TD class="box"><%=qMail%> </TD></TR>
  132.                                 <TR><TH WIDTH="1%">Job title</TH><TD class="box"><%=qTitle%> </TD></TR>
  133.                                 <TR><TH WIDTH="1%">Organisation</TH><TD class="box"><%=qO%> </TD></TR>
  134.                                 <TR><TH WIDTH="1%">Department</TH><TD class="box"><%=qOu%> </TD></TR>
  135.                                 <TR><TH WIDTH="1%">Phone number</TH><TD class="box"><%=qPn%> </TD></TR>
  136.                                 <TR><TH WIDTH="1%">Fax number</TH><TD class="box"><%=qFN%> </TD></TR>
  137.                             </TABLE>
  138.                         </TD>
  139.                     </TR>
  140.                 </TABLE>
  141.             </TD>
  142.         </TR>
  143.         <!-- table footer goes here -->
  144.         <TR>
  145.             <TD ALIGN="CENTER">
  146.                 <A HREF="javascript:onClose()"
  147.                 onMouseDown="change('closeA', 'ok', 1)"
  148.                 onMouseOut="change('closeA', 'ok', 0)"><IMG SRC="<%=buttons%>ok.gif" NAME="closeA" BORDER="0" WIDTH="50" HEIGHT="20" ALT="Close" HSPACE="5"></A>
  149.             </TD>
  150.         </TR>
  151.         <!-- table footer ends here -->
  152.     </TABLE>
  153. </TD>
  154. </TR>
  155. <!-- end of block -->
  156. </TABLE>
  157. <!-- end of the tab body -->
  158. </TD></TR></TABLE>
  159. </BODY>
  160. </HTML>
  161.