2021-03-25 23:46:22 +01:00
|
|
|
<!DOCTYPE HTML>
|
2021-03-24 21:42:58 +01:00
|
|
|
<?php
|
2021-04-15 20:53:01 +02:00
|
|
|
//General Config File:
|
|
|
|
require_once('../assets/php/config.php');
|
2021-04-15 21:43:06 +02:00
|
|
|
|
|
|
|
include_once('panel_manager.php');
|
2021-04-14 19:59:52 +02:00
|
|
|
|
2021-04-10 20:54:56 +02:00
|
|
|
$login = false;
|
|
|
|
|
2021-04-15 20:53:01 +02:00
|
|
|
if(isset($_SESSION["login"]) && $_SESSION["rol"] == "manager") $login = true;
|
2021-03-26 15:45:16 +01:00
|
|
|
|
|
|
|
if(isset($_REQUEST['state'])) {
|
2021-04-10 20:54:56 +02:00
|
|
|
$panel = new Panel($_REQUEST['state'],$login);
|
2021-03-26 15:45:16 +01:00
|
|
|
}
|
2021-04-10 20:54:56 +02:00
|
|
|
else {
|
|
|
|
$panel = new Panel('',$login);
|
2021-03-26 15:45:16 +01:00
|
|
|
}
|
2021-03-24 21:42:58 +01:00
|
|
|
?>
|
|
|
|
<!--
|
|
|
|
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();
|
|
|
|
?>
|
|
|
|
|
2021-03-26 15:45:16 +01:00
|
|
|
<!-- Panel -->
|
2021-03-24 21:42:58 +01:00
|
|
|
<div class="row">
|
2021-04-10 20:54:56 +02:00
|
|
|
<!--Left Sidebar -->
|
2021-03-26 15:45:16 +01:00
|
|
|
<div class="sidebar left">
|
|
|
|
<ul>
|
|
|
|
<li>Ver como:</li>
|
|
|
|
<ul>
|
2021-04-10 20:54:56 +02:00
|
|
|
<li><a href='./?state=us_u'>Usuario no registrado</a></li>
|
|
|
|
<li><a href='./?state=us_r'>Usuario registrado</a></li>
|
2021-03-26 15:45:16 +01:00
|
|
|
</ul><br />
|
|
|
|
<li>Añadir/Editar/Eliminar:</li>
|
|
|
|
<ul>
|
2021-04-10 20:54:56 +02:00
|
|
|
<li><a href='./?state=rooms'>Salas</a></li>
|
2021-04-11 17:58:01 +02:00
|
|
|
<li><a href='./?state=sessions'>Sesiones</a></li>
|
2021-03-26 15:45:16 +01:00
|
|
|
</ul>
|
|
|
|
</ul>
|
2021-03-24 21:42:58 +01:00
|
|
|
</div>
|
2021-04-10 20:54:56 +02:00
|
|
|
<!--Contents -->
|
2021-04-13 21:16:07 +02:00
|
|
|
<div class="row">
|
|
|
|
<?php $panel->showPanel(); ?>
|
2021-04-08 09:59:11 +02:00
|
|
|
</div>
|
2021-04-10 20:54:56 +02:00
|
|
|
</div>
|
2021-03-24 21:42:58 +01:00
|
|
|
<!-- Footer -->
|
|
|
|
<?php
|
|
|
|
$template->print_footer();
|
|
|
|
?>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|