Add files via upload
This commit is contained in:
parent
4c3fccca92
commit
ac2b2cfee0
@ -204,15 +204,17 @@
|
|||||||
default: $menus = array(); break;
|
default: $menus = array(); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo"<div class='header sub'>
|
if($_SESSION["rol"] === $panel){
|
||||||
<div class='menu'>
|
echo"<div class='header sub'>
|
||||||
<nav>";
|
<div class='menu'>
|
||||||
foreach($menus as $value){
|
<nav>";
|
||||||
echo $value;
|
foreach($menus as $value){
|
||||||
}
|
echo $value;
|
||||||
echo"</nav>
|
}
|
||||||
</div>
|
echo"</nav>
|
||||||
</div>\n";
|
</div>
|
||||||
|
</div>\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Panel Menu -->
|
<!-- Panel Menu -->
|
||||||
<?php
|
<?php
|
||||||
$template->print_panelMenu("admin");
|
$template->print_panelMenu($_SESSION["rol"]);
|
||||||
?>
|
?>
|
||||||
<!-- Contents -->
|
<!-- Contents -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Panel Menu -->
|
<!-- Panel Menu -->
|
||||||
<?php
|
<?php
|
||||||
$template->print_panelMenu("manager");
|
$template->print_panelMenu($_SESSION["rol"]);
|
||||||
?>
|
?>
|
||||||
<!--Contents -->
|
<!--Contents -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
//Controller file:
|
//Controller file:
|
||||||
include_once('panelUser.php');
|
include_once('panelUser.php');
|
||||||
|
|
||||||
if($_SESSION["login"]){
|
if($_SESSION["login"] && $_SESSION["rol"] === "user"){
|
||||||
switch($_GET["option"]){
|
switch($_GET["option"]){
|
||||||
case "manage_profile":
|
case "manage_profile":
|
||||||
$reply = UserPanel::manage();
|
$reply = UserPanel::manage();
|
||||||
@ -63,7 +63,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Panel Menu -->
|
<!-- Panel Menu -->
|
||||||
<?php
|
<?php
|
||||||
$template->print_panelMenu("user");
|
$template->print_panelMenu($_SESSION["rol"]);
|
||||||
?>
|
?>
|
||||||
<!-- Contents -->
|
<!-- Contents -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once('../assets/php/common/user_dto.php');
|
require_once($prefix.'assets/php/common/user_dto.php');
|
||||||
|
|
||||||
class UserPanel {
|
class UserPanel {
|
||||||
//Atributes:
|
//Atributes:
|
||||||
|
Loading…
Reference in New Issue
Block a user