Пример #1
0
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $p = new ProdCat();
     $arrPage = $p->getAll();
     $arrNe = array();
     foreach ($arrPage as $pp) {
         $arrNe[$pp->cat_id] = $pp->cat_id . " - " . $pp->cat_name;
     }
     $return['cat_parent_id'] = new Leap\View\InputSelect($arrNe, "cat_parent_id", "cat_parent_id", $this->cat_parent_id);
     return $return;
 }
Пример #2
0
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $p = new ProdCat();
     $arrPage = $p->getAll();
     $arrNe = array();
     $arrNe[0] = "Main Category";
     foreach ($arrPage as $pp) {
         $arrNe[$pp->cat_id] = $pp->cat_id . " - " . $pp->cat_name;
     }
     $return['cat_parent_id'] = new Leap\View\InputSelect($arrNe, "cat_parent_id", "cat_parent_id", $this->cat_parent_id);
     $return['cat_pic'] = new Leap\View\InputFotoCropper($this->ratio_weight . ":" . $this->ratio_height, "cat_pic", "cat_pic", $this->cat_pic);
     return $return;
 }
Пример #3
0
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $p = new BrandModel();
     $arrPage = $p->getAll();
     $arrNe = array();
     foreach ($arrPage as $pp) {
         $arrNe[$pp->brand_id] = $pp->brand_id . " - " . $pp->brand_name;
     }
     $return['prod_diskon'] = new Leap\View\InputText("number", "prod_diskon", "prod_diskon", $this->prod_diskon);
     $return['prod_price'] = new Leap\View\InputText("number", "prod_price", "prod_price", $this->prod_price);
     $return['prod_stock'] = new Leap\View\InputText("hidden", "prod_stock", "prod_stock", $this->prod_stock);
     $return['prod_date'] = new Leap\View\InputText("hidden", "prod_date", "prod_date", leap_mysqldate());
     $return['prod_pic'] = new Leap\View\InputGallery("prod_pic", "prod_pic", $this->prod_pic);
     $return['prod_active'] = new Leap\View\InputSelect($this->arrayYesNO, "prod_active", "prod_active", $this->prod_active);
     // $return['news_text'] = new Leap\View\InputTextArea("news_text", "news_text", $this->news_text);
     $return['prod_des'] = new Leap\View\InputTextRTE("prod_des", "prod_des", $this->prod_des);
     $return['prod_brand_id'] = new Leap\View\InputSelect($arrNe, "prod_brand_id", "prod_brand_id", $this->prod_brand_id);
     $return['prod_status'] = new Leap\View\InputText("hidden", "prod_status", "prod_status", $this->prod_status);
     $return['prod_story'] = new Leap\View\InputText("hidden", "prod_story", "prod_story", $this->prod_story);
     $p = new ProdCat();
     $arrPage = $p->getAll();
     $arrNe = array();
     foreach ($arrPage as $pp) {
         $arrNe[$pp->cat_id] = $pp->cat_id . " - " . $pp->cat_name;
     }
     $return['prod_cat_id'] = new Leap\View\InputSelect($arrNe, "prod_cat_id", "prod_cat_id", $this->prod_cat_id);
     $return['prod_material'] = new Leap\View\InputText("hidden", "prod_material", "prod_material", $this->prod_material);
     $return['prod_size'] = new Leap\View\InputText("hidden", "prod_size", "prod_size", $this->prod_size);
     $return['prod_color'] = new Leap\View\InputText("hidden", "prod_color", "prod_color", $this->prod_color);
     $return['prod_collection_name'] = new Leap\View\InputText("hidden", "prod_collection_name", "prod_collection_name", $this->prod_collection_name);
     //        return $return;
     //        $return  = parent::overwriteForm($return, $returnfull);
     $return['product_fb_og_image'] = new \Leap\View\InputFoto("product_fb_og_image", "product_fb_og_image", $this->product_fb_og_image);
     $return['spdivider']['prod_name'] = "Product Details";
     $return['spdivider']['product_metatitle'] = "SEO";
     $return['spdivider']['product_fb_og_title'] = "FB OpenGraph";
     //        $return['spdivider']['post_attachments']  = "Attachments";
     //        $return['post_attachments'] = new Leap\View\InputPageAttachment("post_attachments","post_attachments",$this->post_attachments);
     return $return;
 }