✏️ 正在编辑: PropostaEfetivacao.php
路径:
/srv/systems_dir/yuppiecred/application/forms/Filtro/PropostaEfetivacao.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_Filtro_PropostaEfetivacao extends Zend_Form { public function init() { $this->setMethod('post'); $this->setName('f_filtro_contrato'); $this->setAttrib('autocomplete', 'off'); $this->addElement('select', 'banco_id', array( 'label' => 'Banco:', 'multiOptions' => Core_Combos::getBancosOptions() )); $select = new Zend_Form_Element_Multiselect('digitado_banco'); $select->setLabel("Situação:") ->addMultiOptions(Core_Combos::getSituacaoDigitacaoProposta()) ->setAttrib('class', 'multiselect'); $this->addElement($select); $this->addElement('select', 'tipo_relatorio', [ 'label' => 'Tipo Relatório:', 'multiOptions' => [ '1' => 'Não efetivados', '2' => 'Efetivados', ] ]); $select = new Zend_Form_Element_Select('corretor_id'); $select->setLabel('Corretor:') ->addMultiOptions(Core_Combos::getCorretoresOptions(true)); $this->addElement($select); $this->addElement('text', 'id_corretor', array( 'label' => 'ID Corretor:', 'size' => 5, 'onkeypress' => 'mascara(this, soNumeros)' )); $this->addElement('select', 'convenio_id', array( 'label' => 'Convênio:', 'multiOptions' => Core_Combos::getConveniosOptions() )); $this->getElement('convenio_id') ->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->addElement(Form_DatePicker::getDatePicker('data_emissao_de', 'Data Emissão de:')); $this->addElement(Form_DatePicker::getDatePicker('data_emissao_a', 'a:')); $this->getElement('data_emissao_de') ->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->addElement(Form_DatePicker::getDatePicker('data_digitacao_de', 'Data Digitação de:')); $this->addElement(Form_DatePicker::getDatePicker('data_digitacao_a', 'a:')); $this->getElement('data_digitacao_de') ->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->_addButtons(); $this->_setDefaultDecorators(); } protected function _addButtons() { $this->addElement('submit', 'btn_filter', array( 'label' => 'Buscar', 'class' => 'bt_find', )); $this->addDisplayGroup([ 'btn_filter', ], 'buttons'); } protected function _setDefaultDecorators() { $this->setDecorators( array( 'FormElements', array( 'HtmlTag', array( 'tag' => 'dl', 'class' => 'filtro_contrato' ) ), 'Form' ) ); } }
💾 保存文件
← 返回文件管理器