Add files via upload
This commit is contained in:
58
panel_admin/index.php
Normal file
58
panel_admin/index.php
Normal file
@ -0,0 +1,58 @@
|
||||
<?php
|
||||
//General Config File:
|
||||
include_once('../assets/php/config.php');
|
||||
|
||||
require_once($prefix.'panel_admin/panelAdmin.php');
|
||||
|
||||
$login=false;
|
||||
if(isset($_SESSION["login"]) && $_SESSION["rol"] == "admin") $login = true;
|
||||
if(isset($_GET['state'])) {
|
||||
$panel = new Panel($_GET['state'], $login);
|
||||
}
|
||||
else {
|
||||
$panel = new Panel('', $login);
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML>
|
||||
<!--
|
||||
Práctica - Sistemas Web | Grupo D
|
||||
CompluCine - FDI-cines
|
||||
-->
|
||||
<html lang="es">
|
||||
<!-- Head -->
|
||||
<?php
|
||||
$template->print_head();
|
||||
?>
|
||||
<body>
|
||||
<!-- Header -->
|
||||
<?php
|
||||
$template->print_header();
|
||||
?>
|
||||
|
||||
<!-- Main -->
|
||||
<?php
|
||||
$template->print_main();
|
||||
?>
|
||||
|
||||
<!-- Panel -->
|
||||
<div class="row">
|
||||
<!-- Panel Menu -->
|
||||
<?php
|
||||
$template->print_panelMenu($_SESSION["rol"]);
|
||||
?>
|
||||
<!-- Contents -->
|
||||
<div class="row">
|
||||
<?php
|
||||
$template->print_msg();
|
||||
$panel->showPanel($template);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Footer -->
|
||||
<?php
|
||||
$template->print_footer();
|
||||
?>
|
||||
</body>
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user