Faculty Experts


Click whether you would like to search by topic, name or department, and then enter a keyword for your search.

\n"; echo "
\n"; echo "Search By \n"; echo "Keyword \n"; echo "\n"; echo "


\n"; if($experts){ echo ""; if($topic == "topic" || $topic == "department"){ foreach($experts as $expert){ $username = $expert["username"]; $filter="(&(objectclass=*)(uid=".$username."))"; $result = ldap_search($ldap, $base_dn, $filter); $entry=ldap_get_entries($ldap,$result); $items=array(); for ($i=0; $i<$entry["count"]; $i++) { $items[$entry[$i]['uid'][0]] = $entry[$i]; } foreach($items as $item){ echo ""; echo ""; echo ""; echo ""; } } } else{ foreach($experts as $expert){ $username = $expert["username"]; $filter = "(&(objectclass=*)(&(uid=".$expert["username"].")(|"; foreach($keys as $key){ $filter.="(cn=*".$key."*)"; } $filter.=")))"; $result = ldap_search($ldap, $base_dn, $filter); $entry=ldap_get_entries($ldap,$result); for ($i=0; $i<$entry["count"]; $i++) { echo ""; echo ""; echo ""; echo ""; } } } echo "
NameDepartment
"; echo "".$item['sn'][0].", ".$item['edupersonnickname'][0].""; echo ""; echo $item["description"][0]; echo "
"; echo "".$entry[0]['sn'][0].", ".$entry[0]['edupersonnickname'][0].""; echo ""; echo $entry[0]["description"][0]; echo "
"; } ?>