"people/faculty/", // "POSTDOCS" => "people/postdocs/", // "STUDENTS" => "people/student/", "ADMINISTRATION" => "people/admin/", ); // pull out the string $person=preg_split("/\/|\./",$_GET['person']); $type=$person[0]; $netid=$person[1]; echo ""; // split into parts $type=$person[0]; $netid=$person[1]; // suck in their data require("people/${type}/${netid}.php"); /* Available fields: "netid" "firstname" "middlepart" "lastname" "title" "surtitle" "degrees" "awards" "publications" "researchareas" "other" */ $navigation_array=array( "People" => "people/", ucfirst($type) => "people/$type/", "$firstname $lastname" => 0 ); $person=array( "netid" => $netid, "firstname" => $firstname, "middlepart" => $middlepart, "lastname" => $lastname, "title" => $title, "surtitle" => $surtitle, "degrees" => $degrees, "awards" => $awards, "publications" => $publications, "researchareas" => $researchareas, "otherinfo" => $otherinfo ); echo ""; $person_string=""; // $person_string = $person['title'] ? $person['title'] . " " : ""; $person_string .= $person['firstname'] . " "; $person_string .= $person['middlepart'] ? $person['middlepart'] . " " : ""; $person_string .= $person['lastname']; // $person_string .= $person['surtitle'] ? ", " . $person['surtitle'] : ""; ?>
" width='100' />
\n".$field[1]."
\n"; echo "
\n".$person[$field[0]]."\n
\n"; } } if(array_key_exists($netid,$netidtoresearchmap)){ echo "
Related Researchers, by area
\n"; echo "
\n"; foreach($netidtoresearchmap[$netid] as $keyword){ echo "$keyword "; } echo "
\n"; } ?>