D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso_ant
/
adm
/
app
/
gre
/
Controllers
/
Filename :
EstoqueAcolhimento.php
back
Copy
<?php namespace App\gre\Controllers; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of EstoqueAcolhimento * * @copyright (c) year, Carlos Marques - CM */ class EstoqueAcolhimento { private $Dados; private $DadosForm; private $PageId; public function listar($PageId = null) { $botao = ['list_est_acolh' => ['menu_controller' => 'estoque-acolhimento', 'menu_metodo' => 'listar'], 'cad_est_acolh' => ['menu_controller' => 'cadastrar-estoque-acolhimento', 'menu_metodo' => 'cad-est-acolh'], 'vis_est_acolh' => ['menu_controller' => 'ver-estoque-acolhimento', 'menu_metodo' => 'ver-est-acolh'], 'edit_est_acolh' => ['menu_controller' => 'editar-estoque-acolhimento', 'menu_metodo' => 'edit-est-acolh']]; $listarBotao = new \App\adms\Models\AdmsBotao(); $this->Dados['botao'] = $listarBotao->valBotao($botao); $listarMenu = new \App\adms\Models\AdmsMenu(); $this->Dados['menu'] = $listarMenu->itemMenu(); $this->cadAcolhViewPriv(); $this->DadosForm = filter_input_array(INPUT_POST, FILTER_DEFAULT); if (!empty($this->DadosForm['ListEstAcolh'])) { unset($this->DadosForm['ListEstAcolh']); } else { $this->PageId = (int) $PageId ? $PageId : 1; $this->DadosForm['nome_unid'] = filter_input(INPUT_GET, 'nome_unid', FILTER_DEFAULT); $this->DadosForm['unid_nome'] = filter_input(INPUT_GET, 'unid_nome', FILTER_DEFAULT); } $listarResidAcolh = new \App\gre\Models\GreSelecionaResidenteAcolhimento(); $this->Dados['listResidAcolh'] = $listarResidAcolh->listarResidAcolh($this->PageId, $this->DadosForm); $carregarView = new \App\gre\core\ConfigView("gre/Views/Acolhimento/listarResidAcolhimento", $this->Dados); $carregarView->renderizarGre(); } private function cadAcolhViewPriv() { $listarSelect = new \App\gre\Models\GreSelecionaResidenteAcolhimento(); $this->Dados['select'] = $listarSelect->listarCadastrar(); } }