✏️ 正在编辑: CallCenterExtratoLigacoes.php
路径:
/srv/systems_dir/yuppiecred-bkp/application/forms/Filtro/CallCenterExtratoLigacoes.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_Filtro_CallCenterExtratoLigacoes extends Core_Form { public function init() { $usuario = Yuppie_Auth::getIdentity(); $campanhas = Core_Combos::getCallcenterCampanhasOptions(); $this->setAction($this->getView()->url(array( 'controller' => 'callcenter-relatorios', 'action' => 'extrato-ligacoes' ), null, true)); $this->setName('f_filtro_callcenter_atendimentos'); $select = new Zend_Form_Element_Multiselect('campanha_id'); $select->setLabel('Campanha:') ->setAttrib('class', "multi_callcenter") ->addMultiOptions($campanhas); $this->addElement($select); $statusCliente = Core_Combos::getCallcenterStatusOptions(); $select = new Zend_Form_Element_Select('status_cliente'); $select->setLabel('Tabulação:') ->addMultiOptions($statusCliente); $this->addElement($select); $statusTelefone = Core_Combos::getCallcenterStatusTelefoneOptions(); $select = new Zend_Form_Element_Select('discador_status'); $select->setLabel('Status Telefone:') ->addMultiOptions($statusTelefone); $this->addElement($select); $this->addElement(Form_DatePicker::getDatePicker('data_atendimento_de', 'Data Atendimento: De:')); $this->addElement(Form_DatePicker::getDatePicker('data_atendimento_a', 'até:')); $this->getElement('status_cliente') ->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->getElement('data_atendimento_de') ->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->addElement('submit', 'btn_filtrar', array( 'label' => 'Buscar', 'class' => 'bt_find' )); } public function isValid($data) { $valid = parent::isValid($data); if (empty($data)){ $valid = false; $helper = Zend_Controller_Action_HelperBroker::getStaticHelper(); $helper->flashMessenger(array('alert' => 'Você deve informar ao menos um filtro.')); } return $valid; } }
💾 保存文件
← 返回文件管理器