Esempio n. 1
0
 public function getleftMenu()
 {
     $leftmenu .= "<div class='menu_vert'><ul>";
     $leftmenu .= Lib_Category::getInstance()->getleftmenuStructure();
     $leftmenu .= "</ul></div>";
     return $leftmenu;
 }
Esempio n. 2
0
 public static function getInstance()
 {
     if (!is_object(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Esempio n. 3
0
 function updatecategory()
 {
     $mod = Lib_Category::getInstance()->updateCat();
     if ($mod) {
         $response = array("msg" => "Категорию под назавнием " . $_POST['uptitle'] . " изменено", "status" => "success");
     } else {
         $response = array("msg" => "чтото пошлo не так!", "status" => "danger");
     }
     echo json_encode($response);
     exit;
 }
Esempio n. 4
0
 function editeproduct()
 {
     $model = new Application_Models_Product();
     $mod1 = $model->getProduct($_GET['id']);
     $mod2 = Lib_Category::getInstance()->getHierarchyCategory();
     $mod3 = Lib_Category::getInstance()->getTitleCategory($mod2);
     $mod4 = Lib_Manufacturer::getInstance()->getTitleManufacturer();
     $this->mod1 = $mod1;
     $this->mod3 = $mod3;
     $this->mod4 = $mod4;
 }
Esempio n. 5
0
 function index()
 {
     $model = new Application_Models_Catalog();
     $mod1 = $model->getContent();
     $mod2 = $model->getpageNumber();
     $cat_tree = Lib_Category::getInstance()->getCat_Tree_Catalog();
     $manufacturer_tree = Lib_Manufacturer::getInstance()->getManufacturerTree_Catalog();
     $url = Url::freefromP();
     $clearurl = Url::fullclearUrl();
     $adjective = Url::makeclear($url);
     if (isset($mod1)) {
         $this->mod1 = $mod1;
     }
     if (isset($mod2)) {
         $this->mod2 = $mod2;
     }
     $this->cat_tree = $cat_tree;
     $this->manufacturer_tree = $manufacturer_tree;
     $this->url = $url;
     $this->clearurl = $clearurl;
     $this->adjective = $adjective;
 }