update admin

muestra de mensaje al usar la funciona de ver como
This commit is contained in:
marian1010 2021-06-02 12:17:18 +02:00
parent 59368957ff
commit ebc7d4708c
2 changed files with 9 additions and 9 deletions

View File

@ -71,13 +71,13 @@
};
break;
case 'un':
AdminPanel::see_like_user();
$reply=AdminPanel::see_like_user();
break;
case 'ur':
AdminPanel::see_like_registed_user();
$reply=AdminPanel::see_like_registed_user();
break;
case 'ag':
AdminPanel::see_like_manager();
$reply=AdminPanel::see_like_manager();
break;
default:
$reply=AdminPanel:: panel();

View File

@ -434,8 +434,8 @@
$_SESSION["lastRol"] = $_SESSION["rol"];
//unset($_SESSION["rol"]);
$_SESSION["rol"] = null;
header("Location: {$_SERVER['PHP_SELF']}");
$_SESSION['message'] = "<div class=''>
//header("Location: {$_SERVER['PHP_SELF']}");
return $reply = "<div class=''>
<div class='column side'></div>
<div class='column middle'>
<div class='code info'>
@ -451,8 +451,8 @@
static function see_like_registed_user(){
$_SESSION["lastRol"] = $_SESSION["rol"];
$_SESSION["rol"] = "user";
header("Location: {$_SERVER['PHP_SELF']}");
$_SESSION['message'] = "<div class='row'>
//header("Location: {$_SERVER['PHP_SELF']}");
return $reply = "<div class='row'>
<div class='column side'></div>
<div class='column middle'>
<div class='code info'>
@ -468,8 +468,8 @@
static function see_like_manager(){
$_SESSION["lastRol"] = $_SESSION["rol"];
$_SESSION["rol"] = "manager";
header("Location: {$_SERVER['PHP_SELF']}");
$_SESSION['message'] = "<div class='row'>
//header("Location: {$_SERVER['PHP_SELF']}");
return $reply = "<div class='row'>
<div class='column side'></div>
<div class='column middle'>
<div class='code info'>