✏️ 正在编辑: DigitacaoCapa.php
路径:
/srv/systems_dir/yuppiecred-lidernegocios/application/forms/DigitacaoCapa.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_DigitacaoCapa extends Core_Form { /** @var string[] */ public const REQUIREDS = [ "numero_contrato", "fone", "celular", "agencia_beneficiado", "banco_id", "conta_beneficiado", "cpf", "nome", "data_emissao", ]; public function init() { $this ->setName('f_digitacao_capa') ->addElementWith('numero_contrato', $this->getOptions('Número Contrato:', 20)) ->addElementWith('fone', $this->getOptions('Fone cliente:*', 15, 15, 'mascara(this, telefone)')) ->addElementWith('celular', $this->getOptions('Celular cliente:*', 15, 15, 'mascara(this, telefone)')) ->addElementWith('agencia_beneficiado', $this->getOptions('Agência do Beneficiado:*', 10)) ->addSelect('banco_id', 'Banco:*', Core_Combos::getBancosOptions()) ->addElementWith('conta_beneficiado', $this->getOptions('Conta do Beneficiado:*', 10)) ->addElementWith('cpf', $this->getOptions('CPF:*', null, 14, 'mascara(this, fcpf)')) ->addElementWith('nome', $this->getOptions('Nome:*')) ->addDateElement('data_emissao', 'Data Emissão:*') ->addElementWith('matricula', $this->getOptions('Matrícula:')) ->addElementWith('btn_save', $this->getOptions('Salvar', null, null, null, [] ,'bt_save'), 'submit') ->addElementWith('btn_new', $this->getOptions( 'Novo Cadastro', null, null, null, [], 'bt_new', "window.location='" . $this->getView()->baseUrl() . "/proposta/digitacao-capa'"), 'button') ; $file = new Zend_Form_Element_File('file_capa_contrato'); $file->setLabel('Anexar Capa do contrato:') ->setValueDisabled(false) ->addDecorator('Label', ['tag' => 'dt', 'tagClass' => 'clear']) ->addValidator('Size', false, '2MB') ->setAttrib('accept', 'image/*, .pdf'); $this->addElement($file); $this->addElement('hidden', 'empresa_id', ['class' => 'invisivel', 'value' => Yuppie_Auth::getIdentity()->empresa_id]); $this->getElement('banco_id')->addDecorator('Label', ['tag' => 'dt', 'tagClass' => 'clear']); $this->getElement('cpf')->addDecorator('Label', ['tag' => 'dt', 'tagClass' => 'clear']); $this->setRequireds(self::REQUIREDS); $this->addDisplayGroup(['btn_back', 'btn_save', 'btn_new', 'btn_new_contrato'], 'buttons'); } }
💾 保存文件
← 返回文件管理器