verifyUser($HTTP_COOKIE_VARS["UserLoggedIn"]); $thePage->drawPageHeader(); //$filedir Pubs/publications.php= "/var/www/secure/publicationfiles"; //$htmlfiledir = "/secure/publicationfiles"; //$diffdir = "/var/www"; $filedir = "/home/vhosts/mrgcvd.engr.wisc.edu/secure/publicationfiles"; $htmlfiledir = "/secure/publicationfiles"; $diffdir = "/home/vhosts/mrgcvd.engr.wisc.edu"; echo "
"; echo "
\n"; echo "\n"; echo ""; echo ""; echo ""; echo ""; $authorlist = trim($authorlist); if ($authorlist != "") { $authorID=findAuthorIDNoInsert($authorlist,$thePage->db); if ($authorID != 0) $authorstring = "WHERE (author1='$authorID' OR author2='$authorID' OR author3='$authorID' OR author4='$authorID' OR author5='$authorID' OR author6='$authorID' OR author7='$authorID' OR author8='$authorID' OR author9='$authorID' OR author10='$authorID' OR author11='$authorID' OR author12='$authorID' OR author13='$authorID' OR author14='$authorID' OR author15='$authorID' OR author16='$authorID')" ; } echo ""; echo ""; echo ""; echo ""; echo ""; switch ($sort) // Changes sort based on $sort variable { case "Year, ascending":$sortstring = "ORDER BY journalyear ASC"; break; case "Year, descending":$sortstring = "ORDER BY journalyear DESC"; break; case "Primary author":$sortstring = "ORDER BY primaryauthor ASC"; break; case "Article title":$sortstring = "ORDER BY title ASC"; break; case "Journal":$sortstring = "ORDER BY journalname ASC"; break; } $textsearch = trim($textsearch); if ($textsearch != "") { if (($authorlist) && ($authorID !=0)) $searchstring = "AND (title LIKE '%$textsearch%' OR journalname LIKE '%$textsearch%')"; else $searchstring = "WHERE (title LIKE '%$textsearch%' OR journalname LIKE '%$textsearch%')"; } $result = mysql_query("SELECT * FROM publications $authorstring $searchstring $sortstring",$thePage->db); if ($myrow = mysql_fetch_array($result)) { echo "\n"; do { $thePublication = new Publication($myrow); $thePublication->drawPublication($thePage->db,0); } while ($myrow = mysql_fetch_array($result)); } else { echo "\n"; } echo "
Sort by:Author search:
Full-text search:
Publications
Sorry, no publications match those conditions.
\n"; echo "
"; echo "
"; $thePage->drawPageFooter(); ?>