setTopic(); } function displayHead () { // $this->showComment("Start displayHead ()"); $this->headTipTop(); $this->headJavaScript(); $this->headMeta(); $this->headKeywords(); $this->headTitle(); $this->javascriptPopUp(); $this->showComment("End displayHead ()"); } function displayBody (){ $this->showComment("Start displayBody ()"); $this->bodyStart(); $this->bodyMainHeader(); // $this->harvestBreadCrumb(); $this->bodyStartMainBody(); $this->bodyNavigation($topic); $this->showComment("End displayBody ()"); } function endBody () { $this->showComment("Start endBody ()"); echo "\n"; echo "\n"; echo "\n"; $this->bodyFooter(); echo "\n"; echo "\n"; $this->showComment("End endBody ()"); } function headTipTop () { // $this->showComment("Start headTipTop ()"); echo " \n"; $this->showComment("End headTipTop ()"); } function headTitle () { $this->showComment("Start headTitle ()"); if (!empty ($this->pagetitle)) { $this->title="Harvesting the River: ".$this->topic.": ".$this->subtopic.": ".$this->pagetitle; } echo " $this->title -- Illinois State Museum "; $this->showComment("End headTitle ()"); } function headJavaScript() { print " "; //end of print statement } //end of headJavaScript function headMeta () { $this->showComment("Start headMeta ()"); echo " "; $this->showComment("End headMeta ()"); } function headKeywords () { $this->showComment("Start headKeywords ()"); echo "keywords\" />\n"; $this->showComment("End headKeywords ()"); } function headISMsubject () { $this->showComment("Start headISMsubject () "); if (!empty($this->ISMsubject)) { $ISMsubs = explode(":", $this->ISMsubject); for ($i = 0; $i < count ($ISMsubs);$i++ ) { echo "\n"; } } $this->showComment("End headISMsubject ()"); } function headDescription () { $this->showComment("Start headDescription () "); if (!empty($this->description)) { echo "description."\" />\n"; } $this->showComment("End headDescription ()"); } function bodyStart () { $this->headISMsubject(); $this->headDescription(); $this->showComment("Start bodyStart ()"); echo "\n "; $this->showComment("End bodyStart ()"); } function bodyMainHeader () { $this->showComment("Starting bodyMainHeader"); //Now, this begins the real main header, just a big echo statement //not exactly elegant echo "
\"Harvesting
\"Harvest\" \"Transport\" \"History\"

"; //this is the end of the top navigation header $this->showComment("End bodyMainHeader"); } function bodyStartMainBody() { $this->showComment("Start bodyStartMainBody()"); echo "\n"; echo "\n"; echo "\n"; $this->showComment("End bodyEndContent ()"); } function bodyBeginNavCell (){ $this->showComment("Start bodyBeginNavCell ()"); echo "
\n"; echo "topic\">\n"; echo "\n"; $this->showComment("End bodyStartMainBody()"); } function bodyNavigation($topic) { $this->showComment("Start bodyNavigation(\$topic) for topic $this->topic"); echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; // $this->harvestTopicButton("$this->topic"); echo "\n
\n"; echo "\n"; $this->harvestBreadCrumb(); echo "
\n"; echo "

\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
 \n"; $this->showComment("End bodyNavigation(\$topic) for topic $this->topic"); } function bodyEndContent () { $this->showComment("Start bodyEndContent ()"); echo "
\n"; echo "
\"Images\" \"Videos\" \"Audio

\n"; echo "
"; //end echo statement $this->showComment("End bodyBeginNavCell ()"); } function bodyEndNavCell () { $this->showComment("Start bodyEndNavCell ()"); echo "
\n"; $this->showComment("End bodyEndNavCell ()"); } function bodyFooter (){ $this->showComment("Start bodyFooter ()"); // echo "
\n"; include "/local/php/ismsite/harvesting/footer.php"; $this->showComment("End bodyFooter ()"); } function setTopic ($newtopic="") { // Define the names you want given to each of the directories $label = array("archives"=>"Archives", "harvest"=>"Harvesting", "history"=>"History", "photogallery"=>"Archives", "boats"=>"Boats", "plankroad"=>"Plank Roads", "trains"=>"Trains", "fish"=>"Fish", "history"=>"History", "species"=>"Species", "ice"=>"Ice", "mussels"=>"Freshwater Mussels", "musseling"=>"Musseling", "waterfowl"=>"Waterfowl", "hunting"=>"Hunting", "river"=>"The Illinois River", "settlement"=>"Settlement", "images"=>"Images and Photographs", "tools_techniques"=>"Tools and Techniques", "decoys"=>"Decoys", "audio"=>"Audio Clips", "video"=>"Video Clips", "transportation"=>"Transportation"); if (!empty($newtopic)) { $this->topic = $newtopic; } else { $str = $GLOBALS[PHP_SELF]; ereg("^(.+)/.+\\..+$", $str, $part); $str = $part[1]; $str = substr($str, 1); $arr = split("/", $str); $num = count($arr); $this->topic = $label[$arr[2]]; $this->subtopic = $label[$arr[3]]; } } function setSubTopic ($newsubtopic='') { if (!empty($newsubtopic)) { $this->subtopic = $newsubtopic; } else { $str = $GLOBALS[PHP_SELF]; ereg("^(.+)/.+\\..+$", $str, $part); $str = $part[1]; $str = substr($str, 1); $arr = split("/", $str); $num = count($arr); $this->subtopic = $arr[3]; } } function harvestBreadCrumb () { $this->showComment("Start harvestBreadCrumb ()"); $str = $GLOBALS[PHP_SELF]; ereg("^(.+)/.+\\..+$", $str, $part); $str = $part[1]; $str = substr($str, 1); $filename = basename($PHP_SELF); // Define the names you want given to each of the directories $label = array("archives"=>"Archives", "harvest"=>"Harvesting", "history"=>"History", "transportation"=>"Transportation", "boats"=>"Boats", "plankroad"=>"Plank Roads", "trains"=>"Trains", "fish"=>"Fish", "history"=>"History", "species"=>"Species", "ice"=>"Ice", "mussels"=>"Freshwater Mussels", "musseling"=>"Musseling", "waterfowl"=>"Waterfowl", "hunting"=>"Hunting", "river"=>"The Illinois River", "settlement"=>"Settlement", "images"=>"Images and Photographs", "audio"=>"Audio Clips", "video"=>"Video Clips", "tools_techniques"=>"Tools", "decoys"=>"Waterfowl Decoys", "guns"=>"Firearms", "industry"=>"Industry"); if (ereg("/", $str)){ $arr = split("/", $str); $num = count($arr); $pathstring = ""; //echo("ISM Home"); for($i=0; $i < $num; ++$i){ $pathstring = $pathstring."/".$arr[$i]; if (isset ($label[$arr[$i]])) { echo(" > ".$label[$arr[$i]].""); } } }elseif (ereg("[a-zA-Z_]{1,}$",$str)){ $arr = $str; echo(" > ".$label[$arr]."\n"); }else{ echo(""); } if (!empty ($this->pagetitle)) { echo("> $this->pagetitle"); } else echo("> $this->title"); $this->showComment("End harvestBreadCrumb ()"); } //end harvestBreadCrumb function harvestTopicButton ($text) { $this->showComment("Start harvestTopicButton ($text)"); $home = $GLOBALS[home]; $buttontext = ereg_replace(" ","+",$text); echo "\"$text\"\n"; $this->showComment("End harvestTopicButton ($text)"); } function harvestSubTopicButton ($text) { $this->showComment("Start harvestSubTopicButton ($text)"); $home = $GLOBALS[home]; $buttontext = ereg_replace(" ","+",$text); echo "\"$text\"\n"; $this->showComment("End harvestSubTopicButton ($text)"); } //used to help identify the genisis of the html code function showcomment ($comment=''){ if (!empty($comment)) { echo "\n\n"; } } function javascriptPopUp () { print (" "); } //end javascriptpopup function imbedimage($rollID,$frameID,$alt,$caption,$align="right",$key=" ") { /* Example for calling: imbedimage("RollID","FrameID","Alt","Caption"); ?> */ $zoomImage = "\"Zoom"; $thisimage = $frameID."-p.jpg"; print "\n"; //print ""; print "
$caption
\n"; print "\n"; print "\n"; print "
\n"; print "\"$alt\"\n"; print "
\n"; print "$caption\n"; print ""; /* This allows non javascript to work */ print ""; print "$zoomImage\n"; print "
\n"; print "
\n"; } //end of function imbedimage() function imagepopup($rollID,$frameID,$alt,$key=" ") { /* Example: imagepopup("RollID","FrameID","Alt","keyword"); //keyword is optional ?> */ $imageicon = "\"Go"; $popupscript = "$GLOBALS[home]/archives/images/popup.php?roll=$rollID&img=$frameID"; if ($key != " ") { $popupscript = $popupscript."&key=$key"; } print "\n"; print ""; print "$imageicon"; print "\n"; } //end of function imagepopup function videopopup($VideoID,$FileID,$alt,$key=" ") { /* Example: videopopup("RollID","FrameID","Alt","keyword"); //keyword is optional ?> */ $videoicon = "\"Go"; $popupscript = "$GLOBALS[home]/archives/video/popup.html?VideoID=$VideoID&FileID=$FileID"; if ($key != " ") { $popupscript = $popupscript."&key=$key"; } print "\n"; print ""; print "$videoicon"; print "\n"; } //end of function videopopup function audiopopup($AlbumID,$FileID,$alt,$key=" ") { /* Example: audiopopup("RollID","FrameID","Alt","keyword"); //keyword is optional ?> */ $audioicon = "\"Go"; $popupscript = "$GLOBALS[home]/archives/audio/popup.html?AlbumID=$AlbumID&FileID=$FileID"; if ($key != " ") { $popupscript = $popupscript."&key=$key"; } print "\n"; print ""; print "$audioicon"; print "\n"; } //end of function audiopopup } //end of class harvestPage ?>