-
require_once "tidbit.php"; -
switch($_REQUEST['go']) { case 'edit': $c = new Testimonial_Edit(); break; default: $c = new Testimonial_Home(); } -
class Testimonial_Home { var $crumbs, $location; function Testimonial_Home() { global $TEMPLATE, $USER, $DB, $CONFIG; $this-> crumbs = array("Testimonials"=> "?do=testimonials"); $USER->setLocation($this->getLocation()); $this->pagename = "testimonials.tpl"; return; } function getLocation() { return $this->location; } function getPageName() { return "testimonials.tpl"; } function getCrumbs() { return $this->crumbs; } } -
-
class Testimonial_Edit { var $crumbs, $location; function Testimonial_Edit() { global $TEMPLATE, $USER, $DB, $CONFIG; $this-> crumbs = array("Edit Testimonial"=> "?do=testimonials&go=edit"); $USER->setLocation($this->getLocation()); $this->pagename = "edit_testimonial.tpl"; return; } function getLocation() { return $this->location; } function getPageName() { return "edit_testimonial.tpl"; } function getCrumbs() { return $this->crumbs; } } -
-
|