✏️ 正在编辑: AtendimentoCorretor.php
路径:
/srv/systems_dir/yuppiecred-bkp/application/forms/AtendimentoCorretor.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_AtendimentoCorretor extends Core_Form { public function init() { $params = $this->_getParams(); $this->addElement('hidden', 'id'); $multiOptions = Core_Combos::getStatusResolucaoOptions(); $changeKeyForValue = array_flip($multiOptions); if( isset($changeKeyForValue['EM ATENDIMENTO']) ){ unset($changeKeyForValue['EM ATENDIMENTO']); } $multiOptions = array_flip($changeKeyForValue); $this->addElement('select', 'status_resolucao_id', array( 'label' => 'Status Resolução:', 'required' => true, 'multiOptions' => array( "" => "" ) + $multiOptions )); $this->getElement("status_resolucao_id")->setAttrib("required", true); $select = new Zend_Form_Element_Select('corretor_id'); $select->setLabel('Corretor:') ->setValue($params['corretor_id']) ->setAttrib("id", "id_corretor") ->setAttrib("style", "width: 200px") ->setAttrib("disable", true) ->addMultiOptions(Core_Combos::getCorretoresOptions()); $this->addElement($select); $this->addElement('select', 'motivo_ligacao', array( 'label' => 'Motivo Ligação:', 'required' => true, 'multiOptions' => array( "" => "" ) + Core_Combos::getMotivoLigacaoOptions() )); $this->getElement("motivo_ligacao")->setAttrib("required", true); $this->addElement(Form_DatePicker::getDatePicker('data_ligacao', 'Data da Ligação:', date('d/m/Y'), true)); $this->getElement("data_ligacao")->setAttrib("required", true); $this->addElement(Form_DatePicker::getDatePicker('data_proximo_contato', 'Data do Próximo Contato:', '', false)); $this->addElement('text', 'hora_proximo_contato', array( 'label' => 'Hora:', 'size' => 5, 'maxlength' => 5, 'onkeypress' => 'mascara(this, hora)', 'validators' => array( array( 'Date', false, array( 'format' => 'HH:mm' ) ) ) )); $this->getElement('data_proximo_contato') ->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->addElement('button', 'btn_back', array( 'label' => 'Voltar', 'class' => 'bt_back', 'onclick' => "window.location='" . $this->getView()->baseUrl('atendimento-corretor') . "'" )); $this->addElement('textarea', 'descricao', array( 'label' => 'Descrição:', 'required' => true, 'cols' => 50, 'rows' => 1, )); $this->addElement('checkbox', 'sinalizar_supervisor', array( 'description' => 'Sinalizar urgência para supervisor' )); $this->addElement('submit', 'btn_save', array( 'label' => 'Salvar', 'class' => 'bt_save' )); $this->addDisplayGroup(array( 'btn_back', 'btn_save', 'btn_new', ), 'buttons'); } }
💾 保存文件
← 返回文件管理器