✏️ 正在编辑: RegularizarConsistencia.php
路径:
/srv/systems_dir/yuppiecred/application/forms/RegularizarConsistencia.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_RegularizarConsistencia extends Core_Form { public function init() { $this->addElement('textarea', 'descricao', array( 'label' => 'Descrição:', 'required' => true, 'cols' => 30, 'rows' => 1, )); $this->addElement('select', 'tipo_documento', array( 'label' => 'Tipo documento:', 'required' => true, 'multiOptions' => array( 'IDENTIDADE (RG)', 'CPF', 'CONTRA-CHEQUE', 'FICHA CADASTRAL', 'BENEFÍCIO', 'COMPROVANTE DE RESIDÊNCIA', 'TERMO DE ADESÃO', 'AUTORIZAÇÃO DE SAQUE', 'ARROGO / TESTEMUNHA', ), 'style' => 'width: 100%;' )); $file = new Zend_Form_Element_File('arquivo'); $file->setLabel('Arquivo:') ->setRequired(true) ->addValidator('Size', false, '5MB') ->addValidator('Extension', false, 'png,jpg,jpeg,pdf,doc,docx'); $this->addElement($file); $this->_initButtons(); } protected function _initButtons() { $this->addElement('button', 'btn_back', array( 'label' => 'Voltar', 'class' => 'bt_back', 'onclick' => "window.location='" . $this->getView()->baseUrl() . "/corretor/minhas-consistencias'" )); $this->addElement('submit', 'btn_save', array( 'label' => 'Salvar', 'class' => 'bt_save' )); $this->addDisplayGroup(['btn_back', 'btn_save'], 'buttons'); } }
💾 保存文件
← 返回文件管理器