✏️ 正在编辑: Conta.php
路径:
/srv/systems_dir/yuppiecred/application/forms/Conta.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_Conta extends Core_Form { public function init() { $this->setName('f_save_conta'); $this->addElement('hidden', 'id', [ 'class' => 'invisivel' ]); $this->addElement('text', 'nome', [ 'label' => 'Nome:', 'size' => 35, 'required' => true ]); $this->addElement('select', 'empresa_id', [ 'label' => 'Empresa', 'multiOptions' => Core_Combos::getEmpresasOptions() ]); $this->addElement('select', 'banco_id', [ 'label' => 'Banco', 'class' => 'comboautocomplete', 'multiOptions' => Core_Combos::getBancosFebrabanOptions(), ]); $this->addElement('select', 'tipo', [ 'label' => 'Tipo', 'multiOptions' => array( "CORRENTE" => 'Corrente', "POUPANCA" => 'Poupança', "CAIXA" => 'Caixa Interno' ) ]); $this->addElement('text', 'agencia', [ 'label' => 'Agência', ]); $this->addElement('text', 'agencia_dv', [ 'label' => 'Agência DV', ]); $this->addElement('text', 'conta', [ 'label' => 'Conta', ]); $this->addElement('text', 'conta_dv', [ 'label' => 'Conta DV', ]); $this->addElement('text', 'convenio', [ 'label' => 'Convênio', ]); $this->addElement('select', 'folha_pagamento', [ 'label' => 'Folha Pagamento', 'multiOptions' => Core_Combos::getSimNaoOptions() ]); // $this->addElement('text', 'key_koruspay', [ // 'label' => 'Chave Koruspay', // ]); $this->addElement('file', 'pix_cert_file', [ 'label' => 'Certificado (.crt):', 'validators' => [ ['Size', false, '1MB'], // ['Extension', false, 'crt'] ] ]); $this->addElement('file', 'pix_key_file', [ 'label' => 'Chave (.key):', 'validators' => [ ['Size', false, '1MB'], // ['Extension', false, 'key'] ] ]); $this->_initButtons(); } protected function _initButtons() { $urlReturn = $this->getView()->url(['action' => 'index']); $this->addElement('button', 'btn_back', [ 'label' => 'Voltar', 'class' => 'bt_back', 'onclick' => "window.location='{$urlReturn}'" ]); $this->addElement('submit', 'btn_save', [ 'label' => 'Salvar', 'class' => 'bt_save' ]); $this->addElement('button', 'btn_new', [ 'label' => 'Novo Cadastro', 'class' => 'bt_new', 'onclick' => "window.location='" . $this->getView()->url(['action' => 'save']) . "'" ]); $this->addDisplayGroup(['btn_back', 'btn_save', 'btn_new'], 'buttons'); } }
💾 保存文件
← 返回文件管理器