D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
rosario
/
adm
/
app
/
gre
/
Controllers
/
Filename :
ConCtImportaAgenda.php
back
Copy
<?php namespace App\gre\Controllers; set_time_limit(0); if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of Fechamento * * @copyright (c) year, Carlos Marques - CM */ class ConCtImportaAgenda { private $Dados; private $DadosForm; private $PageId; public function listar($PageId = null) { $botao = ['list_fech' => ['menu_controller' => 'fechamento', 'menu_metodo' => 'listar'], 'cad_fech' => ['menu_controller' => 'cadastrar-fechamento', 'menu_metodo' => 'cad-fech'], 'vis_fech' => ['menu_controller' => 'ver-fechamento', 'menu_metodo' => 'ver-fech'], 'edit_fech' => ['menu_controller' => 'editar-fechamento', 'menu_metodo' => 'edit-fech'], 'del_fech' => ['menu_controller' => 'apagar-fechamento', 'menu_metodo' => 'apagar-fech']]; $listarBotao = new \App\adms\Models\AdmsBotao(); $this->Dados['botao'] = $listarBotao->valBotao($botao); $listarMenu = new \App\adms\Models\AdmsMenu(); $this->Dados['menu'] = $listarMenu->itemMenu(); $listarMenu = new \App\adms\Models\AdmsMenu(); $this->Dados['menu'] = $listarMenu->itemMenu(); $this->DadosForm = filter_input_array(INPUT_POST, FILTER_DEFAULT); //var_dump($this->DadosForm); if (!empty($this->DadosForm['Confirma'])) { unset($this->DadosForm['Confirma']); $carregarView = new \App\gre\core\ConfigViewImprSimples("gre/Views/Cotacao/VieCtImportaAgenda", $this->DadosForm); $carregarView->renderizarGre(); } else { $carregarView = new \Core\ConfigView("gre/Views/Cotacao/VieCtGravaAgenda", $this->Dados); $carregarView->renderizar(); } } }