"index3.tpl" , index_e => "index_e.tpl" , index_sp => "index_sp-temp.tpl" , index_p => "index_p.tpl" , body_e => "body_e.tpl" , body_sp => "body_sp.tpl" , body_p => "body_p.tpl" , body_general => "body_general.tpl" , topnav => "topnav.tpl" , research => "research.tpl" , faculty => "faculty.tpl" , leftnav => "leftnav.tpl" , footer => "footer.tpl" , other => "other.tpl" , publications => "publications.tpl" , books => "books.tpl" , journals => "journals.tpl" , grants_contracts => "grants_contracts.tpl" , presentations => "presentations.tpl" , professional_activities => "professional_activities.tpl" , awards => "awards.tpl" , education => "education.tpl" , experience => "experience.tpl" , research_interests => "research_interests.tpl" , courses => "courses.tpl" , fac_phone_numbers => "fac_phone_numbers.tpl" , email_addresses => "email_addresses.tpl" , url_addresses => "url_addresses.tpl" , supervision => "supervision.tpl" , backtotop_pres => "backtotop_pres.tpl" , backtotop_jp => "backtotop_jp.tpl" , backtotop_bc => "backtotop_bc.tpl" , backtotop_sp => "backtotop_sp.tpl" , blank => "blank.tpl" , head_pres => "head_pres.tpl" , head_jp => "head_jp.tpl" , head_bc => "head_bc.tpl" , head_sp => "head_sp.tpl" ); $tpl->define($define); // All of these are arrays // $email_addresses = $fp->get("email_addresses"); foreach ($fp->get("email_addresses") as $a) { $tpl->assign(array( FAC_EMAIL_ADDRESS => preg_replace("/@/", "@", $a[email_address]) )); $tpl->parse(FAC_EMAIL, ".email_addresses"); } unset($a); $tpl->assign( array( RIGHTCOL => get_htmldata(rightcol) )); // $urls = $fp->get("urls"); foreach ($fp->get("urls") as $a) { if ( $a[url] == '' ) { $tpl->assign(FAC_URL, ""); } else { $tpl->assign(FAC_URL, "{$a[description]}"); } } unset($a); // $phone_numbers = $fp->get("phone_numbers"); foreach ($fp->get("phone_numbers") as $a) { $phone_number = preg_replace("/\D/", "", $a[phone_number]); $phone_number = preg_replace("/(\d\d\d)(\d\d\d)(\d\d\d\d)/", "($1) $2-$3", $phone_number); $tpl->assign(array( FAC_PHONE_NUMBER => $phone_number , FAC_PHONE_DESCRIPTION => $a[description] )); $tpl->parse(FAC_PHONE_NUMBERS, ".fac_phone_numbers"); } unset($a); // $presentations = $fp->get("presentations"); foreach ($fp->get("presentations") as $a) { if ( $a[pres_date] ) { $pres_date = format_date($a[pres_date]) . "."; } if ( $a[location] ) { $location = ($a[location]) . "."; } if ( $a[event] ) { $event = ($a[event]) . ","; } if ( count($fp->get("presentations")) > 0 and is_array($a)) { $a[date] = format_date($a[date]); $tpl->assign(array( PRE_AUTHOR => $a[author] , PRE_TITLE => $a[title] , PRE_EVENT => $event , PRE_LOCATION => $location , PRE_DATES => $pres_date , PRE_COMMENTS => $a[comments] , PRE_INVITED => $a[invited] )); $tpl->parse(HEAD_PRES, "head_pres"); $tpl->parse(PRESENTATIONS, ".presentations"); $tpl->parse(BACKTOTOP_PRES, "backtotop_pres"); } else { $tpl->parse(HEAD_PRES, "blank"); $tpl->parse(PRESENTATIONS, "blank"); $tpl->parse(BACKTOTOP_PRES, "blank"); } } unset($a); // $publications = $fp->get("publications"); foreach ($fp->get("publications") as $a) { if ( $a[start_page] != "" and $a[end_page] != "" ){ $pages = "pp. " . ($a[start_page]) . " - " . ($a[end_page]) . "."; } elseif ( $a[start_page] == "" and $a[end_page] != "" ){ $pages = "p. " . ($a[end_page]) . "."; } elseif ( $a[start_page] != "" and $a[end_page] == "" ){ $pages = "p. " . ($a[start_page]) . "."; } else { $pages = ""; } if ( $a[volume] != "" ) { $volume = "vol." . ($a[volume]) . "."; } else { $volume = ""; } if ( $a[year] != "" ) { $year = "(" . ($a[year]) . ")."; } else { $year = ""; } if ( count($fp->get("publications")) > 0 and is_array($a)) { $tpl->assign(array( PUB_AUTHORS => $a[authors] , PUB_TITLE => $a[title] , PUB_PUBLICATION => $a[publication] , PUB_VOLUME => $volume , PUB_NUMBER => $a[number] , PUB_YEAR => $year , PUB_PAGES => $pages , PUB_COMMENTS => $a[comments] , PUB_STATUS => $a[status] , PUB_START_PAGE => $a[start_page] , PUB_END_PAGE => $a[end_page] )); $tpl->parse(HEAD_SP, "head_sp"); $tpl->parse(PUBLICATIONS, ".publications"); $tpl->parse(BACKTOTOP_SP, "backtotop_sp"); } else { $tpl->parse(HEAD_SP, "blank"); $tpl->parse(PUBLICATIONS, "blank"); $tpl->parse(BACKTOTOP_SP, "blank"); } } unset($a); // $journals = $fp->get("journals"); foreach ($fp->get("journals") as $a) { if ( $a[start_page] != "" and $a[end_page] != "" ){ $pages = "pp. " . ($a[start_page]) . " - " . ($a[end_page]) . "."; } elseif ( $a[start_page] == "" and $a[end_page] != "" ){ $pages = "p. " . ($a[end_page]) . "."; } elseif ( $a[start_page] != "" and $a[end_page] == "" ){ $pages = "p. " . ($a[start_page]) . "."; } else { $pages = ""; } if ( $a[volume] != "" ) { $volume = "vol." . ($a[volume]) . "."; } else { $volume = ""; } if ( $a[year] != "" ) { $year = "(" . ($a[year]) . ")."; } else { $year = ""; } $publication = ($a[publication]) . "."; if ( count($fp->get("journals")) > 0 and is_array($a)) { $tpl->assign(array( JOU_AUTHORS => $a[authors] , JOU_TITLE => $a[title] , JOU_PUBLICATION => $publication , JOU_VOLUME => $volume , JOU_NUMBER => $a[number] , JOU_YEAR => $year , JOU_PAGES => $pages , JOU_PAGES_BEGIN => $a[start_page] , JOU_PAGES_END => $a[end_page] , JOU_COMMENTS => $a[comments] , JOU_STATUS => $a[status] , JOU_START_PAGE => $a[start_page] , JOU_END_PAGE => $a[end_page] )); $tpl->parse(HEAD_JP, "head_jp"); $tpl->parse(JOURNALS, ".journals"); $tpl->parse(BACKTOTOP_JP, "backtotop_jp"); } else { $tpl->parse(HEAD_JP, "blank"); $tpl->parse(JOURNALS, "blank"); $tpl->parse(BACKTOTOP_JP, "blank"); } } unset($a); // $books = $fp->get("books"); foreach ($fp->get("books") as $a) { if ( $a[begin] != "0000-00-00" and $a[end] != "0000-00-00" and $a[begin] != "" and $a[end] != "" ){ $dates = format_date($a[begin]) . " - " . format_date($a[end]); } else { $dates = format_date($a[begin]) . format_date($a[end]); } if ( $a[volume] != "" ) { $volume = "vol." . ($a[volume]) . "."; } else { $volume = ""; } if ( $a[number] != "" ) { $number = "no." . ($a[number]) . "."; } else { $number = ""; } if ( $a[start_page] != "" and $a[end_page] != "" ){ $pages = "pp. " . ($a[start_page]) . " - " . ($a[end_page]) . "."; } elseif ( $a[start_page] == "" and $a[end_page] != "" ){ $pages = "p. " . ($a[end_page]) . "."; } elseif ( $a[start_page] != "" and $a[end_page] == "" ){ $pages = "p. " . ($a[start_page]) . "."; } else { $pages = ""; } if ( count($fp->get("books")) > 0 and is_array($a)) { $tpl->assign(array( BOO_AUTHORS => $a[authors] , BOO_TITLE => $a[title] , BOO_PUBLISHER => $a[publisher] , BOO_PUBLICATION => $a[publication] , BOO_EDITOR => $a[editor] , BOO_VOLUME => $volume , BOO_NUMBER => $number , BOO_YEAR => $a[year] , BOO_PAGES => $pages , BOO_COMMENTS => $a[comments] , BOO_STATUS => $a[status] , BOO_START_PAGE => $a[start_page] , BOO_END_PAGE => $a[end_page] )); $tpl->parse(HEAD_BC, "head_bc"); $tpl->parse(BOOKS, ".books"); $tpl->parse(BACKTOTOP_BC, "backtotop_bc"); } else { $tpl->parse(HEAD_BC, "blank"); $tpl->parse(BOOKS, "blank"); $tpl->parse(BACKTOTOP_BC, "blank"); } } unset($a); $urls = $fp->get("urls"); $personal = $fp->get("personal"); if ( $FACULTY_IMAGES[$personal[0][lastn]] ) { $faculty_image = $FACULTY_IMAGES[$personal[0][lastn]]; } else { $faculty_image = "../images/coming_soon.jpg"; } if ( $FACULTY_VIDEOS[$personal[0][lastn]] ) { $faculty_video = $FACULTY_VIDEOS[$personal[0][lastn]]; } else { $faculty_video = ""; } $tpl->assign( array( FAC_TITLE => $personal[0][title] , FAC_FULLNAME => $personal[0][firstn] . " " . $personal[0][lastn] , FAC_IMAGE => $faculty_image , FAC_VIDEO => $faculty_video )); foreach(${"_" . $REQUEST_METHOD} as $k=>$v) { $tpl->assign(strtoupper($k), $v); } $banner_no = rand(0,(count($s_con)-1)); // $tpl->parse(BODY_GENERAL, "body_general"); // $tpl->parse(BODY_E, "body_e"); $tpl->assign(ROTATOR, $s_con[$banner_no]); $tpl->parse(BODY_SP, "body_sp"); // $tpl->parse(BODY_P, "body_p"); $tpl->parse(FACULTY, "faculty"); $tpl->parse(TOPNAV, "topnav"); $tpl->parse(RESEARCH, "research"); $tpl->parse(LEFTNAV, "leftnav"); $tpl->parse(FOOTER, "footer"); // $tpl->parse(INDEX3, "index3"); // $tpl->parse(INDEX_E, "index_e"); $tpl->parse(INDEX_SP, "index_sp"); // $tpl->parse(INDEX_P, "index_p"); header("Content-type: text/html"); $tpl->FastPrint(); exit; ?> 'none', '01'=>'January', '02'=>'February', '03'=>'March', '04'=>'April', '05'=>'May', '06'=>'June', '07'=>'July', '08'=>'August', '09'=>'September', '10'=>'October', '11'=>'November', '12'=>'December' ); if ( $year == '0000' ) return; if ( $year == '9999' ) return "Present"; if ( $MONTHS[$month] == 'none' ) return $year; if ( $day != '00' ) { $date = $MONTHS[$month] . " " . $day . ", " . $year; } else { $date = $MONTHS[$month] . ", " . $year; } return $date; } function n_a($thing) { if ($thing == "" ) { $thing = "N/A"; } return $thing; } ?>