D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
rosario
/
adm
/
app
/
gre
/
Controllers
/
Filename :
ConPsaudeCliente.php
back
Copy
<?php namespace App\gre\Controllers; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of Contratante * * @copyright (c) year, Carlos Marques - CM */ class ConPsaudeCliente { private $Dados; private $DadosForm; private $PageId; public function listar($PageId = null) { $botao = ['list_psaude' => ['menu_controller' => 'con-psaude-cliente', 'menu_metodo' => 'listar'], 'cad_psaude' => ['menu_controller' => 'con-psaude-cliente-cadastrar', 'menu_metodo' => 'cad-psaude'], 'vis_psaude' => ['menu_controller' => 'con-psaude-cliente-modal-ver', 'menu_metodo' => 'ver-psaude'], 'edit_psaude' => ['menu_controller' => 'con-psaude-cliente-editar', 'menu_metodo' => 'edit-psaude']]; $listarBotao = new \App\adms\Models\AdmsBotao(); $this->Dados['botao'] = $listarBotao->valBotao($botao); $listarMenu = new \App\adms\Models\AdmsMenu(); $this->Dados['menu'] = $listarMenu->itemMenu(); //$this->cadPsaudeClienteViewPriv(); $this->DadosForm = filter_input_array(INPUT_POST, FILTER_DEFAULT); if (!empty($this->DadosForm['ListPsaudeCliente'])) { unset($this->DadosForm['ListPsaudeCliente']); } else { $this->PageId = (int) $PageId ? $PageId : 1; } $listarContr = new \App\gre\Models\ModPsaudeClienteListar(); $this->Dados['listarPsaudeCliente'] = $listarContr->listarPsaudeCliente($this->PageId, $this->DadosForm); $carregarView = new \Core\ConfigView("gre/Views/ProgramaSaude/ViePsaudeClienteListar", $this->Dados); $carregarView->renderizar(); } private function cadPsaudeClienteViewPriv() { $listarSelect = new \App\gre\Models\ModPsaudeClienteListar(); $this->Dados['select'] = $listarSelect->listarCadastrar(); } }