✏️ 正在编辑: RegularizarPendencia.php
路径:
/srv/systems_dir/yuppiecred-bkp/application/forms/RegularizarPendencia.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_RegularizarPendencia extends Core_Form { public function init() { $this->addElement('select', 'tipo_documento', array( 'label' => 'Tipo documento:', 'required' => true, 'multiOptions' => array_filter(Core_Combos::getTipoContratoAnexoOptions(), function($option){ return $option != 'Formulário digitalizado'; }), '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'); // ->removeDecorator('Label'); $this->addElement($file); $this->addElement('button', 'btn_voltar', array( 'label' => 'Voltar', 'class' => 'bt_back', 'onclick' => "window.location='" . $this->getView()->baseUrl() . "/corretor/minhas-pendencias-fisico'" )); $this->addElement('submit', 'btn_importar', array( 'label' => 'Enviar', 'class' => 'bt_save' )); $this->getElement('btn_importar') ->setDecorators(array( new Zend_Form_Decorator_ViewHelper(), new Zend_Form_Decorator_Description(), new Zend_Form_Decorator_Errors(), new Zend_Form_Decorator_HtmlTag(array('tag' => 'dd')), new Zend_Form_Decorator_Label(array('tag' => 'dt', 'tagClass' => 'invisivel')), )); } }
💾 保存文件
← 返回文件管理器