Faculty and Staff Directory

"; $row = mysql_fetch_assoc($get_person); echo "
"; if (!$row['url_image']) $row['url_image']= "http://panda.unm.edu/images/people/nopic.jpg"; echo "" ; echo "
"; echo "
" .$row['allnames'] ."

"; echo "

"; if (!$row['title_primary']) $title= $row['new_role_name']; else $title = $row['title_primary']; echo "

" .$title; echo "
"; if ($row['title_secondary']) echo $row['title_secondary'] ."
"; echo "
"; if ($row['da1']){ echo "

" .$row['da1']; if ($row['degree_major_primary']) echo ", " .$row['degree_major_primary']; echo ", " .$row['degree_institution_primary']; if ($row['degree_year_primary'] != '0') echo ", " .$row['degree_year_primary']; echo "
"; } if ($row['da2']){ echo $row['da2']; if ($row['degree_major_secondary']) echo ", " .$row['degree_major_secondary']; echo ", " .$row['degree_institution_secondary']; if ($row['degree_year_secondary'] != '0') echo ", " .$row['degree_year_secondary']; echo "
"; } echo "
"; if ($row['office_primary']) echo "Office: " .$row['office_primary'] ."
"; if ($row['phone_primary']) echo "Phone: " .$row['phone_primary'] ."
"; if ($row['office_secondary']) echo "Office: " .$row['office_secondary'] ."
"; if ($row['phone_secondary']) echo "Phone: " .$row['phone_secondary'] ."
"; if ($row['email_address']) echo "Email: " .$row['email_address'] .""; if ($row['url_web']) echo "
On the Web: " .$row['url_text'] .""; if ($row['url2_web']) echo ", " .$row['url2_text'] .""; echo "

"; echo "

"; if ($row['directory_description']) echo "

Description: " .$row['directory_description'] ."

"; $roleID = $row['role_id']; $joint = array(3,20,22,28,30,498); // also add to index.phtml and print/index.html switch ($roleID) { case 5: case 6: case 7: case 9: case 21: case 25: case 28: case 29: if (!in_array($personID, $joint)) $group= "Tenured and Tenure Track Faculty"; else $group= "Faculty with Joint Appointment in Physics"; break; case 10: case 24: $group= "Lecturers"; break; case 12: case 13: case 14: $group= "Research Faculty"; break; case 19: case 20: $group= "Research Staff and Postdoctoral Fellows"; break; case 15: case 16: case 22: case 23: case 30: $group= "Adjunct Professors"; break; case 8: $group= "Professor Emeriti"; break; case 17: $group= "Administrative Staff"; break; default: // echo "Default " .$personID ."role is: " .$roleID; break; } echo "

Group: " .$group ."

"; echo "
"; dbClose(); ?>