✏️ 正在编辑: ComissoesCorretor.php
路径:
/srv/systems_dir/yuppiecred/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')") ->setAttrib('class', 'comboautocomplete') ->addMultiOptions(Core_Combos::getConveniosOptions()); $this->addElement($select); $select = new Zend_Form_Element_Select('tabela_id'); $select->setLabel('Tabela:') ->setRegisterInArrayValidator(false); $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($select); $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('text', 'especie', [ 'label' => 'Espécie:', 'onkeypress' => 'mascara(this, soNumeros)', 'size' => 10, 'maxlength' => 3 ]); $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 (!in_array(Yuppie_Auth::getIdentity()->grupo, ['Corretor', 'Afiliado']) && !Yuppie_Auth::getIdentity()->corretor_id) { $select = new Zend_Form_Element_Select('corretor_id'); $select->setLabel('Corretor / Indicador:') ->setRequired(true) ->addMultiOptions(Core_Combos::getCorretoresOptions(true)); $this->addElement($select); } $this->addElement('button', 'btn_visualizar', array( 'label' => 'Buscar', 'class' => 'bt_find', 'onclick' => 'initComissaoCorretor()' )); $this->_setDefaultDecorators(); } protected function _setDefaultDecorators() { $this->setDecorators( array( 'FormElements', array( 'HtmlTag', array( 'tag' => 'dl', 'class' => 'filtro_rel_corretores' ) ), 'Form' )); } }
💾 保存文件
← 返回文件管理器