✏️ 正在编辑: CallcenterReset.php
路径:
/srv/systems_dir/yuppiecred-lidernegocios/application/forms/CallcenterReset.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_CallcenterReset extends Core_Form { public function init() { $this->setName('f_resetar_varios'); $this->setAttrib('autocomplete', 'off'); $this->setAttrib('onsubmit', "return confirm('Atenção! Essa ação não poderá ser desfeita.\\n" . "Tem certeza que deseja resetar?');"); $campanhas = Core_Combos::getCallcenterCampanhasAtivas(); $this->addMultiOptionElement('campanha_id', 'Campanha:', 'multi_callcenter', $campanhas); $select = new Zend_Form_Element_Multiselect('status_atendimento'); $select->setLabel('Status:') ->setAttrib("class", "multi_callcenter") ->addMultiOptions(array_filter(Core_Combos::getCallcenterStatusOptions())); $this->addElement($select); if ($discador = Core_Discador_Factory::load()) { $select = new Zend_Form_Element_Multiselect('status_discador'); $select->setLabel('Status Discador:') ->setAttrib("class", "multi_status_discador") ->addMultiOptions($discador->getStatus()); $this->addElement($select); } $this->addElement('text', 'valor_parcela_de', array( 'label' => 'Parcela min', 'onkeypress' => 'mascara(this, mvalor)', 'placeholder' => '0,00' )); $this->addElement('text', 'valor_parcela_a', array( 'label' => 'Parcela max', 'onkeypress' => 'mascara(this, mvalor)', 'placeholder' => '0,00' )); $this->getElement('valor_parcela_de') ->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->addElement('text', 'margem_consignado_de', array( 'label' => 'Margem consig. de', 'onkeypress' => 'mascara(this, mvalor)', 'placeholder' => '0,00' )); $this->addElement('text', 'margem_consignado_a', array( 'label' => 'a', 'onkeypress' => 'mascara(this, mvalor)', 'placeholder' => '0,00' )); $this->getElement('margem_consignado_de') ->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->addElement('text', 'margem_cartao_de', array( 'label' => 'Margem cartão de', 'onkeypress' => 'mascara(this, mvalor)', 'placeholder' => '0,00' )); $this->addElement('text', 'margem_cartao_a', array( 'label' => 'a', 'onkeypress' => 'mascara(this, mvalor)', 'placeholder' => '0,00' )); $this->getElement('margem_cartao_de') ->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->addElement('text', 'margem_bens_duraveis_de', array( 'label' => 'M. Bens Duráveis de', 'onkeypress' => 'mascara(this, mvalor)', 'placeholder' => '0,00' )); $this->addElement('text', 'margem_bens_duraveis_a', array( 'label' => 'a', 'onkeypress' => 'mascara(this, mvalor)', 'placeholder' => '0,00' )); $this->getElement('margem_bens_duraveis_de') ->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->addElement('select', 'telefone', array( 'label' => 'Possui Telefone:', 'multiOptions' => Core_Combos::getSimNaoOptions() )); $this->getElement('telefone') ->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->addElement('select', 'ativo', array( 'label' => 'Cliente Ativo:', 'multiOptions' => array( '' => '', -1 => 'Não', 1 => 'Sim', ) )); $this->addElement('select', 'usuario_carteirizacao', array( 'label' => 'Carteirizado por:', 'multiOptions' => Core_Combos::getUsuariosCallcenterOptions() )); $this->addElement('text', 'uf', array( 'label' => 'UF:', 'size' => 2, 'maxlength' => '2', 'validators' => array(new Validators_Uf()) )); $this->addElement('text', 'cidade', array( 'label' => 'Cidade:', 'size' => 20, )); $this->addElement(Form_DatePicker::getDatePicker('data_final', 'Atendido antes de:')); $this->addElement('text', 'validar_idade_de', array( 'label' => 'Idade de', 'maxlength' => 3, 'onkeypress' => 'mascara(this, soNumeros)' )); $this->getElement('validar_idade_de') ->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->addElement('text', 'validar_idade_a', array( 'label' => 'Idade ate:', 'maxlength' => 3, 'onkeypress' => 'mascara(this, soNumeros)' )); $this->addElement( Form_DatePicker::getDatePicker( 'data_higienizacao_de', 'Data higienização de:', false)); $this->addElement( Form_DatePicker::getDatePicker( 'data_higienizacao_a', 'a:', false)); $this->getElement('data_higienizacao_de') ->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->addElement('select', 'retirar_carteirizacao', [ 'label' => 'Retirar Carteirização:', 'multiOptions' => [ 0 => 'Não', 1 => 'Sim' ] ]); $this->getElement('retirar_carteirizacao') ->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->addElement('select', 'opcao_ura_reversa', [ 'label' => 'Opção Ura Reversa:', 'multiOptions' => [ '#' => '', '-1' => 'Dígito Inválido', '0' => '0', '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', ] ]); $this ->addElementWith('salario_de', $this->getOptions('Salário de: ', null, null, self::MASK_VAL)) ->addElementWith('salario_a', $this->getOptions('a: ', null, null, self::MASK_VAL)) ->addElementWith('emprestimos_de',$this->getOptions('Qtd emprestimos de:', null, null, self::MASK_NUM)) ->addElementWith('emprestimos_a',$this->getOptions('a:', null, null, self::MASK_NUM)); $this ->getElement('salario_de') ->setAttrib('placeholder', '0,00') ->addDecorator('Label', ['tag' => 'dt', 'tagClass' => 'clear']); $this ->getElement('salario_a') ->setAttrib('placeholder', '0,00'); $this ->getElement('emprestimos_de') ->addDecorator('Label', ['tag' => 'dt', 'tagClass' => 'clear']); $this->addElement('submit', 'btn_resetar', array( 'label' => 'Resetar todos' )); $this->addDisplayGroup([ 'btn_resetar' ], 'buttons'); } protected function _getParams() { $front = Zend_Controller_Front::getInstance(); return $front->getRequest()->getParams(); } }
💾 保存文件
← 返回文件管理器