✏️ 正在编辑: ComissoesCorretor.php
路径:
/srv/systems_dir/yuppiecred-bkp/application/forms/Filtro/ComissoesCorretor.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_Filtro_ComissoesCorretor extends Zend_Form { public function init() { $this->setMethod('post'); $this->setName('f_comissoes_corretor'); $this->setAttrib('autocomplete', 'off'); $this->setAttrib('class', 'comissao-ajax'); $select = new Zend_Form_Element_Select('banco_id'); $select->setLabel('Banco:') ->addMultiOptions(Core_Combos::getBancosOptions()); $this->addElement($select); $select = new Zend_Form_Element_Select('convenio_id'); $select->setLabel('Convênio:') ->setAttrib('onchange', "populateComboTabelas(this.id, 'tabela_id', 'banco_id')") ->addMultiOptions(Core_Combos::getConveniosOptions()); $this->addElement($select); $select = new Zend_Form_Element_Select('tabela_id'); $select->setLabel('Tabela:') ->addMultiOptions(Core_Combos::getTabelasOptions()); $this->addElement($select); $select = new Zend_Form_Element_Select('ordem'); $select->setLabel('Ordenar:') ->addMultiOptions(array( 'id ASC' => '', 'comissao DESC' => 'Comissões mais altas' )); $this->addElement('text', 'prazo', array( 'label' => 'Prazo:', 'onkeypress' => 'mascara(this, soNumeros)', 'size' => 10, 'maxlength' => 3 )); $select = new Zend_Form_Element_Multiselect('tipo_contrato'); $select->setLabel('Tipo:') ->addMultiOptions(array_filter(Core_Combos::getTiposProdutosOptions())); $this->addElement($select); $this->addElement('select', 'base_comissao', array( 'label' => 'Base Comissão:', 'multiOptions' => array("" => "") + Core_Combos::getTipoComissaoValorOptions() )); $this->getElement('base_comissao') ->addDecorator('Label', array('tag' => 'dt', 'tagClass' => 'clear')); $this->getElement('base_comissao') ->addDecorator('Label', array('tag' => 'dt', 'tagClass' => 'clear')); if( Yuppie_Auth::getIdentity()->grupo != 'Corretor' ){ $select = new Zend_Form_Element_Select('corretor_id'); $select->setLabel('Corretor:') ->setRequired(true) ->addMultiOptions(Core_Combos::getCorretoresOptions()); $this->addElement($select); } $this->addElement('submit', 'btn_visualizar', array( 'label' => 'Buscar', 'class' => 'bt_find' )); $this->_setDefaultDecorators(); } protected function _setDefaultDecorators() { $this->setDecorators( array( 'FormElements', array( 'HtmlTag', array( 'tag' => 'dl', 'class' => 'filtro_rel_corretores' ) ), 'Form' )); } }
💾 保存文件
← 返回文件管理器