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


PHP Zend_Form_Element_Button::setAttribs方法代码示例

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


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

 public function FrmSupplier($data = null)
 {
     $supplier_id = new Zend_Form_Element_Text('supplier_id');
     $supplier_id->setAttribs(array('class' => 'form-control'));
     $inactive = new Zend_Form_Element_Checkbox('inactive');
     $inactive->setAttribs(array('class' => 'red'));
     $deactive = new Zend_Form_Element_Checkbox('deactive');
     $deactive->setAttribs(array('class' => 'red'));
     $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) {
     }
     $open_po = new Zend_Form_Element_Select('open_po');
     $open_po->setAttribs(array('class' => 'form-control'));
     $open_opt = array("1" => $this->tr->translate("..."));
     $open_po->setMultiOptions($open_opt);
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $contact_name = new Zend_Form_Element_Select('contact_name');
     $contact_name->setAttribs(array('class' => 'form-control'));
     $contact_opt = array("1" => $this->tr->translate("..."));
     $contact_name->setMultiOptions($contact_opt);
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $ytd_purchase = new Zend_Form_Element_Text('ytd_purchase');
     $ytd_purchase->setAttribs(array('class' => 'form-control', 'id' => "selected-color1"));
     $edit = new Zend_Form_Element_Button('edit');
     $edit->setAttribs(array('class' => 'red'));
     $website_phone = new Zend_Form_Element_Select('website_phone');
     $website_phone->setAttribs(array('class' => 'form-control'));
     $website_opt = array("1" => $this->tr->translate("..."));
     $website_phone->setMultiOptions($website_opt);
     $combo = new Zend_Form_Element_Checkbox('combo');
     $combo->setAttribs(array('class' => 'red'));
     $available_credite = new Zend_Form_Element_Text('available_credite');
     $available_credite->setAttribs(array('class' => 'form-control red'));
     $background = new Zend_Form_Element_Text('background');
     $background->setAttribs(array('class' => 'form-control red'));
     $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;"));
     $phone2 = new Zend_Form_Element_Text('phone2');
     $phone2->setAttribs(array('class' => 'form-control red'));
     $title = new Zend_Form_Element_Text('title');
     $title->setAttribs(array('class' => 'form-control red'));
     $address1 = new Zend_Form_Element_Text('address1');
     $address1->setAttribs(array('class' => 'form-control red'));
     $address2 = new Zend_Form_Element_Text('address2');
     $address2->setAttribs(array('class' => 'form-control red'));
     $city = new Zend_Form_Element_Text('city');
     $city->setAttribs(array('class' => 'form-control red'));
     $country = new Zend_Form_Element_Text('country');
     $country->setAttribs(array('class' => 'form-control red'));
     $fax = new Zend_Form_Element_Text('fax');
     $fax->setAttribs(array('class' => 'form-control red'));
     $fax2 = new Zend_Form_Element_Text('fax2');
     $fax2->setAttribs(array('class' => 'form-control red'));
     $email = new Zend_Form_Element_Text('email');
     $email->setAttribs(array('class' => 'form-control red'));
     $webpage = new Zend_Form_Element_Text('webpage');
     $webpage->setAttribs(array('class' => 'form-control red'));
     $this->addElements(array($combo, $supplier_id, $inactive, $deactive, $company, $corent_brand, $secont_language, $open_po, $contact_name, $background, $ytd_purchase, $edit, $available_credite, $website_phone, $resize, $note, $phone2, $title, $address1, $address2, $city, $country, $fax, $fax2, $email, $webpage));
     return $this;
 }
开发者ID:TheTypoMaster,项目名称:restaurant168,代码行数:73,代码来源:FrmSupplier.php


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