✏️ 正在编辑: Consistencias.php
路径:
/srv/systems_dir/yuppiecred-lidernegocios/application/forms/Filtro/Consistencias.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_Filtro_Consistencias extends Core_Form { public function init() { $this->setName('f_filtro_rel_consistencias'); $this->addElement('select', 'banco_id', array( 'label' => 'Banco:', 'multiOptions' => Core_Combos::getBancosOptions() )); $select = new Zend_Form_Element_Select('corretor_id'); $select->setLabel('Corretor:') ->addMultiOptions(Core_Combos::getCorretoresOptions(true)); $this->addElement($select); $this->addElement('select', 'resposta', array( 'label' => 'Situação: ', 'value' => '2', 'multiOptions' => array( '' => '', 1 => 'Resolvida', 2 => 'Não resolvida', 3 => 'Negada', ) )); $this->addElement('text', 'numero_contrato', array( 'label' => 'Nº contrato:', 'maxlength' => 14, 'size' => 14 )); $this->addElement('text', 'numero_ade', array( 'label' => 'Nº ADE:', 'maxlength' => 14, 'size' => 14 )); $this->addElement('submit', 'btn_filtrar', array( 'label' => 'Buscar', 'class' => 'bt_find', )); $this->addElement('button', 'btn_taxas', array( 'label' => 'Importar planilha', 'class' => 'bt_excel', 'onclick' => "window.location='" . $this->getView()->baseUrl('contrato/importar-consistencias') . "'" )); $this->addElement('hidden', 'tipo', array('value' => 2)); $this->_setDefaultDecorators(); } protected function _setDefaultDecorators() { $this->setDecorators( array( 'FormElements', array( 'HtmlTag', array( 'tag' => 'dl', 'class' => 'filtro_contrato' ) ), 'Form' )); } public function isValid($data) { $fields = array_filter($data); unset($fields['page']); $valid = parent::isValid($data); if( count($fields) <= 0 ){ return false; } return $valid; } }
💾 保存文件
← 返回文件管理器