public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['camp_begin'] = new Leap\View\InputText("date", "camp_begin", "camp_begin", $this->camp_begin);
     $return['camp_end'] = new Leap\View\InputText("date", "camp_end", "camp_end", $this->camp_end);
     $return['camp_descr'] = new Leap\View\InputTextArea("camp_descr", "camp_descr", $this->camp_descr);
     $return['camp_active'] = new Leap\View\InputSelect($this->arrayYesNO, "camp_active", "camp_active", $this->camp_active);
     $return['camp_type'] = new Leap\View\InputSelect($this->type, "camp_type", "camp_type", $this->camp_type);
     $return['camp_foto_panjang'] = new Leap\View\InputFoto("camp_foto_panjang", "camp_foto_panjang", $this->camp_foto_panjang);
     $return['camp_foto_medium'] = new Leap\View\InputFoto("camp_foto_medium", "camp_foto_medium", $this->camp_foto_medium);
     $return['camp_foto_small'] = new Leap\View\InputFoto("camp_foto_small", "camp_foto_small", $this->camp_foto_small);
     $return['camp_welcome_pic'] = new Leap\View\InputFoto("camp_welcome_pic", "camp_welcome_pic", $this->camp_welcome_pic);
     /*
      * get max row
      * 
      */
     $app = $this->getWhere("camp_pos_x>0 ORDER BY camp_pos_x DESC LIMIT 0,1");
     $max = $app[0]->camp_pos_x + 1;
     for ($x = 1; $x <= $max; $x++) {
         $arrx[$x] = "row nr. : " . $x;
     }
     // if($this->camp_pos_x<1||$this->camp_pos_x=="")$this->camp_pos_x = 1;
     $return['camp_pos_x'] = new Leap\View\InputSelect($arrx, "camp_pos_x", "camp_pos_x", $this->camp_pos_x);
     $return['camp_pos_y'] = new Leap\View\InputText("hidden", "camp_pos_y", "camp_pos_y", $this->camp_pos_y);
     $return['camp_size'] = new Leap\View\InputSelect($this->arrsize, "camp_size", "camp_size", $this->camp_size);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $resto = new MasterRestaurantModel();
     $res = $resto->getAll();
     foreach ($res as $value) {
         $arrHelp[$value->id_restaurant] = $value->name;
     }
     $return['id_restaurant'] = new Leap\View\InputSelect($arrHelp, "id_restaurant", "id_restaurant", $this->id_restaurant);
     $bank = new BankModel();
     $arrBank = $bank->getAll();
     foreach ($arrBank as $value) {
         $arrHelpBank[$value->id_bank] = $value->bank_name;
     }
     $return['id_bank'] = new Leap\View\InputSelect($arrHelpBank, "id_bank", "id_bank", $this->id_bank);
     if (!isset($this->start)) {
         $dt = leap_mysqldate();
     } else {
         $dt = $this->start;
     }
     $return['start'] = new \Leap\View\InputText("date", "start", "start", $dt);
     if (!isset($this->end)) {
         $dt = leap_mysqldate();
     } else {
         $dt = $this->end;
     }
     $return['end'] = new \Leap\View\InputText("date", "end", "end", $dt);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $t = time();
     $return = parent::overwriteForm($return, $returnfull);
     $return['prod_attribute_array'] = new Leap\View\InputAttribute("prod_stock_" . $t, "prod_attribute_array", "prod_attribute_array", $this->prod_attribute_array);
     $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\InputTextArea("prod_des", "prod_des", $this->prod_des);
     $return['prod_stock'] = new Leap\View\InputText("hidden", "prod_stock_" . $t, "prod_stock", $this->prod_stock);
     $return['prod_app_id'] = new Leap\View\InputText("hidden", "prod_app_id" . $t, "prod_app_id", $this->prod_app_id);
     $return['prod_price'] = new Leap\View\InputPrice("prod_price", "prod_price", $this->prod_price);
     $return['prod_price_diskon'] = new Leap\View\InputPrice("prod_price_diskon", "prod_price_diskon", $this->prod_price_diskon);
     $p = new MProdCat();
     if (count($p->tree_multi_user_constraint) > 0) {
         $where = array();
         foreach ($p->tree_multi_user_constraint as $attr => $val) {
             $where[] = $attr . " = '" . $val . "'";
         }
         $impWhere = implode(" AND ", $where);
         $arrPage = $p->getWhere($impWhere);
     } else {
         $arrPage = $p->getAll();
     }
     //        $arrPage = $p->getAll();
     //category harus sesuai tree structurenya.....
     $arrNe = array();
     foreach ($arrPage as $pp) {
         $arrNe[$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 $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['topic_author'] = new Leap\View\InputText("hidden", "topic_author", "topic_author", Account::getMyID());
     if ($_GET['load']) {
         $return['topic_date'] = new Leap\View\InputText("hidden", "topic_date", "topic_date", $this->topic_date);
     } else {
         $return['topic_date'] = new Leap\View\InputText("hidden", "topic_date", "topic_date", leap_mysqldate());
     }
     $return['topic_msg'] = new Leap\View\InputTextRTE("topic_msg", "topic_msg", $this->topic_msg);
     $return['topic_status'] = new Leap\View\InputSelect(array("draft" => "Draft", "publish" => "Publish"), "topic_status", "topic_status", $this->topic_status);
     $return['topic_modified'] = new Leap\View\InputText("hidden", "topic_modified", "topic_modified", leap_mysqldate());
     $return['topic_image'] = new \Leap\View\InputFoto("topic_image", "topic_image", $this->topic_image);
     $return['topic_fb_og_image'] = new \Leap\View\InputFoto("topic_fb_og_image", "topic_fb_og_image", $this->topic_fb_og_image);
     $return['topic_category'] = new \Leap\View\InputTag("BlogBE/prefetchBlogCat", "topic_category", "topic_category", $this->topic_category);
     //        $return['spdivider']['post_image']  = "Content";
     $return['spdivider']['topic_meta_title'] = "SEO";
     $return['spdivider']['topic_fb_og_title'] = "FB OpenGraph";
     $return['spdivider']['topic_attachments'] = "Attachments";
     $return['topic_attachments'] = new Leap\View\InputPageAttachment("topic_attachments", "topic_attachments", $this->topic_attachments);
     if ($this->topic_attachment_order == "") {
         $this->topic_attachment_order = Efiwebsetting::getData('PageAttachment');
     }
     $return['topic_attachment_order'] = new Leap\View\InputOrdering("topic_attachment_order", "topic_attachment_order", $this->topic_attachment_order);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['cal_type_color'] = new Leap\View\InputText("color", "cal_type_color", "cal_type_color", $this->cal_type_color);
     $return['cal_type_active'] = new Leap\View\InputSelect($this->arrayYesNO, "cal_type_active", "cal_type_active", $this->cal_type_active);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['level_tingkatan'] = new \Leap\View\InputText("number", "level_tingkatan", "level_tingkatan", $this->level_tingkatan);
     $return['level_active'] = new Leap\View\InputSelect($this->arrayYesNO, "level_active", "level_active", $this->level_active);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['camp_client_id'] = new \Leap\View\InputTextArea("camp_client_id", "camp_client_id", $this->camp_client_id);
     $return['camp_start'] = new \Leap\View\InputText("date", "camp_start", "camp_start", $this->camp_start);
     for ($x = 0; $x < 24; $x++) {
         if ($x < 10) {
             $arrs[$x] = "0" . $x . ".00";
         } else {
             $arrs[$x] = $x . ".00";
         }
     }
     $return['camp_hour'] = new \Leap\View\InputSelect($arrs, "camp_hour", "camp_hour", $this->camp_hour);
     $return['camp_active'] = new \Leap\View\InputSelect($this->arrayYesNO, "camp_active", "camp_active", $this->camp_active);
     $return['camp_msg'] = new \Leap\View\InputTextRTE("camp_msg", "camp_msg", $this->camp_msg);
     $return['camp_msg'] = new \Leap\View\InputTextArea("camp_msg", "camp_msg", $this->camp_msg);
     $return['camp_url'] = new \Leap\View\InputText("text", "camp_url", "camp_url", $this->camp_url);
     $return['camp_img'] = new \Leap\View\InputFoto("camp_img", "camp_img", $this->camp_img);
     $return['camp_create_by'] = new \Leap\View\InputText("hidden", "camp_create_by", "camp_create_by", Account::getMyID());
     $return['camp_status'] = new \Leap\View\InputSelect($this->arrStatus, "camp_status", "camp_status", $this->camp_status);
     $return['spdivider']['camp_client_id'] = "Filter";
     $return['spdivider']['camp_start'] = "Campaign";
     $return['spdivider']['camp_client_id'] = "Accounts";
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['brand_pic'] = new \Leap\View\InputFoto("brand_pic", "brand_pic", $this->brand_pic);
     $return['brand_des'] = new Leap\View\InputTextArea("brand_des", "brand_des", $this->brand_des);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $resto = new MasterRestaurantModel();
     $res = $resto->getAll();
     foreach ($res as $value) {
         $arrHelp[$value->id_restaurant] = $value->name;
     }
     $return['id_restaurant'] = new Leap\View\InputSelect($arrHelp, "id_restaurant", "id_restaurant", $this->id_restaurant);
     $bank = new BankModel();
     $return['end_mr_fee'] = new \Leap\View\InputText("date", "end_mr_fee", "end_mr_fee", $dt);
     $return['fee'] = new Leap\View\InputTextRightAddOn("text", "fee", "fee", " % ", $this->fee);
     $return['mr_fee_select'] = new Leap\View\InputRadioButtonHideWhen(array(1 => "Yes", 0 => "No"), "mr_fee_select", "mr_fee_select", $this->mr_fee_select, array(1 => "formgroup_start_mr_fee,formgroup_end_mr_fee", 0 => "formgroup_start_mr_fee,formgroup_end_mr_fee"));
     if ($this->mr_fee_select == 0) {
         if (!isset($this->start_mr_fee)) {
             $dt = leap_mysqldate();
         } else {
             $dt = $this->start_mr_fee;
         }
         $return['start_mr_fee'] = new \Leap\View\InputText("date", "start_mr_fee", "start_mr_fee", $dt);
         if (!isset($this->end_mr_fee)) {
             $dta = leap_mysqldate();
         } else {
             $dta = $this->end_mr_fee;
         }
         $return['end_mr_fee'] = new \Leap\View\InputText("date", "end_mr_fee", "end_mr_fee", $dta);
     } else {
     }
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     //comment di set di page
     $return['test_files'] = new Leap\View\InputFileMultiple("test_files", "test_files", $this->test_files);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['type_order'] = new Leap\View\InputText("text", "type_order", "type_order", $this->arrOrderType[$this->type_order]);
     $return['type_order']->setReadOnly(1);
     $return['order_now'] = new Leap\View\InputText("text", "type_order", "type_order", $this->arrOrderNow[$this->order_now]);
     $return['order_now']->setReadOnly(1);
     $return['status_progress'] = new Leap\View\InputText("text", "status_progress", "status_progress", $this->arrStatusProgress[$this->status_progress]);
     $return['status_progress']->setReadOnly(1);
     $return['voided'] = new Leap\View\InputSelect($this->arrYesNo, "voided", "voided", $this->arrYesNo[$this->voided]);
     $return['status'] = new Leap\View\InputText("text", "status", "status", $this->arrStatusOrder[$this->status]);
     $return['status']->setReadOnly(1);
     $resto = new MasterRestaurantModel();
     $resto->getByID($this->id_restaurant);
     $return['id_restaurant'] = new \Leap\View\InputText("text", "id_restaurant", "id_restaurant", $resto->name);
     $return['id_restaurant']->setReadOnly(1);
     if ($this->id_table == "0") {
         $return['id_table'] = new \Leap\View\InputText("text", "id_table", "id_table", "Take Away");
     } else {
         $tab = new MasterTableModel();
         $tab->getByID($this->id_table);
         $return['id_table'] = new \Leap\View\InputText("text", "id_table", "id_table", "Table ID " . $this->id_table . " - Table No. " . $tab->table_number);
     }
     $return['id_table']->setReadOnly(1);
     foreach ($return as $key => $val) {
         $return[$key]->setReadOnly();
     }
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['tnc_text'] = new \Leap\View\InputTextRTE("tnc_text", "tnc_text", $this->tnc_text);
     $return['tnc_rank'] = new \Leap\View\InputText("number", "tnc_rank", "tnc_rank", $this->tnc_rank);
     $return['tnc_aktif'] = new Leap\View\InputSelect($this->arrayYesNO, "tnc_aktif", "tnc_aktif", $this->tnc_aktif);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['banner_active'] = new Leap\View\InputSelect($this->arrayYesNO, "banner_active", "banner_active", $this->banner_active);
     $return['banner_img'] = new Leap\View\InputFoto("banner_img", "banner_img", $this->banner_img);
     //        $return['app_contract_end'] = new Leap\View\InputText("date","app_contract_end","app_contract_end",$this->app_contract_end);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['ads_pic'] = new \Leap\View\InputFoto("ads_pic", "ads_pic", $this->ads_pic);
     $return['ads_active'] = new Leap\View\InputSelect($this->arrayYesNO, "ads_active", "ads_active", $this->ads_active);
     $return['ads_type'] = new Leap\View\InputSelect($this->arrType, "ads_type", "ads_type", $this->ads_type);
     $return['ads_urutan'] = new Leap\View\InputText("number", "ads_urutan", "ads_urutan", $this->ads_urutan);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['related_active'] = new Leap\View\InputSelect($this->arrayYesNO, "related_active", "related_active", $this->related_active);
     $return['related_group'] = new \Leap\View\InputConditionTBS("related_group", "related_group", $this->related_group);
     $return['related_target_group'] = new \Leap\View\InputConditionTBS("related_target_group", "related_target_group", $this->related_target_group);
     $return['related_priority'] = new \Leap\View\InputText("number", "related_priority", "related_priority", $this->related_priority);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     //$return['testi_date'] = new \Leap\View\InputText("datetime","testi_date", "testi_date", $this->testi_date);
     $return['testi_text'] = new \Leap\View\InputTextArea("testi_text", "testi_text", $this->testi_text);
     $return['testi_createdate'] = new \Leap\View\InputText("datetime", "testi_createdate", "testi_createdate", $this->testi_createdate);
     $return['testi_status'] = new Leap\View\InputSelect($this->arrStatus, "testi_status", "testi_status", $this->testi_status);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['par_content'] = new Leap\View\InputTextArea("par_content", "par_content", $this->par_content);
     $return['par_active'] = new Leap\View\InputSelect($this->arrayYesNO, "par_active", "par_active", $this->par_active);
     $return['par_image'] = new \Leap\View\InputFoto("par_image", "par_image", $this->par_image);
     $return['par_heit'] = new \Leap\View\InputText("number", "par_heit", "par_heit", $this->par_heit);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     if ($this->img_home == "") {
         $this->img_home = "noimage.jpg";
     }
     $return['img_home'] = new \Leap\View\InputFoto("foto", "img_home", $this->img_home);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['email_template_html'] = new Leap\View\InputTextArea("email_template_html", "email_template_html", $this->email_template_html);
     $return['email_template_text'] = new Leap\View\InputTextArea("email_template_text", "email_template_text", $this->email_template_text);
     $return['email_footer'] = new Leap\View\InputTextArea("email_footer", "email_footer", $this->email_footer);
     $return['email_img_header'] = new Leap\View\InputFoto("email_img_header", "email_img_header", $this->email_img_header);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $resto = new MasterRestaurantModel();
     $res = $resto->getAll();
     foreach ($res as $value) {
         $arrHelp[$value->id_restaurant] = $value->name;
     }
     $return['id_restaurant'] = new Leap\View\InputSelect($arrHelp, "id_restaurant", "id_restaurant", $this->id_restaurant);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['level_image'] = new \Leap\View\InputFoto("level_image", "level_image", $this->level_image);
     $return['level_fb_image'] = new \Leap\View\InputFoto("level_fb_image", "level_fb_image", $this->level_fb_image);
     for ($x = 1; $x < 6; $x++) {
         $m = "level_rapor_" . $x;
         $return['level_rapor_' . $x] = new \Leap\View\InputFoto("level_rapor_" . $x, "level_rapor_" . $x, $this->{$m});
     }
     $return['level_aktif'] = new Leap\View\InputSelect($this->arrayYesNO, "level_aktif", "level_aktif", $this->level_aktif);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['cat_page_descr'] = new Leap\View\InputTextRTE("cat_page_descr", "cat_page_descr", $this->cat_page_descr);
     $return['cat_active'] = new Leap\View\InputSelect($this->arrayYesNO, "cat_active", "cat_active", $this->cat_active);
     $return['cat_image'] = new Leap\View\InputFoto("cat_image", "cat_image", $this->cat_image);
     $return['cat_fb_image'] = new \Leap\View\InputFoto("cat_fb_image", "cat_fb_image", $this->cat_fb_image);
     //        $return['spdivider']['post_image']  = "Content";
     $return['spdivider']['cat_meta_title'] = "SEO";
     $return['spdivider']['cat_fb_title'] = "FB OpenGraph";
     return $return;
 }
 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;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['camp_begin'] = new Leap\View\InputText("date", "camp_begin", "camp_begin", $this->camp_begin);
     $return['camp_end'] = new Leap\View\InputText("date", "camp_end", "camp_end", $this->camp_end);
     $return['camp_descr'] = new Leap\View\InputTextArea("camp_descr", "camp_descr", $this->camp_descr);
     $return['camp_active'] = new Leap\View\InputSelect($this->arrayYesNO, "camp_active", "camp_active", $this->camp_active);
     $return['camp_pic'] = new Leap\View\InputFotoCropper($this->ratio_weight . ":" . $this->ratio_height, "camp_pic", "camp_pic", $this->camp_pic);
     $return['camp_app_id'] = new Leap\View\InputText("hidden", "camp_app_id", "camp_app_id", $this->camp_app_id);
     $return['camp_type'] = new Leap\View\InputSelect($this->arrtype, "camp_type", "camp_type", $this->camp_type);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $p = new RoleOrganization();
     $arrPage = $p->getWhere("organization_active = '1'");
     $arrNe = array();
     foreach ($arrPage as $pp) {
         $arrNe[$pp->organization_id] = $pp->organization_id . " - " . $pp->organization_name;
     }
     $return['organization_parent_id'] = new Leap\View\InputSelect($arrNe, "organization_parent_id", "organization_parent_id", $this->organization_parent_id);
     $return['organization_active'] = new Leap\View\InputSelect($this->arrayYesNO, "organization_active", "organization_active", $this->organization_active);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['id_restaurant'] = new \Leap\View\InputText("text", "id_restaurant", "id_restaurant", $this->id_restaurant);
     $return['id_restaurant']->setReadOnly();
     $return['datetime_request'] = new \Leap\View\InputText("text", "datetime_request", "datetime_request", $this->datetime_request);
     $return['datetime_request']->setReadOnly();
     $return['amount'] = new \Leap\View\InputText("text", "amount", "amount", $this->amount);
     $return['amount']->setReadOnly();
     $return['status'] = new \Leap\View\InputSelect(array("1" => "Approve", "0" => "Waiting Approval"), "status", "status", $this->status);
     $return['status']->setReadOnly();
     return $return;
 }
 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;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     if ($this->image == "") {
         $this->image = "noimage.jpg";
     }
     $return['image'] = new \Leap\View\InputFoto("foto", "image", $this->image);
     $return['type'] = new Leap\View\InputSelect($this->arrType, "type", "type", $this->type);
     $return['status'] = new Leap\View\InputSelect($this->arrActiveNotActive, "status", "status", $this->status);
     $return['promo_start'] = new Leap\View\InputText("datetime-local", "promo_start", "promo_start", $this->promo_start);
     $return['promo_end'] = new Leap\View\InputText("datetime-local", "promo_end", "promo_end", $this->promo_end);
     //datetime-local
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     if (!isset($this->datetime_order)) {
         $dt = leap_mysqldate();
     } else {
         $dt = $this->datetime_order;
     }
     $return['datetime_order'] = new \Leap\View\InputText("date", "datetime_order", "datetime_order", $dt);
     foreach ($return as $key => $val) {
         $return[$key]->setReadOnly();
     }
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['rule_description'] = new \Leap\View\InputTextArea("rule_description", "rule_description", $this->rule_description);
     $return['rule_active'] = new Leap\View\InputSelect($this->arrayYesNO, "rule_active", "rule_active", $this->rule_active);
     $return['rule_usergroup'] = new Leap\View\InputSelect(array('All' => 'All User', 'Unlogged' => 'Unlogged Only', 'All_Logged' => 'Logged Only', 'All_LYB' => 'All LYB', 'LYBClub' => 'LYB Club', 'LYBFan' => 'LYB Fan'), "rule_usergroup", "rule_usergroup", $this->rule_usergroup);
     //        $return['rule_icon'] = new \Leap\View\InputFoto("rule_icon", "rule_icon", $this->rule_icon);
     $return['rule_from'] = new \Leap\View\InputText("date", "rule_from", "rule_from", $this->rule_from);
     $return['rule_to'] = new \Leap\View\InputText("date", "rule_to", "rule_to", $this->rule_to);
     $return['rule_discount'] = new \Leap\View\InputText("number", "rule_discount", "rule_discount", $this->rule_discount);
     $return['rule_apply_to'] = new Leap\View\InputSelect(array('by_percent' => 'Apply as percentage to Total', 'free_shipping' => 'Apply as free Shipping '), "rule_apply_to", "rule_apply_to", $this->rule_apply_to);
     //        $return['rule_conditions'] = new \Leap\View\InputAttribute("number","rule_discount", "rule_discount", $this->rule_discount);
     //        $return['rule_conditions'] = new \Leap\View\InputConditionTBS("rule_conditions", "rule_conditions", $this->rule_conditions);
     return $return;
 }