✏️ 正在编辑: ExportarParaOutrosCorretores.php
路径:
/srv/systems_dir/yuppiecred-lidernegocios/application/forms/ExportarParaOutrosCorretores.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_ExportarParaOutrosCorretores extends Zend_Form { public function init() { $this->setMethod('post'); $this->setAction($this->getView()->url(array('action' => 'exportar-para-outros-corretores'))); $this->setName('f_exportar_para_outros_corretores'); $this->setAttrib('autocomplete', 'off'); $select = new Zend_Form_Element_Select('convenio_id'); $select->setLabel('Convênio:') ->setRequired(true) ->addMultiOptions($this->_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($this->_getTabelasOptions()); $this->addElement($select); $select = new Zend_Form_Element_Select('operacao'); $select->setLabel('Operação:') ->addMultiOptions(array( '=' => 'Não alterar comissão', '+' => 'Aumentar comissão', '-' => 'Diminuir comissão', )); $this->addElement($select); $this->addElement('text', 'alterar_comissao', array( 'label' => 'Alterar comissão (%):', 'onkeypress' => 'mascara(this, mvalor)', 'size' => 10 )); $this->addElement('button', 'btn_back', array( 'label' => 'Voltar', 'class' => 'bt_back', 'onclick' => "window.location='" . $this->getView()->baseUrl( 'comissionamento-corretor') . "'" )); $this->addElement('submit', 'btn_save', array( 'label' => 'Exportar', 'class' => 'bt_save' )); $this->addDisplayGroup(array( 'btn_back', 'btn_save' ), 'buttons'); } protected function _getBancosOptions() { $model = new Model_Banco(); $options = array( '' => '' ); $values = $model->listar(null, 'nome ASC'); foreach ( $values as $value ) { $options[$value['id']] = $value['nome']; } return $options; } protected function _getConveniosOptions() { $model = new Model_Convenio(); $options = array( '' => '' ); $values = $model->listar(null, 'nome ASC'); foreach ( $values as $value ) { $options[$value['id']] = $value['nome']; } return $options; } protected function _getTabelasOptions() { $model = new Model_Tabela(); $options = array( '' => '' ); $values = $model->listar(null, 'nome ASC'); foreach ( $values as $value ) { $options[$value['id']] = $value['nome']; } return $options; } }
💾 保存文件
← 返回文件管理器