✏️ 正在编辑: PreCadastroProposta.php
路径:
/srv/systems_dir/yuppiecred/application/forms/PreCadastroProposta.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_PreCadastroProposta extends Core_Form { public function init() { $this->setName('f_pre_cadastro'); $this->addElement('hidden', 'id', array( 'class' => 'invisivel' )); $this->addElement('select', 'empresa_id', array( 'label' => 'Empresa:', 'required' => true, 'multiOptions' => Core_Combos::getEmpresasOptions() )); $this->addElement('select', 'banco_id', array( 'label' => 'Banco:', 'required' => true, 'multiOptions' => Core_Combos::getBancosOptions() )); $this->addElement('select', 'corretor_id', array( 'label' => 'Corretor:', 'required' => true, 'multiOptions' => Core_Combos::getCorretoresOptions(true) )); $this->addElement('text', 'cpf', array( 'label' => 'CPF:', 'required' => true, 'onkeypress' => 'mascara(this, fcpf)', 'maxlength' => 14, 'validators' => array( new Validators_Cpf() ) )); $this->addElement('text', 'nome', array( 'label' => 'Nome:', 'required' => true )); $this->addElement('text', 'prazo', array( 'label' => 'Prazo:' )); $this->addElement('text', 'valor_bruto', array( 'label' => 'Valor bruto:', 'onkeypress' => 'mascara(this, mvalor)', 'maxlength' => 14 )); $this->addElement('text', 'valor_liquido', array( 'label' => 'Valor líquido:', 'onkeypress' => 'mascara(this, mvalor)', 'maxlength' => 14 )); $this->addElement(Form_DatePicker::getDatePicker('data_emissao', 'Data Emissão:', date('d/m/Y'), true)); $select = new Zend_Form_Element_Select('tipo'); $select->setLabel('Tipo:') ->addMultiOptions(Core_Combos::getTiposProdutosOptions()); $this->addElement($select); // $this->addElement(Form_DatePicker::getDatePicker('data_digitacao', // 'Data Digitação:', null, false)); $this->addElement('button', 'btn_back', array( 'label' => 'Voltar', 'class' => 'bt_back', 'onclick' => "window.location='" . $this->getView()->baseUrl() . "/proposta'" )); $this->addElement('submit', 'btn_save', array( 'label' => 'Salvar', 'class' => 'bt_save' )); $this->addElement('button', 'btn_new', array( 'label' => 'Novo Cadastro', 'class' => 'bt_new', 'onclick' => "window.location='" . $this->getView()->baseUrl() . "/proposta/pre-cadastro'" )); $this->addDisplayGroup(array( 'btn_back', 'btn_save', 'btn_new', 'btn_new_contrato' ), 'buttons'); } }
💾 保存文件
← 返回文件管理器