navbar=$nav; $this->title=$t; } public function display() { echo PageFront::$PP; echo '' . $this->title . ''; $this->displayCss($this->css); $this->displayJs($this->js); $this->displayAny($this->any); $this->displayFile($this->srcfile); $this->displayBody(); } public function addCss($css) { $this->css[] = $css; } public function addJs($js) { $this->js[] = $js; } public function addAny($any) { $this->any[] = $any; } public function addFile($f) { $this->srcfile=$f; } private function displayCss() { reset($this->css); foreach($this->css as $file) { echo '\n"; } } private function displayJs() { reset($this->js); foreach($this->js as $file) { echo '\n"; } } private function displayAny() { reset($this->any); foreach($this->any as $str) { echo "$str\n"; } } private function displayFile() { reset($this->srcfile); foreach($this->srcfile as $file) { require($file); } } private function displayBody() { echo "\n
'."\n"; $this->navbar->display(); echo '
' . "\n"; } private $js=array(); private $any=array(); private $css=array(); private $srcfile=array(); private $title=""; private $navbar; private static $PP=' '; } // end class // $pf=new PageFront("trial"); // $pf->display(); ?>