SW/panel_admin/index.php

61 lines
1.3 KiB
PHP
Raw Normal View History

2021-04-26 22:40:34 +02:00
<!DOCTYPE HTML>
<?php
//General Config File:
include_once('../assets/php/config.php');
2021-04-28 21:46:10 +02:00
require_once($prefix.'panel_admin/panelAdmin.php');
2021-04-26 22:40:34 +02:00
$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);
}
// IMPORTANTE:
// VERIFICAR QUE ES ADMIN, SI NO, MOSTRAR MENSAJE DE "ERROR"
?>
<!--
Práctica 2 - 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">
2021-04-30 20:49:21 +02:00
<!-- Panel Menu -->
<?php
$template->print_panelMenu("admin");
?>
2021-04-26 22:40:34 +02:00
<!-- Contents -->
<div class="row">
2021-04-30 20:49:21 +02:00
<?php
$template->print_msg();
$panel->showPanel();
?>
2021-04-26 22:40:34 +02:00
</div>
2021-04-30 20:49:21 +02:00
</div>
2021-04-26 22:40:34 +02:00
<!-- Footer -->
<?php
$template->print_footer();
?>
</body>
</html>