core; # page level variables: $selected = 'people'; # selected link on the navigation bar - level 1 $selected_2 = ''; # selected link on the navigation bar - level 2 $page_name = "Faculty in Micro Theory"; # header for the page include ("include/inc_header.php"); include("/home/peters/include/functions.php"); $link= connect(); $query = "select name,xposition,docname1,docuniv1,website,office_phone1,fax1, research_field1, email,photo_url,campus from phone_directory where micro_list='y' order by name"; $result = $link -> query ($query); while($line = $result -> fetch_array()) { extract($line); if (strlen($photo_url) > 0) { $photo = ""; } else { $photo = ""; } if(strlen($xposition) > 0) { $position = strtr($xposition,"_"," ") . "
"; } else { $position = $addposition1 . "
"; } if ((strlen($docname1) > 0) && (strlen($docuniv1) > 0)) { $doc = "" . $docname1 . ", " . $docuniv1 . "
"; } else { $doc = ""; } $affiliation = "University Affiliation: " . $campus . "
"; $research_interest = $research_field1; if (strlen($research_field2) > 0) { $research_interest = $research_interest . ", " . $research_field2; } if (strlen($research_field3) > 0) { $research_interest = $research_interest . ", " . $research_field3; } if (strlen($research_field4) > 0) { $research_interest = $research_interest . ", " . $research_field4; } if (strlen($research_field5) > 0) { $research_interest = $research_interest . ", " . $research_field5; } if (strlen($research_field6) > 0) { $research_interest = $research_interest . ", " . $research_field6; } if (strlen($research_interest) > 0) { $research_interest = "Research Interests: " . $research_interest . "
"; } if (strlen($office_phone1) > 0) { $office_phone = "Tel: " . $office_phone1 . "
"; } else { $office_phone = ""; } if (strlen($fax1) > 0) { $fax = "Fax: " . $fax1 . "
"; } else { $fax = ""; } if (strlen($email) > 0) { $first_email=explode("@",$email); If(count($first_email)<2) $email_addr=$email; else{ $second_email=explode(".",$first_email[1]); $email_addr=$first_email[0]." [at] "; $i=0; $n=count($second_email); while($i<$n){ $holder=$second_email[$i]; $email_addr=$email_addr.$holder; if($i<$n-1) $email_addr=$email_addr." dot "; $i++; } } } else { $email_addr = ""; } if (strlen($website) > 0) { $website_link = "
Website: $website
"; } else { $website_link = ""; } print "
\"
$name
$photo 
$position $doc $affiliation $research_interest Contact Information
$office_phone $fax $email_addr $website_link


"; } include ("include/inc_footer.php") ?>