D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
rosario
/
adm
/
app
/
gre
/
Controllers
/
Filename :
ConPsaudeLojaCadastro.php
back
Copy
<?php namespace App\gre\Controllers; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of ConPsaudeLojaCadastro * * @copyright (c) year, Carlos Marques - CM */ class ConPsaudeLojaCadastro { private $Dados; private $DadosForm; private $PageId; private $DadosExcel; public function listar($PageId = null) { $this->DadosForm = filter_input_array(INPUT_POST, FILTER_DEFAULT); $this->DadosExcel = filter_input_array(INPUT_GET, FILTER_DEFAULT); // var_dump($this->DadosForm); if(isset($this->DadosExcel['opcao'])) { unset($this->DadosExcel['url']); if($this->DadosExcel['opcao']=='L') { $carregarView = new \App\gre\core\ConfigViewImprSimples("gre/Views/ProgramaSaude/ViePsaudeLojaCadastroImprime", $this->DadosExcel); $carregarView->renderizarGre(); } if($this->DadosExcel['opcao']=='V') { $this->DadosForm['anomes'] = $this->DadosExcel['anomes']; $this->DadosForm['ListPsaudeLoja'] = 'Listar'; } } $botao = ['lis_psaude_loja' => ['menu_controller' => 'con-psaude-loja-cadastro', 'menu_metodo' => 'listar'], 'cad_psaude_loja' => ['menu_controller' => 'con-carrega-psaude-loja-cadastro-js', 'menu_metodo' => 'listar'], 'vis_psaude_loja' => ['menu_controller' => 'con-psaude-loja-cadastro', 'menu_metodo' => 'listar'], 'edit_psaude_loja' => ['menu_controller' => 'con-psaude-loja-cadastro-editar', 'menu_metodo' => 'edit-psaude'], 'del_psaude_loja' => ['menu_controller' => 'con-psaude-loja-cadastro-apagar', 'menu_metodo' => 'apagar-psaude']]; $listarBotao = new \App\adms\Models\AdmsBotao(); $this->Dados['botao'] = $listarBotao->valBotao($botao); //var_dump( $this->Dados['botao']); $listarMenu = new \App\adms\Models\AdmsMenu(); $this->Dados['menu'] = $listarMenu->itemMenu(); if (!empty($this->DadosForm['ListPsaudeLoja'])) { unset($this->DadosForm['ListPsaudeLoja']); //var_dump( $this->DadosForm); $listarBotao = new \App\adms\Models\AdmsBotao(); $this->Dados['botao'] = $listarBotao->valBotao($botao); $listarPsaudeLoja = new \App\gre\Models\ModPsaudeLojaCadastroListar(); $this->Dados['listPsaudeLoja'] = $listarPsaudeLoja->listarPsaudeLoja($this->PageId, $this->DadosForm); } $carregarView = new \Core\ConfigView("gre/Views/ProgramaSaude/ViePsaudeLojaCadastro", $this->Dados); $carregarView->renderizar(); } }