✏️ 正在编辑: ContratosDigitacaoAutomatica.php
路径:
/srv/systems_dir/yuppiecred-lidernegocios/application/forms/Filtro/ContratosDigitacaoAutomatica.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_Filtro_ContratosDigitacaoAutomatica extends Core_Form { public function init() { $this->setMethod('post'); $this->setAttrib('autocomplete', 'off'); $select = new Zend_Form_Element_Select('convenio_id'); $select->setLabel('Convênio:') ->addMultiOptions(Core_Combos::getConveniosDigitacaoAutomaticaOptions()) ->setAttrib('class', "comboautocomplete") ->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )) ->setRequired(true); $this->addElement($select); $select = new Zend_Form_Element_Multiselect('status_proposta[]'); $select->setLabel('Status:') ->setAttrib('class', 'multiselect') ->addMultiOptions(Core_Combos::getStatusOptions()); $this->addElement($select); $this->addElement('select', 'banco_id', array( 'label' => 'Banco:', 'multiOptions' => Core_Combos::getBancosOptions(), )); $this->getElement('banco_id')->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $select = new Zend_Form_Element_Multiselect('tipo_contrato'); $select->setLabel('Tipo Contrato:') ->setAttrib('class', 'tipo_contrato-multiselect') ->addMultiOptions(array_filter(Core_Combos::getTiposProdutosOptions())); $this->addElement($select); $select = new Zend_Form_Element_Multiselect('corretor_id[]'); $select->setLabel('Corretor:') ->setAttrib('class', 'multiselect') ->addMultiOptions(array_filter(Core_Combos::getCorretoresOptions(true))) ->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->addElement($select); $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_liberacao_de', 'Data Liberação de:')); $this->addElement(Form_DatePicker::getDatePicker('data_liberacao_a', 'a:')); $this->getElement('data_liberacao_de')->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->addElement('select', 'tipo_formalizacao', [ 'label' => 'Tipo Formalização:', 'multiOptions' => [ '' => '', '-1' => 'Físico', '1' => 'Digital', ] ]); $this->getElement('tipo_formalizacao')->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->_initButtons(); $this->_setDefaultDecorators(); } protected function _initButtons() { $this->addElement('submit', 'btn_filtrar', array( 'label' => 'Buscar', 'class' => 'bt_find' )); $this->addElement('button', 'reset', array( 'label' => 'Limpar filtros', 'onclick' => 'resetElements(this.form)' )); $this->addElement('button', 'view_esteira', array( 'label' => 'Visualizar Esteira', 'class' => 'bt_sincronizar', 'onclick' => "window.location='". $this->getView()->url(['controller' => 'contrato', 'action' => 'view-esteira-digitacao'], null, true) . "'" )); $this->addDisplayGroup(array('btn_filtrar', 'reset', 'view_esteira'), 'buttons'); } protected function _setDefaultDecorators() { $this->setDecorators( array( 'FormElements', array( 'HtmlTag', array( 'tag' => 'dl', 'class' => 'filtro_contrato' ) ), 'Form' )); } }
💾 保存文件
← 返回文件管理器