当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Form_Element_Checkbox::setAttribs方法代码示例

本文整理汇总了PHP中Zend_Form_Element_Checkbox::setAttribs方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Form_Element_Checkbox::setAttribs方法的具体用法?PHP Zend_Form_Element_Checkbox::setAttribs怎么用?PHP Zend_Form_Element_Checkbox::setAttribs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend_Form_Element_Checkbox的用法示例。


在下文中一共展示了Zend_Form_Element_Checkbox::setAttribs方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: FrmReceive

 public function FrmReceive($data = null)
 {
     $wherehouse_id = new Zend_Form_Element_Select('wherehouse_id');
     $wherehouse_id->setAttribs(array('class' => 'form-control'));
     $wherehouse_id_opt = array("1" => $this->tr->translate("..."), "2" => $this->tr->translate("..."));
     $wherehouse_id->setMultiOptions($wherehouse_id_opt);
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $handow = new Zend_Form_Element_Text('handow');
     $handow->setAttribs(array('class' => 'form-control'));
     $document = new Zend_Form_Element_Button('3');
     $document->setAttribs(array('class' => 'form-control'));
     $session = new Zend_Form_Element_Button('7');
     $session->setAttribs(array('class' => 'form-control'));
     $item_code = new Zend_Form_Element_Select('item_code');
     $item_code->setAttribs(array('class' => 'form-control'));
     $company_opt = array("1" => $this->tr->translate("SELECT_COMPANY"), "2" => $this->tr->translate("SELECT_COMPANY_NAME"));
     $item_code->setMultiOptions($company_opt);
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $ptd_usage_value = new Zend_Form_Element_Text('ptd_usage_value');
     $ptd_usage_value->setAttribs(array('class' => 'form-control'));
     $qty_onhand = new Zend_Form_Element_Text('demo3');
     $qty_onhand->setAttribs(array('class' => 'form-control', 'id' => 'demo3'));
     $branch = new Zend_Form_Element_Select('branch');
     $branch->setAttribs(array('class' => 'form-control'));
     $wherehouse_id_opt = array("1" => $this->tr->translate("..."), "2" => $this->tr->translate("..."));
     $branch->setMultiOptions($wherehouse_id_opt);
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $blank_smaler = new Zend_Form_Element_Select('blank_smaler');
     $blank_smaler->setAttribs(array('class' => 'form-control'));
     $company_opt = array("1" => $this->tr->translate("SELECT_COMPANY"), "2" => $this->tr->translate("SELECT_COMPANY_NAME"));
     $blank_smaler->setMultiOptions($company_opt);
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $average_cost = new Zend_Form_Element_Text('average_cost');
     $average_cost->setAttribs(array('class' => 'form-control'));
     $ptd_sale_value = new Zend_Form_Element_Text('ptd_sale_value');
     $ptd_sale_value->setAttribs(array('class' => 'form-control'));
     $unit_cost = new Zend_Form_Element_Radio('unit_cost');
     $unit_cost->setAttribs(array('class' => 'red'));
     $total_cost = new Zend_Form_Element_Radio('total_cost');
     $total_cost->setAttribs(array('class' => 'red'));
     $serial = new Zend_Form_Element_Text('serial');
     $serial->setAttribs(array('class' => 'form-control'));
     $lot = new Zend_Form_Element_Text('lot');
     $lot->setAttribs(array('class' => 'form-control'));
     $add_lind = new Zend_Form_Element_Button('add_lind');
     $add_lind->setAttribs(array('class' => 'form-control'));
     $edit_lind = new Zend_Form_Element_Button('edit_lind');
     $edit_lind->setAttribs(array('class' => 'form-control'));
     $delete_lind = new Zend_Form_Element_Button('delete_lind');
     $delete_lind->setAttribs(array('class' => 'form-control'));
     $concel_lind = new Zend_Form_Element_Button('concel_lind');
     $concel_lind->setAttribs(array('class' => 'form-control'));
     $this->addElements(array($combo, $wherehouse_id, $handow, $item_code, $branch, $document, $session, $blank_smaler, $ptd_usage_value, $qty_onhand, $unit_cost, $total_cost, $serial, $lot, $add_lind, $edit_lind, $delete_lind, $concel_lind));
     return $this;
 }
开发者ID:TheTypoMaster,项目名称:restaurant168,代码行数:59,代码来源:FrmReceive.php

示例2: Frm_table_type

 public function Frm_table_type($data = null)
 {
     $menu_code = new Zend_Form_Element_Text('type_code');
     $menu_code->setAttribs(array('class' => 'form-control', 'required' => true));
     $description = new Zend_Form_Element_Text('description');
     $description->setAttribs(array('class' => 'form-control'));
     $lang_1 = new Zend_Form_Element_Text('lang_1');
     $lang_1->setAttribs(array('class' => 'form-control'));
     $lang_2 = new Zend_Form_Element_Text('lang_2');
     $lang_2->setAttribs(array('checked' => 'checked', 'class' => 'form-control'));
     $lang_3 = new Zend_Form_Element_Text('lang_3');
     $lang_3->setAttribs(array('checked' => 'checked', 'class' => 'form-control'));
     if ($data != null) {
         // 			print_r($data);
     }
     $show_description = new Zend_Form_Element_Select('show_description');
     $show_description->setAttribs(array('class' => 'form-control'));
     $description_opt = array("" => $this->tr->translate("SELECT_DESCRIPTION"));
     $show_description->setMultiOptions($description_opt);
     $photo = new Zend_Form_Element_File('photo');
     $background = new Zend_Form_Element_Text('background');
     $background->setAttribs(array('class' => 'form-control color-picker-rgba'));
     $font_color = new Zend_Form_Element_Text('font_color');
     $font_color->setAttribs(array('class' => 'form-control', 'id' => "selected-color1"));
     $font_size = new Zend_Form_Element_Text('demo3');
     $font_size->setAttribs(array('class' => 'form-control', 'id' => "demo3", 'value' => 12, 'placeholder' => '12'));
     $apply = new Zend_Form_Element_Select('apply');
     $apply->setAttribs(array('class' => 'form-control'));
     $apply_opt = array("" => $this->tr->translate("SELECT_APPLY_TO_COMPANY"));
     $apply->setMultiOptions($apply_opt);
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $active = new Zend_Form_Element_Checkbox('active');
     $active->setAttribs(array('class' => 'red'));
     $format = new Zend_Form_Element_Text('demo4');
     $format->setAttribs(array('class' => 'form-control', 'id' => "demo4", 'value' => 12, 'placeholder' => '12'));
     $setting = new Zend_Form_Element_Select('setting');
     $setting->setAttribs(array('class' => 'form-control'));
     $setting_opt = array("" => $this->tr->translate("SELECT_SETTING"));
     $setting->setMultiOptions($setting_opt);
     $arrange = new Zend_Form_Element_Text('arrange');
     $arrange->setAttribs(array('class' => 'form-control'));
     $resize = new Zend_Form_Element_Text('resize');
     $resize->setAttribs(array('class' => 'form-control', 'id' => "resize", 'value' => 12, 'placeholder' => '12'));
     $note = new Zend_Form_Element_Textarea('note');
     $note->setAttribs(array('class' => 'form-control', 'style' => "margin-top: 0px; margin-bottom: 0px; height: 100px;"));
     $id = new Zend_Form_Element_Hidden('id');
     if ($data != null) {
         $id->setValue($data['id']);
         $menu_code->setValue($data['code']);
         $description->setValue($data['description']);
         $lang_1->setValue($data['lang1']);
         $lang_2->setValue($data['lang2']);
         $note->setValue($data['note']);
     }
     $this->addElements(array($id, $apply, $active, $combo, $menu_code, $description, $lang_1, $lang_2, $lang_3, $show_description, $background, $font_color, $font_size, $format, $setting, $arrange, $resize, $note));
     return $this;
 }
开发者ID:TheTypoMaster,项目名称:restaurant168,代码行数:58,代码来源:FrmTableType.php

示例3: frm_table_time_charge

 public function frm_table_time_charge($data = null)
 {
     $menu_code = new Zend_Form_Element_Text('menu_code');
     $menu_code->setAttribs(array('class' => 'form-control'));
     $description = new Zend_Form_Element_Text('description');
     $description->setAttribs(array('class' => 'form-control', 'required' => true));
     $amount_to_charge = new Zend_Form_Element_Text('amount_to_charge');
     $amount_to_charge->setAttribs(array('class' => 'form-control'));
     $free_amt = new Zend_Form_Element_Text('free_amt');
     $free_amt->setAttribs(array('class' => 'form-control'));
     $child = new Zend_Form_Element_Text('child');
     $child->setAttribs(array('checked' => 'checked', 'class' => 'form-control'));
     $show_description = new Zend_Form_Element_Text('show_description');
     $show_description->setAttribs(array('class' => 'form-control'));
     $photo = new Zend_Form_Element_File('photo');
     $background = new Zend_Form_Element_Text('background');
     $background->setAttribs(array('class' => 'form-control color-picker-rgba'));
     $font_color = new Zend_Form_Element_Text('font_color');
     $font_color->setAttribs(array('class' => 'form-control', 'id' => "selected-color1"));
     $interval_time = new Zend_Form_Element_Text('interval_time');
     $interval_time->setAttribs(array('class' => 'form-control'));
     $apply = new Zend_Form_Element_Select('apply');
     $apply->setAttribs(array('class' => 'form-control'));
     $apply_opt = array("" => $this->tr->translate("SELECT_APPLY_TO_COMPANY"));
     $apply->setMultiOptions($apply_opt);
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $active = new Zend_Form_Element_Checkbox('active');
     $active->setAttribs(array('class' => 'form-control'));
     $execute_number = new Zend_Form_Element_Text('execute_number');
     $execute_number->setAttribs(array('class' => 'form-control'));
     $setting = new Zend_Form_Element_Select('setting');
     $setting->setAttribs(array('class' => 'form-control'));
     $setting_opt = array("" => $this->tr->translate("SELECT_SETTING"));
     $setting->setMultiOptions($setting_opt);
     $arrange = new Zend_Form_Element_Text('arrange');
     $arrange->setAttribs(array('class' => 'form-control'));
     $resize = new Zend_Form_Element_Text('resize');
     $resize->setAttribs(array('class' => 'form-control', 'id' => "resize", 'value' => 12, 'placeholder' => '12'));
     $note = new Zend_Form_Element_Textarea('note');
     $note->setAttribs(array('class' => 'form-control', 'style' => "margin-top: 0px; margin-bottom: 0px; height: 100px;"));
     $id = new Zend_Form_Element_Hidden('id');
     if ($data != null) {
         // 			print_r($data);
         $id->setValue($data['id']);
         $description->setValue($data['description']);
         $interval_time->setValue($data['time_interval']);
         $execute_number->setValue($data['execute_amount']);
         $amount_to_charge->setValue($data['fee_charge']);
         $free_amt->setValue($data['free_amount']);
         $child->setValue($data['chil_per']);
         $active->setValue($data['nul_mul']);
     }
     $this->addElements(array($id, $apply, $active, $combo, $menu_code, $description, $amount_to_charge, $free_amt, $child, $show_description, $background, $font_color, $interval_time, $execute_number, $setting, $arrange, $resize, $note));
     return $this;
 }
开发者ID:sarankh80,项目名称:restaurant168,代码行数:56,代码来源:FrmTableTimecharge.php

示例4: FrmMenu

 public function FrmMenu($data = null)
 {
     //$db = new menu_Model_DbTable_DbMenuGroup();
     $menu_code = new Zend_Form_Element_Text('menu_code');
     $menu_code->setAttribs(array('class' => 'form-control', "data-required" => "1", 'aria-describedby' => 'name-error name-error', 'aria-invalid' => 'true'));
     $description = new Zend_Form_Element_Text('description');
     $description->setAttribs(array('class' => 'form-control', "data-required" => "1"));
     $lang_1 = new Zend_Form_Element_Text('lang_1');
     $lang_1->setAttribs(array('class' => 'form-control', "data-required" => "1"));
     $lang_2 = new Zend_Form_Element_Text('lang_2');
     $lang_2->setAttribs(array('checked' => 'checked', 'class' => 'form-control'));
     if ($data != null) {
         // 			print_r($data);
     }
     $show_description = new Zend_Form_Element_Select('show_description');
     $show_description->setAttribs(array('class' => 'form-control'));
     $description_opt = array(0 => $this->tr->translate("SELECT_DESCRIPTION"), 1 => $this->tr->translate("CODE"), 2 => $this->tr->translate("DESCRIPTION"), 3 => $this->tr->translate("LANG_ONE"), 4 => $this->tr->translate("LANG_TWO"));
     $show_description->setMultiOptions($description_opt);
     $photo = new Zend_Form_Element_File('photo');
     $background = new Zend_Form_Element_Text('background');
     $background->setAttribs(array('class' => 'form-control color-picker-rgba'));
     $font_color = new Zend_Form_Element_Text('font_color');
     $font_color->setAttribs(array('class' => 'form-control', 'id' => "selected-color1"));
     $font_size = new Zend_Form_Element_Text('demo3');
     $font_size->setAttribs(array('class' => 'form-control', 'id' => "demo3", 'value' => 12, 'placeholder' => '12'));
     $apply = new Zend_Form_Element_Select('apply');
     $apply->setAttribs(array('class' => 'form-control'));
     $apply_opt = array("" => $this->tr->translate("SELECT_APPLY_TO_COMPANY"));
     $apply->setMultiOptions($apply_opt);
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $active = new Zend_Form_Element_Checkbox('active');
     $active->setAttribs(array('class' => 'red'));
     $format = new Zend_Form_Element_Text('demo4');
     $format->setAttribs(array('class' => 'form-control', 'id' => "demo4", 'value' => 12, 'placeholder' => '12'));
     $setting = new Zend_Form_Element_Select('setting');
     $setting->setAttribs(array('class' => 'form-control'));
     $setting_opt = array("" => $this->tr->translate("SELECT_SETTING"));
     $setting->setMultiOptions($setting_opt);
     $arrange = new Zend_Form_Element_Text('arrange');
     $arrange->setAttribs(array('class' => 'form-control'));
     $resize = new Zend_Form_Element_Text('resize');
     $resize->setAttribs(array('class' => 'form-control', 'id' => "resize", 'value' => 12, 'placeholder' => '12'));
     $note = new Zend_Form_Element_Textarea('note');
     $note->setAttribs(array('class' => 'form-control', 'style' => "margin-top: 0px; margin-bottom: 0px; height: 100px;"));
     $this->addElements(array($apply, $active, $combo, $menu_code, $description, $lang_1, $lang_2, $show_description, $background, $font_color, $font_size, $format, $setting, $arrange, $resize, $note));
     if ($data != "") {
         $menu_code->setValue($data['menu_group_code']);
         $description->setValue($data['menu_group']);
         $lang_1->setValue($data['menu_group2']);
         $lang_2->setValue($data['menu_group3']);
         $show_description->setValue($data['show_group']);
     }
     return $this;
 }
开发者ID:TheTypoMaster,项目名称:restaurant168,代码行数:55,代码来源:FrmMenuGroup.php

示例5: FrmSystemuser

 public function FrmSystemuser($data = null)
 {
     $user_id = new Zend_Form_Element_Select('user_id');
     $user_id->setAttribs(array('class' => 'form-control'));
     $user_opt = array("" => $this->tr->translate("ADMIN"));
     $user_id->setMultiOptions($user_opt);
     $user_name = new Zend_Form_Element_Text('user_name');
     $user_name->setAttribs(array('class' => 'form-control'));
     $user_name2 = new Zend_Form_Element_Text('user_name2');
     $user_name2->setAttribs(array('class' => 'form-control'));
     $gender = new Zend_Form_Element_Text('gender');
     $gender->setAttribs(array('class' => 'form-control'));
     $language = new Zend_Form_Element_Text('language');
     $language->setAttribs(array('class' => 'form-control'));
     $user_level = new Zend_Form_Element_Text('user_level');
     $user_level->setAttribs(array('class' => 'form-control'));
     $report_language = new Zend_Form_Element_Text('report_language');
     $report_language->setAttribs(array('class' => 'form-control'));
     $access_to_company = new Zend_Form_Element_Text('access_to_company');
     $access_to_company->setAttribs(array('class' => 'form-control'));
     $default_company = new Zend_Form_Element_Text('default_company');
     $default_company->setAttribs(array('class' => 'form-control'));
     $password = new Zend_Form_Element_Text('password');
     $password->setAttribs(array('class' => 'form-control'));
     $confirm_password = new Zend_Form_Element_Text('confirm_password');
     $confirm_password->setAttribs(array('class' => 'form-control'));
     $sale = new Zend_Form_Element_Text('sale');
     $sale->setAttribs(array('class' => 'form-control'));
     $usergroup = new Zend_Form_Element_Text('usergroup');
     $usergroup->setAttribs(array('class' => 'form-control'));
     $login = new Zend_Form_Element_Text('login');
     $login->setAttribs(array('class' => 'form-control'));
     $price = new Zend_Form_Element_Text('price');
     $price->setAttribs(array('class' => 'form-control'));
     $autolock = new Zend_Form_Element_Text('autolock');
     $autolock->setAttribs(array('class' => 'form-control'));
     $active = new Zend_Form_Element_Checkbox('active');
     $active->setAttribs(array('class' => 'yellow'));
     $usermust = new Zend_Form_Element_Checkbox('usermust');
     $usermust->setAttribs(array('class' => 'red'));
     $userpwd = new Zend_Form_Element_Checkbox('$userpwd');
     $userpwd->setAttribs(array('class' => 'red'));
     $userschedule = new Zend_Form_Element_Checkbox('userschedule');
     $userschedule->setAttribs(array('class' => 'red'));
     $note = new Zend_Form_Element_Text('note');
     $note->setAttribs(array('class' => 'form-control'));
     $des = new Zend_Form_Element_Text('des');
     $des->setAttribs(array('class' => 'form-control'));
     $this->addElements(array($user_id, $user_name, $user_name2, $gender, $language, $user_level, $report_language, $access_to_company, $default_company, $password, $confirm_password, $sale, $usergroup, $login, $price, $autolock, $active, $usermust, $userpwd, $userschedule, $note, $des));
     return $this;
 }
开发者ID:TheTypoMaster,项目名称:restaurant168,代码行数:51,代码来源:FrmSystemuser.php

示例6: FrmCurrency

 public function FrmCurrency($data = null)
 {
     $currency_code = new Zend_Form_Element_Text('currency_code');
     $currency_code->setAttribs(array('class' => 'form-control', 'required' => true));
     $currency_text = new Zend_Form_Element_Text('currency_text');
     $currency_text->setAttribs(array('class' => 'form-control'));
     $currency_sy = new Zend_Form_Element_Text('currency_sy');
     $currency_sy->setAttribs(array('class' => 'form-control'));
     $decimal = new Zend_Form_Element_Text('decimal ');
     $decimal->setAttribs(array('class' => 'form-control'));
     $exchange = new Zend_Form_Element_Text('exchange');
     $exchange->setAttribs(array('class' => 'form-control'));
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $active = new Zend_Form_Element_Checkbox('active');
     $active->setAttribs(array('class' => 'yellow'));
     $photo = new Zend_Form_Element_File('photo');
     $background = new Zend_Form_Element_Text('background');
     $background->setAttribs(array('class' => 'form-control color-picker-rgba'));
     $phone_2 = new Zend_Form_Element_Text('$phone_2');
     $phone_2->setAttribs(array('class' => 'form-control'));
     $radio1 = new Zend_Form_Element_Checkbox('radio1');
     $radio1->setAttribs(array());
     $base = new Zend_Form_Element_Checkbox('base');
     $base->setAttribs(array('class' => 'red'));
     $format = new Zend_Form_Element_Text('demo4');
     $format->setAttribs(array('class' => 'form-control', 'id' => "demo4", 'value' => 12, 'placeholder' => '12'));
     $setting = new Zend_Form_Element_Select('setting');
     $setting->setAttribs(array('class' => 'form-control'));
     $setting_opt = array("" => $this->tr->translate("SELECT_SETTING"));
     $setting->setMultiOptions($setting_opt);
     $arrange = new Zend_Form_Element_Text('arrange');
     $arrange->setAttribs(array('class' => 'form-control'));
     $resize = new Zend_Form_Element_Text('resize');
     $resize->setAttribs(array('class' => 'form-control', 'id' => "resize", 'value' => 12, 'placeholder' => '12'));
     $note = new Zend_Form_Element_Textarea('note');
     $note->setAttribs(array('class' => 'form-control', 'style' => "margin-top: 0px; margin-bottom: 0px; height: 100px;"));
     $id = new Zend_Form_Element_Hidden('id');
     if ($data != null) {
         $id->setValue($data['id']);
         $currency_code->setValue($data['curr_code']);
         $currency_text->setValue($data['curr_title']);
         $currency_sy->setValue($data['symbol']);
         $decimal->setValue($data['decimal_place']);
         $exchange->setValue($data['exchange_rate']);
     }
     $this->addElements(array($id, $radio1, $currency_code, $currency_text, $currency_sy, $decimal, $exchange, $base, $format, $setting, $arrange, $resize, $note));
     return $this;
 }
开发者ID:sarankh80,项目名称:restaurant168,代码行数:49,代码来源:FrmCurrency.php

示例7: FrmExport

 public function FrmExport($data = null)
 {
     $export = new Zend_Form_Element_Text('export');
     $export->setAttribs(array('class' => 'form-control'));
     $path = new Zend_Form_Element_Text('path');
     $path->setAttribs(array('class' => 'form-control'));
     $company = new Zend_Form_Element_Text('company');
     $company->setAttribs(array('class' => 'form-control'));
     $export_sale = new Zend_Form_Element_Checkbox('export_sale ');
     $export_sale->setAttribs(array('class' => 'red'));
     $export_inventory = new Zend_Form_Element_Checkbox('export_inventory ');
     $export_inventory->setAttribs(array('class' => 'red'));
     $treat = new Zend_Form_Element_Checkbox('treat ');
     $treat->setAttribs(array('class' => 'red'));
     $this->addElements(array($export, $path, $company, $export_sale, $export_inventory, $treat));
     return $this;
 }
开发者ID:TheTypoMaster,项目名称:restaurant168,代码行数:17,代码来源:FrmExport.php

示例8: FrmMenu

 public function FrmMenu($data = null)
 {
     $combo_code = new Zend_Form_Element_Text('combo_code');
     $combo_code->setAttribs(array('class' => 'form-control', 'onkeyup' => 'displayPhoto()'));
     $description = new Zend_Form_Element_Text('description');
     $description->setAttribs(array('class' => 'form-control', 'onchange' => 'displayPhoto()'));
     $lang_1 = new Zend_Form_Element_Text('lang_1');
     $lang_1->setAttribs(array('class' => 'form-control', 'onchange' => 'displayPhoto()'));
     $lang_2 = new Zend_Form_Element_Text('lang_2');
     $lang_2->setAttribs(array('checked' => 'checked', 'class' => 'form-control', 'onchange' => 'displayPhoto()'));
     $lang_3 = new Zend_Form_Element_Text('lang_3');
     $lang_3->setAttribs(array('checked' => 'checked', 'class' => 'form-control'));
     if ($data != null) {
     }
     $db = new Application_Model_DbTable_DbGlobal();
     $show_description = new Zend_Form_Element_Select('show_description');
     $show_description->setAttribs(array('class' => 'form-control', 'required' => 'true', 'onchange' => 'displayPhoto()'));
     $opt = $db->getVewOptoinTypeByType(1, 1, null, 1);
     $show_description->setMultiOptions($opt);
     //$photo = new Zend_Form_Element_File('photo');
     $background = new Zend_Form_Element_select('background');
     $background->setAttribs(array('class' => 'form-control color-picker-rgba'));
     $otp = array('0' => 'apply to company', '1' => 'A', '2' => 'B', '3' => 'C');
     $background->setMultiOptions($otp);
     $font_color = new Zend_Form_Element_Text('font_color');
     $font_color->setAttribs(array('class' => 'form-control', 'id' => "selected-color1"));
     $font_size = new Zend_Form_Element_Text('demo3');
     $font_size->setAttribs(array('class' => 'form-control', 'id' => "demo3", 'value' => 12, 'placeholder' => '12'));
     $apply_to_company = new Zend_Form_Element_Select('apply_to_company');
     $apply_to_company->setAttribs(array('class' => 'form-control'));
     $apply_opt = array("" => $this->tr->translate("SELECT_APPLY_TO_COMPANY"));
     $apply_to_company->setMultiOptions($apply_opt);
     $combo_item = new Zend_Form_Element_Checkbox('combo_item');
     $combo_item->setAttribs(array('class' => 'red'));
     $active = new Zend_Form_Element_Checkbox('active');
     $active->setAttribs(array('class' => 'red', 'checked' => 'checked'));
     $user_activate = new Zend_Form_Element_Checkbox('user_activate');
     $user_activate->setAttribs(array('class' => 'red', 'onclick' => 'setDefaulTime()'));
     $note = new Zend_Form_Element_Textarea('note');
     $note->setAttribs(array('class' => 'form-control', 'id' => "demo4", 'value' => 12, 'placeholder' => '12'));
     $setting = new Zend_Form_Element_Select('setting');
     $setting->setAttribs(array('class' => 'form-control'));
     $setting_opt = array("" => $this->tr->translate("SELECT_SETTING"));
     $setting->setMultiOptions($setting_opt);
     $arrange = new Zend_Form_Element_Text('arrange');
     $arrange->setAttribs(array('class' => 'form-control'));
     $resize = new Zend_Form_Element_Text('resize');
     $resize->setAttribs(array('class' => 'form-control', 'id' => "resize", 'value' => 12, 'placeholder' => '12'));
     $backgroun_color = new Zend_Form_Element_Text('backgroun_color');
     $backgroun_color->setAttribs(array('class' => 'colorpicker-rgba form-control', 'onclick' => 'displayPhoto()'));
     $font_site = new Zend_Form_Element_text('font_size');
     $font_site->setAttribs(array('class' => ' spinner-input form-control', 'onkeyup' => 'displayPhoto()', 'onclick' => 'displayPhoto()'));
     $font_site->setValue(18);
     $apply = new Zend_Form_Element_Select('apply');
     $apply->setAttribs(array('class' => 'form-control'));
     $font_color = new Zend_Form_Element_text('font_color');
     $font_color->setAttribs(array('class' => 'colorpicker-default form-control', 'onclick' => 'displayPhoto()'));
     $note = new Zend_Form_Element_Textarea('note');
     $note->setAttribs(array('class' => 'form-control', 'style' => "margin-top: 0px; margin-bottom: 0px; height: 100px;"));
     $from_time = new Zend_Form_Element_Text('from_time');
     $from_time->setAttribs(array('class' => 'form-control clockface-open', 'id' => 'clockface_1'));
     $to_time = new Zend_Form_Element_Text('to_time');
     $to_time->setAttribs(array('class' => 'form-control clockface-open', 'id' => 'clockface_2'));
     $id = new Zend_Form_Element_Hidden('id');
     if (!empty($data)) {
         $id->setValue($data['id']);
         $combo_code->setValue($data['menu_code']);
         $description->setValue($data['desc']);
         $lang_1->setValue($data['lang1']);
         $lang_2->setValue($data['lang2']);
         $show_description->setValue($data['display_by']);
         $backgroun_color->setValue($data['background_color']);
         $font_color->setValue($data['font_color']);
         $font_site->setValue($data['font_size']);
         $from_time->setValue($data['date']);
         $note->setValue($data['note']);
         $active->setValue($data['status']);
         $combo_item->setValue($data['is_combo']);
         $apply_to_company->setValue($data['apply_company']);
     }
     $this->addElements(array($apply, $active, $description, $lang_1, $lang_2, $lang_3, $show_description, $background, $font_color, $font_size, $note, $combo_code, $combo_item, $id, $note, $backgroun_color, $font_site, $font_color, $apply_to_company, $user_activate, $from_time, $to_time));
     return $this;
 }
开发者ID:sarankh80,项目名称:restaurant168,代码行数:83,代码来源:FrmMenuGroup.php

示例9: FrmCustomer

 public function FrmCustomer($data = null)
 {
     $customer = new Zend_Form_Element_Select('customer_id');
     $customer->setAttribs(array('class' => 'form-control'));
     $current = new Zend_Form_Element_Text('current');
     $current->setAttribs(array('class' => 'form-control'));
     $company = new Zend_Form_Element_Select('company');
     $company->setAttribs(array('class' => 'form-control'));
     $current_balance = new Zend_Form_Element_Select('current');
     $current_balance->setAttribs(array('class' => 'form-control'));
     $second_language = new Zend_Form_Element_Text('second_language');
     $second_language->setAttribs(array('class' => 'form-control'));
     $contact_name = new Zend_Form_Element_Text('contact');
     $contact_name->setAttribs(array('class' => 'form-control'));
     $ytd_sale = new Zend_Form_Element_Select('sale');
     $ytd_sale->setAttribs(array('class' => 'form-control'));
     $mobile = new Zend_Form_Element_Text('mobile');
     $mobile->setAttribs(array('class' => 'form-control'));
     $credit = new Zend_Form_Element_Text('credit');
     $credit->setAttribs(array('class' => 'form-control'));
     $customer_group = new Zend_Form_Element_Text('customer_group');
     $customer_group->setAttribs(array('class' => 'form-control'));
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $active = new Zend_Form_Element_Checkbox('active');
     $active->setAttribs(array('class' => 'yellow'));
     $photo = new Zend_Form_Element_File('photo');
     $background = new Zend_Form_Element_Text('background');
     $background->setAttribs(array('class' => 'form-control color-picker-rgba'));
     $phone_2 = new Zend_Form_Element_Text('$phone_2');
     $phone_2->setAttribs(array('class' => 'form-control'));
     $title = new Zend_Form_Element_Text('$title');
     $title->setAttribs(array('class' => 'form-control'));
     $address = new Zend_Form_Element_Text('$address');
     $address->setAttribs(array('class' => 'form-control'));
     $address_2 = new Zend_Form_Element_Text('$address_2');
     $address_2->setAttribs(array('class' => 'form-control'));
     $credit_limit = new Zend_Form_Element_Text('credit_limit');
     $credit_limit->setAttribs(array('class' => 'form-control'));
     $sale_discount = new Zend_Form_Element_Text('sale_discount');
     $sale_discount->setAttribs(array('class' => 'form-control'));
     $sale_tax = new Zend_Form_Element_Text('sale_tax');
     $sale_tax->setAttribs(array('class' => 'form-control'));
     $payment_disc = new Zend_Form_Element_Text('payment_disc');
     $payment_disc->setAttribs(array('class' => 'form-control'));
     $net_due = new Zend_Form_Element_Text('net_due');
     $net_due->setAttribs(array('class' => 'form-control'));
     $term_id = new Zend_Form_Element_Text('term_id');
     $term_id->setAttribs(array('class' => 'form-control'));
     $apply = new Zend_Form_Element_Select('apply');
     $apply->setAttribs(array('class' => 'form-control'));
     $apply_opt = array("" => $this->tr->translate("SELECT_APPLY_TO_COMPANY"));
     $apply->setMultiOptions($apply_opt);
     $active = new Zend_Form_Element_Checkbox('active');
     $active->setAttribs(array('class' => 'red'));
     $hold = new Zend_Form_Element_Checkbox('hold');
     $hold->setAttribs(array('class' => 'red'));
     $price_code = new Zend_Form_Element_Select('price_code:');
     $price_code->setAttribs(array('class' => 'form-control'));
     $setting = new Zend_Form_Element_Select('setting');
     $setting->setAttribs(array('class' => 'form-control'));
     $setting_opt = array("" => $this->tr->translate("SELECT_SETTING"));
     $setting->setMultiOptions($setting_opt);
     $payment_day = new Zend_Form_Element_Text('payment_day');
     $payment_day->setAttribs(array('class' => 'form-control'));
     $city = new Zend_Form_Element_Text('city');
     $city->setAttribs(array('class' => 'form-control'));
     $city = new Zend_Form_Element_Text('city');
     $city->setAttribs(array('class' => 'form-control'));
     $country = new Zend_Form_Element_Text('country');
     $country->setAttribs(array('class' => 'form-control'));
     $fax = new Zend_Form_Element_Text('fax');
     $fax->setAttribs(array('class' => 'form-control'));
     $fax2 = new Zend_Form_Element_Text('fax2');
     $fax2->setAttribs(array('class' => 'form-control'));
     $email = new Zend_Form_Element_Text('email');
     $email->setAttribs(array('class' => 'form-control'));
     $web_page = new Zend_Form_Element_Text('web_page');
     $web_page->setAttribs(array('class' => 'form-control'));
     //customer_detail
     $entry_date = new Zend_Form_Element_Text('entry_date');
     $entry_date->setAttribs(array('class' => 'form-control'));
     $last_sale_date = new Zend_Form_Element_Text('last_sale_date');
     $last_sale_date->setAttribs(array('class' => 'form-control'));
     $last_pay_date = new Zend_Form_Element_Text('last_pay_date');
     $last_pay_date->setAttribs(array('class' => 'form-control form-control-inline  date-picker'));
     $ptd_sales = new Zend_Form_Element_Text('ptd_sales');
     $ptd_sales->setAttribs(array('class' => 'form-control'));
     $deposit = new Zend_Form_Element_Text('deposit');
     $deposit->setAttribs(array('class' => 'form-control', 'id' => 'mask_number'));
     $sale_person = new Zend_Form_Element_Text('sale_person');
     $sale_person->setAttribs(array('class' => 'form-control'));
     $credit = new Zend_Form_Element_Text('credit');
     $credit->setAttribs(array('class' => 'form-control'));
     $last_sale_amount = new Zend_Form_Element_Text('last_sale_amount');
     $last_sale_amount->setAttribs(array('class' => 'form-control'));
     $last_pay_amount = new Zend_Form_Element_Text('last_pay_amount');
     $last_pay_amount->setAttribs(array('class' => 'form-control'));
     $current_balance = new Zend_Form_Element_Text('current_balance');
     $current_balance->setAttribs(array('class' => 'form-control'));
//.........这里部分代码省略.........
开发者ID:sarankh80,项目名称:restaurant168,代码行数:101,代码来源:FrmCustomer.php

示例10: FrmCustomer

 public function FrmCustomer($data = null)
 {
     $customer = new Zend_Form_Element_Text('customer_id');
     $customer->setAttribs(array('class' => 'form-control'));
     $apply_to_company = new Zend_Form_Element_Text('apply');
     $apply_to_company->setAttribs(array('class' => 'form-control'));
     $company = new Zend_Form_Element_Text('company');
     $company->setAttribs(array('class' => 'form-control'));
     $current_balance = new Zend_Form_Element_Text('current');
     $current_balance->setAttribs(array('class' => 'form-control'));
     $second_language = new Zend_Form_Element_Text('second_language');
     $second_language->setAttribs(array('class' => 'form-control'));
     $contact_name = new Zend_Form_Element_Text('contact');
     $contact_name->setAttribs(array('class' => 'form-control'));
     $ytd_sale = new Zend_Form_Element_Text('sale');
     $ytd_sale->setAttribs(array('class' => 'form-control'));
     $mobile = new Zend_Form_Element_Text('mobile');
     $mobile->setAttribs(array('class' => 'form-control'));
     $credit = new Zend_Form_Element_Text('credit');
     $credit->setAttribs(array('class' => 'form-control'));
     $customer_group = new Zend_Form_Element_Text('customer_group');
     $customer_group->setAttribs(array('class' => 'form-control'));
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $active = new Zend_Form_Element_Checkbox('active');
     $active->setAttribs(array('class' => 'yellow'));
     $photo = new Zend_Form_Element_File('photo');
     $background = new Zend_Form_Element_Text('background');
     $background->setAttribs(array('class' => 'form-control color-picker-rgba'));
     $phone_2 = new Zend_Form_Element_Text('$phone_2');
     $phone_2->setAttribs(array('class' => 'form-control'));
     $title = new Zend_Form_Element_Text('$title');
     $title->setAttribs(array('class' => 'form-control'));
     $address = new Zend_Form_Element_Text('$address');
     $address->setAttribs(array('class' => 'form-control'));
     $address_2 = new Zend_Form_Element_Text('$address_2');
     $address_2->setAttribs(array('class' => 'form-control'));
     $city = new Zend_Form_Element_Text('$city');
     $city->setAttribs(array('class' => 'form-control'));
     $country = new Zend_Form_Element_Text('$country');
     $country->setAttribs(array('class' => 'form-control'));
     $fax = new Zend_Form_Element_Text('$fax');
     $fax->setAttribs(array('class' => 'form-control'));
     $fax_2 = new Zend_Form_Element_Text('$fax_2$');
     $fax_2->setAttribs(array('class' => 'form-control'));
     $email = new Zend_Form_Element_Text('$email');
     $email->setAttribs(array('class' => 'form-control'));
     $web = new Zend_Form_Element_Text('$web');
     $web->setAttribs(array('class' => 'form-control'));
     $apply = new Zend_Form_Element_Select('apply');
     $apply->setAttribs(array('class' => 'form-control'));
     $apply_opt = array("" => $this->tr->translate("SELECT_APPLY_TO_COMPANY"));
     $apply->setMultiOptions($apply_opt);
     $active = new Zend_Form_Element_Checkbox('active');
     $active->setAttribs(array('class' => 'red'));
     $hold = new Zend_Form_Element_Checkbox('hold');
     $hold->setAttribs(array('class' => 'red'));
     $format = new Zend_Form_Element_Text('demo4');
     $format->setAttribs(array('class' => 'form-control', 'id' => "demo4", 'value' => 12, 'placeholder' => '12'));
     $setting = new Zend_Form_Element_Select('setting');
     $setting->setAttribs(array('class' => 'form-control'));
     $setting_opt = array("" => $this->tr->translate("SELECT_SETTING"));
     $setting->setMultiOptions($setting_opt);
     $arrange = new Zend_Form_Element_Text('arrange');
     $arrange->setAttribs(array('class' => 'form-control'));
     $resize = new Zend_Form_Element_Text('resize');
     $resize->setAttribs(array('class' => 'form-control', 'id' => "resize", 'value' => 12, 'placeholder' => '12'));
     $note = new Zend_Form_Element_Textarea('note');
     $note->setAttribs(array('class' => 'form-control', 'style' => "margin-top: 0px; margin-bottom: 0px; height: 100px;"));
     $this->addElements(array($customer, $apply_to_company, $company, $current_balance, $second_language, $contact_name, $ytd_sale, $mobile, $credit, $customer_group, $active, $hold, $phone_2, $title, $address, $address_2, $city, $country, $fax, $fax_2, $email, $web, $format, $setting, $arrange, $resize, $note));
     return $this;
 }
开发者ID:TheTypoMaster,项目名称:restaurant168,代码行数:72,代码来源:FrmCustomer.php

示例11: FrmLocation

 public function FrmLocation($data = null)
 {
     $item_code = new Zend_Form_Element_Select('item_code');
     $item_code->setAttribs(array('class' => 'form-control'));
     $item_code_opt = array("1" => $this->tr->translate("..."), "2" => $this->tr->translate("..."));
     $item_code->setMultiOptions($item_code_opt);
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $qty_handow = new Zend_Form_Element_Text('qty_handow');
     $qty_handow->setAttribs(array('class' => 'form-control'));
     $wherehouse_id = new Zend_Form_Element_Select('wherehouse_id');
     $wherehouse_id->setAttribs(array('class' => 'form-control'));
     $wherehouse_id_opt = array("1" => $this->tr->translate("..."), "2" => $this->tr->translate("..."));
     $wherehouse_id->setMultiOptions($wherehouse_id_opt);
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $handow = new Zend_Form_Element_Text('handow');
     $handow->setAttribs(array('class' => 'form-control'));
     $company = new Zend_Form_Element_Select('company');
     $company->setAttribs(array('class' => 'form-control'));
     $company_opt = array("1" => $this->tr->translate("SELECT_COMPANY"), "2" => $this->tr->translate("SELECT_COMPANY_NAME"));
     $company->setMultiOptions($company_opt);
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $corent_brand = new Zend_Form_Element_Text('corent_brand');
     $corent_brand->setAttribs(array('checked' => 'checked', 'class' => 'form-control'));
     $secont_language = new Zend_Form_Element_Text('secont_language');
     $secont_language->setAttribs(array('checked' => 'checked', 'class' => 'form-control'));
     if ($data != null) {
     }
     $allowcate = new Zend_Form_Element_Text('allowcate');
     $allowcate->setAttribs(array('class' => 'form-control'));
     $allow_so = new Zend_Form_Element_Text('allow_so');
     $allow_so->setAttribs(array('class' => 'form-control'));
     $qty_available = new Zend_Form_Element_Text('qty_available');
     $qty_available->setAttribs(array('class' => 'form-control'));
     $product_id = new Zend_Form_Element_Select('product_id');
     $product_id->setAttribs(array('class' => 'form-control'));
     $product_opt = array("1" => $this->tr->translate(""), "2" => $this->tr->translate(""));
     $product_id->setMultiOptions($product_opt);
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $background = new Zend_Form_Element_Text('background');
     $background->setAttribs(array('class' => 'form-control'));
     $stock_unit_id = new Zend_Form_Element_Select('stock_unit_id');
     $stock_unit_id->setAttribs(array('class' => 'form-control'));
     $stock_opt = array("1" => $this->tr->translate(""), "2" => $this->tr->translate(""));
     $stock_unit_id->setMultiOptions($stock_opt);
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $background1 = new Zend_Form_Element_Text('background1');
     $background1->setAttribs(array('class' => 'form-control'));
     $puchase_id = new Zend_Form_Element_Select('puchase_id');
     $puchase_id->setAttribs(array('class' => 'form-control'));
     $puchase_opt = array("1" => $this->tr->translate(""), "2" => $this->tr->translate(""));
     $puchase_id->setMultiOptions($puchase_opt);
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $background2 = new Zend_Form_Element_Text('background2');
     $background2->setAttribs(array('class' => 'form-control'));
     $part_number = new Zend_Form_Element_Text('part_number');
     $part_number->setAttribs(array('class' => 'form-control'));
     $sale_id = new Zend_Form_Element_Select('sale_id');
     $sale_id->setAttribs(array('class' => 'form-control'));
     $puchase_opt = array("1" => $this->tr->translate(""), "2" => $this->tr->translate(""));
     $sale_id->setMultiOptions($puchase_opt);
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $background3 = new Zend_Form_Element_Text('background3');
     $background3->setAttribs(array('class' => 'form-control'));
     $load_time = new Zend_Form_Element_Text('demo3');
     $load_time->setAttribs(array('class' => 'form-control', 'id' => 'demo3'));
     $order_poin = new Zend_Form_Element_Text('demo3');
     $order_poin->setAttribs(array('class' => 'form-control', 'id' => 'demo3'));
     $order_qty = new Zend_Form_Element_Text('demo3');
     $order_qty->setAttribs(array('class' => 'form-control', 'id' => 'demo3'));
     $order_qty2 = new Zend_Form_Element_Text('demo3');
     $order_qty2->setAttribs(array('class' => 'form-control', 'id' => 'demo3'));
     $standart_cost = new Zend_Form_Element_Text('demo3');
     $standart_cost->setAttribs(array('class' => 'form-control', 'id' => 'demo3'));
     $ptd_usage_value = new Zend_Form_Element_Text('ptd_usage_value');
     $ptd_usage_value->setAttribs(array('class' => 'form-control'));
     $qty_onhand = new Zend_Form_Element_Text('demo3');
     $qty_onhand->setAttribs(array('class' => 'form-control', 'id' => 'demo3'));
     $ptd_usage_qty = new Zend_Form_Element_Text('ptd_usage_qty');
     $ptd_usage_qty->setAttribs(array('class' => 'form-control'));
     $average_cost = new Zend_Form_Element_Text('average_cost');
     $average_cost->setAttribs(array('class' => 'form-control'));
     $ptd_sale_value = new Zend_Form_Element_Text('ptd_sale_value');
     $ptd_sale_value->setAttribs(array('class' => 'form-control'));
     $last_receive_date = new Zend_Form_Element_Text('last_receive_date');
     $last_receive_date->setAttribs(array('class' => 'form-control'));
     $ptd_sale_qty = new Zend_Form_Element_Text('ptd_sale_qty');
     $ptd_sale_qty->setAttribs(array('class' => 'form-control'));
     $last_sale_date = new Zend_Form_Element_Text('last_sale_date');
     $last_sale_date->setAttribs(array('class' => 'form-control'));
     $last_count_date = new Zend_Form_Element_Text('last_count_date');
     $last_count_date->setAttribs(array('class' => 'form-control'));
     $last_order_date = new Zend_Form_Element_Text('last_order_date');
     $last_order_date->setAttribs(array('class' => 'form-control'));
//.........这里部分代码省略.........
开发者ID:TheTypoMaster,项目名称:restaurant168,代码行数:101,代码来源:FrmLocation.php

示例12: FrmTable

 public function FrmTable($data = null)
 {
     $menu_code = new Zend_Form_Element_Text('group_code');
     $menu_code->setAttribs(array('class' => 'form-control', 'required' => 'true', 'onkeyup' => 'displayPhoto()'));
     $description = new Zend_Form_Element_Text('description');
     $description->setAttribs(array('class' => 'form-control', 'onkeyup' => 'displayPhoto()'));
     $lang_1 = new Zend_Form_Element_Text('lang_1');
     $lang_1->setAttribs(array('class' => 'form-control', 'onkeyup' => 'displayPhoto()'));
     $font_color = new Zend_Form_Element_text('font_color');
     $font_color->setAttribs(array('class' => 'colorpicker-default form-control', 'onclick' => 'displayPhoto()'));
     $lang_2 = new Zend_Form_Element_Text('lang_2');
     $lang_2->setAttribs(array('checked' => 'checked', 'class' => 'form-control', 'onkeyup' => 'displayPhoto()'));
     $lang_3 = new Zend_Form_Element_Text('lang_3');
     $lang_3->setAttribs(array('checked' => 'checked', 'class' => 'form-control'));
     if ($data != null) {
         // 			print_r($data);
     }
     $db = new Application_Model_DbTable_DbGlobal();
     $show_description = new Zend_Form_Element_Select('show_description');
     $show_description->setAttribs(array('class' => 'form-control', 'required' => 'true', 'onchange' => 'displayPhoto()'));
     $opt = $db->getVewOptoinTypeByType(1, 1, null, 1);
     $show_description->setMultiOptions($opt);
     $apply_to = new Zend_Form_Element_Select('apply_to_company');
     $apply_to->setAttribs(array('class' => 'form-control'));
     $otp = array('0' => 'apply to company', '1' => 'A', '2' => 'B', '3' => 'C');
     $apply_to->setMultiOptions($otp);
     $photo = new Zend_Form_Element_File('photo');
     $backgroun_color = new Zend_Form_Element_Text('backgroun_color');
     $backgroun_color->setAttribs(array('class' => 'colorpicker-rgba form-control', 'onclick' => 'displayPhoto()'));
     $font_site = new Zend_Form_Element_text('font_size');
     $font_site->setAttribs(array('class' => ' spinner-input form-control', 'onkeyup' => 'displayPhoto()', 'onclick' => 'displayPhoto()'));
     $font_site->setValue(18);
     $apply = new Zend_Form_Element_Select('apply');
     $apply->setAttribs(array('class' => 'form-control'));
     $apply_opt = array("" => $this->tr->translate("SELECT_APPLY_TO_COMPANY"));
     $apply->setMultiOptions($apply_opt);
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $active = new Zend_Form_Element_Checkbox('active');
     $active->setAttribs(array('class' => 'checker', 'checked' => 'checked'));
     $format = new Zend_Form_Element_Text('demo4');
     $format->setAttribs(array('class' => 'form-control', 'id' => "demo4", 'value' => 12, 'placeholder' => '12'));
     $setting = new Zend_Form_Element_Select('setting');
     $setting->setAttribs(array('class' => 'form-control'));
     $setting_opt = array("" => $this->tr->translate("SELECT_SETTING"));
     $setting->setMultiOptions($setting_opt);
     $arrange = new Zend_Form_Element_Text('arrange');
     $arrange->setAttribs(array('class' => 'form-control'));
     $resize = new Zend_Form_Element_Text('resize');
     $resize->setAttribs(array('class' => 'form-control', 'id' => "resize", 'value' => 12, 'placeholder' => '12'));
     $note = new Zend_Form_Element_Textarea('note');
     $note->setAttribs(array('class' => 'form-control', 'style' => "margin-top: 0px; margin-bottom: 0px; height: 100px;"));
     $location = new Zend_Form_Element_Textarea('location');
     $location->setAttribs(array('class' => 'form-control', 'style' => "margin-top: 0px; margin-bottom: 0px; height: 100px;"));
     $photo = new Zend_Form_Element_File('photo');
     $id = new Zend_Form_Element_Hidden('id');
     if ($data != null) {
         //print_r($data);exit();
         $dbs = $id->setValue($data['id']);
         $menu_code->setValue($data['CODE']);
         $description->setValue($data['description']);
         $lang_1->setValue($data['lang1']);
         $lang_2->setValue($data['lang2']);
         $show_description->setValue($data['display_by']);
         $apply_to->setValue($data['compid']);
         $note->setValue($data['note']);
         $backgroun_color->setValue($data['background_color']);
         $font_color->setValue($data['font_color']);
         $font_site->setValue($data['font_size']);
         $active->setValue($data['status']);
         $id->setValue($data['id']);
     }
     $this->addElements(array($id, $photo, $location, $apply, $active, $combo, $menu_code, $description, $lang_1, $lang_2, $apply_to, $show_description, $backgroun_color, $font_color, $font_site, $format, $setting, $arrange, $resize, $note));
     return $this;
 }
开发者ID:TheTypoMaster,项目名称:restaurant168,代码行数:75,代码来源:FrmTableGroup.php

示例13: frm_stock_adjustment

 public function frm_stock_adjustment($data = null)
 {
     $harehoust_id = new Zend_Form_Element_Text('harehoust_id');
     $harehoust_id->setAttribs(array('class' => 'form-control'));
     $har_id = new Zend_Form_Element_Text('har_id');
     $har_id->setAttribs(array('class' => 'form-control', 'readonly' => 'true'));
     $date = new Zend_Form_Element_Text('date');
     $date->setAttribs(array('class' => 'form-control date-picker'));
     $date->setValue(date('Y-m-d'));
     $totale_re = new Zend_Form_Element_Text('totale_re');
     $totale_re->setAttribs(array('class' => 'form-control'));
     $last_re = new Zend_Form_Element_Text('last_re');
     $last_re->setAttribs(array('class' => 'form-control'));
     $percending = new Zend_Form_Element_Text('percending');
     $percending->setAttribs(array('class' => 'form-control'));
     $amount = new Zend_Form_Element_Text('amount');
     $amount->setAttribs(array('class' => 'form-control'));
     $supplier_id = new Zend_Form_Element_Text('supplier_id ');
     $supplier_id->setAttribs(array('class' => 'form-control'));
     $session = new Zend_Form_Element_Text('session');
     $session->setAttribs(array('class' => 'form-control', 'readonly' => true));
     $item_code = new Zend_Form_Element_Text('item_code');
     $item_code->setAttribs(array('class' => 'form-control'));
     $barcode = new Zend_Form_Element_Text('barcode');
     $barcode->setAttribs(array('class' => 'form-control'));
     $adjus_factor = new Zend_Form_Element_Text('adjus_factor');
     $adjus_factor->setAttribs(array('class' => 'form-control'));
     $adjus_factor = new Zend_Form_Element_Text('adjus_factor');
     $adjus_factor->setAttribs(array('class' => 'form-control'));
     $on_hand = new Zend_Form_Element_Text('on_hand');
     $on_hand->setAttribs(array('class' => 'form-control'));
     $on_hands = new Zend_Form_Element_Text('on_hands');
     $on_hands->setAttribs(array('class' => 'form-control'));
     $adjus_factors = new Zend_Form_Element_Text('adjus_factors');
     $adjus_factors->setAttribs(array('class' => 'form-control'));
     $item_codes = new Zend_Form_Element_Text('item_codes');
     $item_codes->setAttribs(array('class' => 'form-control', 'readonly' => true));
     $radio = new Zend_Form_Element_Radio('radio');
     $radio->setAttribs(array('class' => 'form-control', 'style' => "position: absolute; top: -10%; left: -10%; display: block; width: 120%; \r\n\t\t\t\theight: 120%; margin: 0px; padding: 0px; background: none repeat scroll 0% 0% rgb(255, 255, 255); border: 0px none; opacity: 0;"));
     $referent = new Zend_Form_Element_Text('referent');
     $referent->setAttribs(array('class' => 'form-control'));
     $lang_1 = new Zend_Form_Element_Text('lang_1');
     $lang_1->setAttribs(array('class' => 'form-control'));
     $lang_2 = new Zend_Form_Element_Text('lang_2');
     $lang_2->setAttribs(array('checked' => 'checked', 'class' => 'form-control'));
     $lang_3 = new Zend_Form_Element_Text('lang_3');
     $lang_3->setAttribs(array('checked' => 'checked', 'class' => 'form-control'));
     if ($data != null) {
         // 			print_r($data);
     }
     $show_description = new Zend_Form_Element_Select('show_description');
     $show_description->setAttribs(array('class' => 'form-control'));
     $description_opt = array("" => $this->tr->translate("SELECT_DESCRIPTION"));
     $show_description->setMultiOptions($description_opt);
     $photo = new Zend_Form_Element_File('photo');
     $background = new Zend_Form_Element_Text('background');
     $background->setAttribs(array('class' => 'form-control color-picker-rgba'));
     $font_color = new Zend_Form_Element_Text('font_color');
     $font_color->setAttribs(array('class' => 'form-control', 'id' => "selected-color1"));
     $demo_time = new Zend_Form_Element_Text('demo_time');
     $demo_time->setAttribs(array('class' => 'form-control', 'id' => "demo3", 'value' => 12, 'placeholder' => '0'));
     $font_size = new Zend_Form_Element_Text('demo3');
     $font_size->setAttribs(array('class' => 'form-control', 'id' => "demo3", 'value' => 12, 'placeholder' => '12'));
     $apply = new Zend_Form_Element_Select('apply');
     $apply->setAttribs(array('class' => 'form-control'));
     $apply_opt = array("" => $this->tr->translate("SELECT_APPLY_TO_COMPANY"));
     $apply->setMultiOptions($apply_opt);
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $active = new Zend_Form_Element_Checkbox('active');
     $active->setAttribs(array('class' => 'red'));
     $format = new Zend_Form_Element_Text('demo4');
     $format->setAttribs(array('class' => 'form-control', 'id' => "demo4", 'value' => 12, 'placeholder' => '12'));
     $setting = new Zend_Form_Element_Select('setting');
     $setting->setAttribs(array('class' => 'form-control'));
     $arrange = new Zend_Form_Element_Text('arrange');
     $arrange->setAttribs(array('class' => 'form-control'));
     $resize = new Zend_Form_Element_Text('resize');
     $resize->setAttribs(array('class' => 'form-control', 'id' => "resize", 'value' => 12, 'placeholder' => '12'));
     $note = new Zend_Form_Element_Textarea('note');
     $note->setAttribs(array('class' => 'form-control', 'style' => "margin-top: 0px; margin-bottom: 0px; height: 100px;"));
     $this->addElements(array($on_hands, $on_hand, $adjus_factor, $adjus_factors, $barcode, $harehoust_id, $har_id, $date, $totale_re, $last_re, $percending, $amount, $demo_time, $item_codes, $radio, $session, $supplier_id, $apply, $active, $combo, $item_code, $referent, $lang_1, $lang_2, $lang_3, $show_description, $background, $font_color, $font_size, $format, $setting, $arrange, $resize, $note));
     return $this;
 }
开发者ID:TheTypoMaster,项目名称:restaurant168,代码行数:84,代码来源:FrmStockAdjustment.php

示例14: FrmRegistarWU

 public function FrmRegistarWU($data = null)
 {
     $_degree = $this->_degree;
     $_khname = $this->_khname;
     $_enname = $this->_enname;
     $_phone = $this->_phone;
     $_batch = $this->_batch;
     $_year = $this->_year;
     $_session = $this->_session;
     $_dob = $this->_dob;
     $_pay_date = $this->_pay_date;
     $_remark = $this->_remark;
     $_dob->setValue(date("Y-m-d"));
     $_invoice_no = new Zend_Dojo_Form_Element_TextBox('reciept_no');
     $_invoice_no->setAttribs(array('dojoType' => $this->tvalidate, 'class' => 'fullside', 'required' => 'true', 'class' => 'fullside'));
     $rs_metion_opt = Application_Model_DbTable_DbGlobal::getAllMention();
     $metion = new Zend_Dojo_Form_Element_FilteringSelect('metion');
     $metion->setAttribs(array('dojoType' => $this->filter, 'class' => 'fullside', 'onchange' => 'getTuitionFee();'));
     $metion->setMultiOptions($rs_metion_opt);
     $_new_student = new Zend_Form_Element_Checkbox('is_new');
     $_new_student->setAttribs(array('dojoType' => "dijit.form.CheckBox", 'class' => 'fullside', 'Onchange' => "getNewStudent();"));
     $_is_hold = new Zend_Form_Element_Checkbox('is_hold');
     $_is_hold->setAttribs(array('dojoType' => "dijit.form.CheckBox", 'class' => 'fullside'));
     //$_is_hold->setValue(1);
     $_year_one = new Zend_Dojo_Form_Element_TextBox('is_year_one');
     $_year_one->setAttribs(array('dojoType' => "dijit.form.CheckBox", 'class' => 'fullside', 'Onchange' => "getNewStudent();"));
     $_studid = new Zend_Dojo_Form_Element_TextBox('stu_id');
     $_studid->setAttribs(array('dojoType' => $this->text, 'class' => 'fullside'));
     $_sex = new Zend_Dojo_Form_Element_FilteringSelect('sex');
     $_sex->setAttribs(array('dojoType' => $this->filter, 'class' => 'fullside'));
     $sex_opt = array(1 => $this->tr->translate("MALE"), 2 => $this->tr->translate("FEMALE"));
     $_sex->setMultiOptions($sex_opt);
     $_db = new Application_Model_DbTable_DbGlobal();
     $rows = $_db->getAllFecultyName();
     $opt = '';
     //array(-1=>$this->tr->translate("SELECT_DEPT"));
     if (!empty($rows)) {
         foreach ($rows as $row) {
             $opt[$row['dept_id']] = $row['en_name'];
         }
     }
     $_dept = new Zend_Dojo_Form_Element_FilteringSelect("dept");
     $_dept->setMultiOptions($opt);
     $_dept->setAttribs(array('dojoType' => $this->filter, 'required' => 'true', 'class' => 'fullside', 'onchange' => 'changeMajor();'));
     $opt_marjor = array(-1 => $this->tr->translate("SELECT_MAJOR"));
     $_major = new Zend_Dojo_Form_Element_FilteringSelect("major");
     $_major->setAttribs(array('dojoType' => $this->filter, 'required' => 'true', 'class' => 'fullside'));
     $_term = new Zend_Dojo_Form_Element_FilteringSelect("payment_term");
     $opt_term = $_db->getAllPaymentTerm();
     // 		  $opt_term = array(
     // 		  		1=>$this->tr->translate('QUARTER'),
     // 		  		2=>$this->tr->translate('SEMESTER'),
     // 		  		3=>$this->tr->translate('YEAR'),
     // 		  		4=>$this->tr->translate('OTHER')
     // 		  );
     $_term->setMultiOptions($opt_term);
     $_term->setAttribs(array('dojoType' => $this->filter, 'required' => 'true', 'class' => 'fullside', 'onchange' => 'getTuitionFee();'));
     $_fee = new Zend_Dojo_Form_Element_NumberTextBox('tuitionfee');
     $_fee->setAttribs(array('dojoType' => $this->t_num, 'required' => 'true', 'class' => 'fullside', 'onkeyup' => 'CheckAmount();'));
     $_disc = new Zend_Dojo_Form_Element_NumberTextBox('discount');
     $_disc->setAttribs(array('dojoType' => $this->text, 'class' => 'fullside', 'onkeyup' => 'CheckAmount();'));
     $_disc->setValue(0);
     $_paid = new Zend_Dojo_Form_Element_NumberTextBox('payment_paid');
     $_paid->setAttribs(array('dojoType' => $this->t_num, 'required' => 'true', 'class' => 'fullside'));
     $_paid_kh = new Zend_Dojo_Form_Element_Textarea('paid_kh');
     $_paid_kh->setAttribs(array('dojoType' => $this->text, 'class' => 'fullside'));
     $this->addElements(array($_year_one, $_new_student, $_invoice_no, $_pay_date, $_khname, $_enname, $_studid, $_sex, $_dob, $_degree, $metion, $_phone, $_dept, $_major, $_batch, $_year, $_session, $_term, $_fee, $_disc, $_paid, $_paid_kh, $_remark, $_is_hold));
     return $this;
 }
开发者ID:Bornpagna,项目名称:guesehouse,代码行数:69,代码来源:FrmRegister.php

示例15: getCheckBox

 public function getCheckBox($id, $value = "", $elementequired = false)
 {
     $element = new Zend_Form_Element_Checkbox($id);
     $element->removeDecorator('HtmlTag');
     $element->removeDecorator('DtDdWrapper');
     $element->removeDecorator('Label');
     $element->setValue($value);
     if ($elementequired) {
         $element->setAttribs(array('class' => 'validate[required]'));
     }
     return $element;
 }
开发者ID:pingitgroup,项目名称:stockpingitgroup,代码行数:12,代码来源:FrmElementGlobal.php


注:本文中的Zend_Form_Element_Checkbox::setAttribs方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。