✏️ 正在编辑: FaixaProducaoCorretor.php
路径:
/srv/systems_dir/yuppiecred-bkp/application/forms/FaixaProducaoCorretor.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_FaixaProducaoCorretor extends Core_Form { public function init() { $grupo = Yuppie_Auth::getIdentity()->grupo; if($grupo <> 'Corretor'){ $select = new Zend_Form_Element_Select('gerente_id'); $select->setLabel('Supervisor:') ->setAttrib('onchange', "populateComboRotas('gerente_id', 'rota_id')") ->addMultiOptions(Core_Combos::getSupervisoresOptions()); $this->addElement($select); $select = new Zend_Form_Element_Select('rota_id'); $select->setLabel('Rota:') ->setAttrib('style', "width: 70%;") ->setAttrib('onchange', "populateComboCorretoresByRota(this.id, 'corretor_id')") ->addMultiOptions(Core_Combos::getRotasOptions()); $this->addElement($select); $select = new Zend_Form_Element_Multiselect('corretor_id'); $select->setLabel('Corretor: ') ->setAttrib('class', 'multiselect') ->setRequired(true) ->addMultiOptions(array_filter(Core_Combos::getCorretoresOptions())) ->setRegisterInArrayValidator(false); $this->addElement($select); } $bancos = new Zend_Form_Element_Select('banco_id'); $bancos->setLabel('Banco: ') ->addMultiOptions(Core_Combos::getBancosOptions()); $this->addElement($bancos); $this->addElement(Form_DatePicker::getDatePicker('data_inicial', 'Data inicial:', null, true)); $this->getElement('data_inicial')->setAttrib('required','true'); $this->addElement(Form_DatePicker::getDatePicker('data_final', 'Data final:', null, true)); $this->getElement('data_final')->setAttrib('required','true'); $this->addElement('submit', 'btn_save', array( 'label' => 'Buscar', 'class' => 'bt_find' )); } }
💾 保存文件
← 返回文件管理器