"home.php", " Contact" => "contact.php", " Services" => "services.php", " Site Map" => "heading" ); // class Page's operations function SetContent($newcontent) { $this->content = $this->content . " " .$newcontent; } function DefPageType($menupage) { $this->menupage = $menupage; } function LoadContent($filename) { $filearray = file($filename); $numrecs = count($filearray); // $this->content = ""; for ($i=0; $i<$numrecs; $i++) { $this->content = $this->content.$filearray[$i]; } } function SetPageType($menupage) { echo "

\n"; $this->menupage = $menupage; echo " 
"; echo ''; echo "\n"; if ($menupage) { echo ""; } } function SetTitle($newtitle) { $this->title = $newtitle; } function SetKeywords($newkeywords) { $this->keywords = $newkeywords; } function SetButtons($newbuttons) { $this->buttons = $newbuttons; } function Display() { echo "\n\n"; $this -> DisplayTitle(); $this -> DisplayKeywords(); if ($this->blnDownLoad == TRUE) { $this->DisplayDownLoad(); } $this -> DisplayStyles(); echo "\n\n"; $this -> DisplayHeader(); $this -> SetPageType($this->menupage); if ($this->menupage) { $this -> DisplayMenu($this->buttons); } $this -> DisplayContent($this->content, $this->menupage) ; $this -> DisplayFooter(); echo "\n\n"; } function DisplayTitle() { echo " $this->title "; } function DisplayKeywords() { echo "keywords\">"; } function DisplayDownLoad() { print ''."\n"; } function DisplayStyles() { // echo ''; echo ''; } function DisplayHeader() { echo '
\n"; } else { echo "\n"; echo "
'; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; // echo ' '; // echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo '
'; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo '
'; echo ' '; echo '
'; echo ' '; echo ' '; echo ' '; echo '
'; echo '
'; echo '

'; echo ' Web site Administration

'; echo '

'; echo '  '; echo '

'; echo '
'; } function DisplayMenu($buttons) { echo "\n"; while (list($name, $url) = each($buttons)) { // $this -> DisplayButton($name, $url, !$this->IsURLCurrentPage($url)); $this -> DisplayButton($name, $url, 1); } echo "
\n"; echo "\n"; echo "\n"; } function IsURLCurrentPage($url) { if(strpos( $GLOBALS["SCRIPT_FILENAME"], $url )==false) { return false; } else { return true; } } function DisplayButton($name, $url, $active = true) { echo " \n"; if ($url == "heading") { echo "\n"; echo " \n"; echo " $name\n"; echo "\n"; echo "\n"; } else { echo "\n"; echo "  "; echo $name; echo "\n"; echo "\n"; } } function DisplayContent($content, $menupage) { echo $this->content; echo "\n"; echo "\n"; if ($menupage) { echo "\n"; } echo "\n"; } function DisplayFooter() { return; echo '

 

'; echo ''; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo '
'; echo '    '; echo 'Privacy Policy'; echo '    '; echo 'Refund Policy'; echo '    '; echo 'User Agreement'; echo ' '; echo '

'; echo ' '; echo 'Contact Us'; echo '

'; echo '

'; echo ' 2004 - 2005 The Contractor Survey, Inc.'; echo '

'; // echo '

 

'; } } ?>