public function getSearchMenu($param) { //displaySearchForm means to display the search form at the right side of the website. switch ($param) { case 'Suppliers': require_once 'include/CartManufacturer.php'; $this->smarty->assign('selSupplier', @$_REQUEST["selSupplier"]); return CartManufacturer::getAllCartManufacturers(); break; case 'Categories': //Display the categories require_once 'include/CartCategory.php'; $this->smarty->assign('selCategory', @$_REQUEST["selCategory"]); return CartCategory::getCartCategorys(); break; case 'ProductTypes': require_once 'include/CartProductType.php'; $this->smarty->assign('selProductType', @$_REQUEST["selProductType"]); return CartProductType::getAllCartProductTypes(); break; } }