✏️ 正在编辑: Bonus.php
路径:
/srv/systems_dir/yuppiecred/application/forms/Bonus.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_Bonus extends Core_Form { protected $_front = null; public function init() { $this->_front = Zend_Controller_Front::getInstance(); $this->setName('f_save_bonus'); $this->addElement('hidden', 'id', array( 'class' => 'invisivel' )); $select = new Zend_Form_Element_Select('convenio_id'); $select->setLabel('Convênio:') ->setRequired(true) ->addMultiOptions(Core_Combos::getConveniosOptions()) ->setAttrib('onchange', "populateComboTabelas(this.id, 'tabela_id')"); $this->addElement($select); $select = new Zend_Form_Element_Select('tabela_id'); $select->setLabel('Tabela:') ->setRequired(true) ->addMultiOptions(Core_Combos::getTabelasOptions()); $this->addElement($select); $this->addElement('text', 'prazo', array( 'label' => 'Prazo:', 'size' => 5, 'required' => true, 'onkeypress' => 'mascara(this, soNumeros)', )); $this->addElement('text', 'produto', array( 'label' => 'Produto:', 'size' => 5, 'required' => true, 'onkeypress' => 'mascara(this, soNumeros)', )); $this->addElement('text', 'intervalo_parcelas_de', array( 'label' => 'De (%):', 'size' => 5, 'value' => '0,00', 'onkeypress' => 'mascara(this, mvalor)' )); $this->addElement('text', 'intervalo_parcelas_a', array( 'label' => 'a (%):', 'size' => 5, 'value' => '0,00', 'onkeypress' => 'mascara(this, mvalor)' )); $this->addDisplayGroup(array('intervalo_parcelas_de', 'intervalo_parcelas_a'), 'intervalo_parcelas', array('legend' => 'Invervalo de Parcelas Pagas (Refin)') ); $this->addElement('button', 'btn_back', array( 'label' => 'Voltar', 'class' => 'bt_back', 'onclick' => "window.location='" . $this->getView()->baseUrl() . "/bonus'" )); $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() . "/bonus/save'" )); $this->addDisplayGroup(array( 'btn_back', 'btn_save', 'btn_new' ), 'buttons'); } }
💾 保存文件
← 返回文件管理器