✏️ 正在编辑: SolicitacaoRecurso.php
路径:
/srv/systems_dir/yuppiecred-lidernegocios/application/forms/SolicitacaoRecurso.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_SolicitacaoRecurso extends Core_Form { public function init() { $this->setName('form_solicitacao_recurso'); $this->addElement('hidden', 'id', array( 'class' => 'invisivel' )); $this->addElement(Form_DatePicker::getDatePicker('data_solicitacao', 'Data:')); $select = new Zend_Form_Element_Select('empresa_id'); $select->setLabel('Empresa:') ->setRequired(true) ->setAttrib('style', 'width:250px') ->setValue(Yuppie_Auth::getIdentity()->empresa_id) ->addMultiOptions(Core_Combos::getEmpresasOptions()); $this->addElement($select); $this->addElement('text', 'cpf_cnpj', array( 'label' => 'CPF/CNPJ:', 'maxlength' => 18, 'required' => true, 'onkeypress' => 'mascara(this, cpfCnpj)' )); $this->addElement(Form_DatePicker::getDatePicker('prazo', 'Prazo Cumprimento:')); $this->addElement('text', 'valor', array( 'label' => 'Valor (R$):', 'size' => 10, 'onkeypress' => 'mascara(this, mvalor)', 'value' => '0,00' )); $this->addElement('select', 'tipo_pagamento', array( 'label' => 'Solicitação:', 'multiOptions' => Core_Combos::getTipoSolicitacaoOptions(), 'onchange' => "showOrHideField('km_percorrer', this.value, 'ADIANTAMENTO VIAGEM')" )); $this->getElement('tipo_pagamento')->setAttrib('style', 'width:250px'); $this->addElement('text', 'km_percorrer', [ 'label' => 'Km à Percorrer:', 'class' => 'km_percorrer', 'onkeypress' => 'mascara(this, mvalor)', 'size' => 10 ]); $this->addElement('text', 'favorecido', array( 'label' => 'Favorecido:' )); $this->getElement('favorecido')->addDecorator('Label', ['tag' => 'dt', 'tagClass' => 'clear']); $select = new Zend_Form_Element_Select('banco'); $select->setLabel('Banco:') ->setAttrib('style', 'width:250px') ->addMultiOptions(Core_Combos::getBancosFebrabanOptions()); $this->addElement($select); $this->addElement('text', 'agencia', array( 'label' => 'Agência:', )); $this->addElement('text', 'conta', array( 'label' => 'Conta:', )); $select = new Zend_Form_Element_Select('tipo_conta'); $select->setLabel('Tipo de conta:') ->addMultiOptions(Core_Combos::getFormasLiberacaoOptions()); $this->addElement($select); $select = new Zend_Form_Element_Select('rota_id'); $select->setLabel('Rota:') ->setAttrib('style', 'width:250px') ->setAttrib('onchange', 'showParamsRotas(this.value)') ->setRequired(true) ->addMultiOptions(Core_Combos::getRotasOptions()); $this->addElement($select); $this->addElement(Form_DatePicker::getDatePicker('periodo_de', 'Período de:')); $this->addElement(Form_DatePicker::getDatePicker('periodo_a', 'Período a:')); $this->addElement('textarea', 'descricao', array( 'label' => 'Descrição Solic.:', 'cols' => 50, 'rows' => 1, 'required' => true, 'description' => 'Obs: Sempre utilize a Descrição da Solic. Em todas as suas solicitações.' )); $this->addElement(Form_DatePicker::getDatePicker('data_pagamento', 'Data Pagamento:')); $this->addElement('button', 'btn_back', array( 'label' => 'Voltar', 'class' => 'bt_back', 'onclick' => "window.location='" . $this->getView()->baseUrl() . "/solicitacao-recurso'" )); $this->addElement('submit', 'btn_save', array( 'label' => 'Salvar', 'class' => 'bt_save' )); $this->addElement('button', 'btn_new', array( 'label' => 'Nova Solicitação', 'class' => 'bt_new', 'onclick' => "window.location='" . $this->getView()->baseUrl() . "/solicitacao-recurso/save'" )); $this->addDisplayGroup(array( 'btn_back', 'btn_save', 'btn_new' ), 'buttons'); } }
💾 保存文件
← 返回文件管理器