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