✏️ 正在编辑: CallcenterBase.php
路径:
/srv/systems_dir/yuppiecred/application/forms/CallcenterBase.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_CallcenterBase extends Form_CallcenterAtendimento { private $_params = array(); public function init() { $this->_params = Zend_Controller_Front::getInstance()->getRequest()->getParams(); parent::init(); $this->setAction($this->getView()->url(array( 'action' => 'save' ))); $this->setName('cliente'); $this->setAttrib('onsubmit', 'return validarForm(this);'); // $this->setIsArray(true); $this->removeElement('status_atendimento'); $this->removeElement('obs'); $this->removeElement('obito'); $this->addElement('select', 'ativo', array( 'label' => 'Ativo', 'multiOptions' => array( '' => '', '0' => 'Não', '1' => 'Sim' ), 'order' => 1 )); $this->addElement('select', 'campanha_id', array( 'label' => 'Campanha:', 'required' => true, 'order' => 0, 'multiOptions' => Core_Combos::getCallcenterCampanhasOptions() )); $displayGroup1 = $this->getDisplayGroup('dados_cliente'); $displayGroup1->rewind(); $displayGroup1->addElement($this->getElement('ativo')); $displayGroup1->addElement($this->getElement('campanha_id')); $displayGroup1->addElement($this->getElement('id')); $this->_initButtons(); } protected function _initButtons() { $this->addElement('button', 'btn_back', array( 'label' => 'Voltar', 'class' => 'bt_back', 'onclick' => "window.location='" . $this->getView()->baseUrl() . "/callcenter-base'" )); $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() . "/callcenter-base/save'" )); if( !empty($this->_params['id']) ){ $this->addElement('button', 'btn_atender', array( 'label' => 'Atender Cliente', 'class' => 'bt_atender', 'onclick' => "window.location='" . $this->getView()->baseUrl() . "/callcenter/exibir-cliente/id/{$this->_params['id']}'" )); } $this->addDisplayGroup(array( 'btn_back', 'btn_save', 'btn_new', 'btn_atender', ), 'buttons'); } }
💾 保存文件
← 返回文件管理器