"home.php", // "Packages" => "packages.php", // "Availability" => "availability.php", // "Bookings" => "bookings.php", // "FAQ" => "faq.php" // ); // class Page's attributes PHP4 var $SCRIPT_NAME; var $content; var $title = "4speakers"; var $keywords = "4speakers, weding, speach, speeches, fashion, fete, carnival, microphone, tape player, CD player, costume, hire, disco, party"; var $buttons = array( "Home" => "home.php", "Packages" => "packages.php", "Availability" => "availability.php", "Bookings" => "bookings.php", "FAQ" => "faq.php" ); // class Page's operations function SetContent($newcontent) { $this->content = $newcontent; } 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(); $this -> DisplayStyles(); echo "\n\n"; $this -> DisplayHeader(); $this -> DisplayMenu($this->buttons); echo $this->content; $this -> DisplayFooter(); echo "\n\n"; } function DisplayTitle() { echo " $this->title "; } function DisplayKeywords() { echo "keywords\">"; } function DisplayStyles() { ?>
\n"; echo " \n"; //calculate button size $width = 100/count($buttons); while (list($name, $url) = each($buttons)) { $this -> DisplayButton($width, $name, $url, !$this->IsURLCurrentPage($url)); } echo " \n"; echo "\n"; } function IsURLCurrentPage($url) { // if(strpos( $GLOBALS["SCRIPT_NAME"], $url )==false) // { // return false; // } // else // { // return true; // } } function DisplayButton($width, $name, $url, $active = true) { if ($active) { echo " \"$name\" $name"; } else { echo " $name"; } } function DisplayFooter() { ?>

www.4speakers.com.au