D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
novonote
/
adm
/
app
/
gre
/
Controllers
/
Filename :
ClienteInativar.php
back
Copy
<?php namespace App\gre\Controllers; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of ModuloApagar * * @copyright (c) year, Cesar Szpak - Celke */ class ClienteInativar { private $DadosId; public function inatCliente($DadosId = null) { $this->DadosId = filter_input_array(INPUT_GET, FILTER_DEFAULT); if (!empty($this->DadosId)) { $inativarCliente = new \App\gre\Models\Cliente\ModInativarCliente(); $inativarCliente->inativarCliente($this->DadosId); } else { $_SESSION['msg'] = "<div class='alert alert-danger alert-dismissible fade show' role='alert'> Erro: Necessário selecionar um ítem! <button type='button' class='btn-close' data-bs-dismiss='alert' aria-label='Close'> </button> </div>"; } $UrlDestino = URLADM . 'cliente/listar'; header("Location: $UrlDestino"); } }