✏️ 正在编辑: Campanha.php
路径:
/srv/systems_dir/yuppiecred-lidernegocios/application/forms/Campanha.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_Campanha extends Core_Form { public function init() { $this->setName('f_save_campanha'); $this->addElement('hidden', 'id', array( 'class' => 'invisivel' )); $this->addElement('text', 'descricao', array( 'label' => 'Nome:', 'size' => 35, 'required' => true )); $this->addElement(Form_DatePicker::getDatePicker('data_inicial', 'Data Inicial:', date('d/m/Y'), true)); $this->getElement('data_inicial')->addDecorator('Label', ['tag' => 'dt', 'tagClass' => 'clear']); $this->addElement(Form_DatePicker::getDatePicker('data_final', 'Data Final:', strftime('%d/%m/%Y', strtotime('+1 year')), true)); $this->addElement('text', 'valor_ponto', array( 'label' => 'Valor Ponto:', 'size' => 10, 'required' => true, 'onkeypress' => 'mascara(this, mvalor)', 'value' => 0 )); $this->addElement('text', 'prazo_resgate', array( 'label' => 'Prazo p/ Resgate (dias):', 'size' => 5, 'required' => true, 'onkeypress' => 'mascara(this, soNumeros)', 'value' => 0 )); $this->addElement('text', 'producao_media', array( 'label' => 'Produção média:', 'size' => 10, 'required' => true, 'onkeypress' => 'mascara(this, mvalor)', 'value' => 0 )); $protocoloFisico = new Zend_Form_Element_Select('protocolo_fisico'); $protocoloFisico->setLabel('Protocolo Físico:') ->addMultiOptions(array(0 => 'Não', 1 => 'Sim')); $this->addElement($protocoloFisico); $this->addElement('text', 'frequencia_resgate', array( 'label' => 'Frequência resgate (meses):', 'size' => 5, 'required' => true, 'onkeypress' => 'mascara(this, soNumeros)', 'value' => 0 )); $this->addElement('text', 'acrescimo_ultimo_resgate', array( 'label' => 'Acréscimo último resgate (dias):', 'size' => 5, 'required' => true, 'onkeypress' => 'mascara(this, soNumeros)', 'value' => 0 )); $this->addElement('text', 'periodo_sem_producao', array( 'label' => 'Período sem produção (dias):', 'size' => 5, 'required' => true, 'onkeypress' => 'mascara(this, soNumeros)', 'value' => 0 )); $this->addElement('button', 'btn_back', array( 'label' => 'Voltar', 'class' => 'bt_back', 'onclick' => "window.location='" . $this->getView()->baseUrl() . "/campanha'" )); $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() . "/campanha/save'" )); $this->addDisplayGroup(array( 'btn_back', 'btn_save', 'btn_new' ), 'buttons'); } }
💾 保存文件
← 返回文件管理器