and click search.
Here is an example of one of the pages:
<%@ Language=VBScript %>
<%
Option Explicit
Dim con,rs,Com,letter,school
%>
<html>
<head>
<style>
.over { background-color: #FFFF66; cursor: hand}
.out { background-color: #CCCCCC}
</style>
</head>
<body topmargin="0" leftmargin="0" bgcolor="#CCCCCC" >
<%
letter = request.queryString("letter"
school = request.queryString("school"
If letter <> "" Then
Set con = Server.CreateObject("ADODB.Connection"
con.provider ="ADsDSOObject"
con.open "Active Directory Provider"
Set Com = CreateObject("ADODB.Command"
Set Com.ActiveConnection = con
Com.CommandText ="select name, sAMAccountname from 'LDAP://hs_inst.burlington.org/OU=Staff,OU=Domain Users,DC=burlington,DC=org' WHERE objectCategory='person' AND department='"+school+"' AND sn='"+letter+"*' ORDER BY name"
Set rs = Com.Execute
%>
<table border="0" cellpadding="0" bgcolor="#CCCCCC">
<%
Do While Not rs.EOF
%>
<tr><td onMouseOver="this.className='over'" onMouseOut="this.className='out'" class="out" valign="middle" onclick="window.open('info.asp?user=<% response.write rs("sAMAccountname"%>','InfoFrame');window.open('emailstart.htm','EmailFrame');"><a><b><font color="#000080" face="Verdana" size="2">
<% response.write rs("Name"%></font></b></a></td>
</tr>
<%
rs.MoveNext
Loop
rs.Close
%>
</table>
<%
con.Close
Set rs = Nothing
Set con = Nothing
End If
%>
</body>
</html>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.