Exemplo n.º 1
0
 function update_manufacturer()
 {
     $mod = Lib_Manufacturer::getInstance()->updateManufacturer();
     if ($mod) {
         $response = array("msg" => "новый производитель " . $_POST['upmanufacturer'] . " изменен", "status" => "success");
     } else {
         $response = array("msg" => "чтото пошло не так!", "status" => "danger");
     }
     echo json_encode($response);
     exit;
 }
Exemplo n.º 2
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;
 }
Exemplo n.º 3
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;
 }