2021-03-25 23:46:22 +01:00
|
|
|
<!DOCTYPE HTML>
|
2021-03-24 21:42:58 +01:00
|
|
|
<?php
|
|
|
|
session_start();
|
|
|
|
|
|
|
|
require_once('../assets/php/template.php');
|
2021-03-26 15:45:16 +01:00
|
|
|
require_once('./panel_manager.php');
|
|
|
|
|
|
|
|
$template = new Template();
|
2021-04-10 20:54:56 +02:00
|
|
|
$login = false;
|
|
|
|
|
|
|
|
if(isset($_SESSION["login"]) && $_SESSION["nombre"] == "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
|
|
|
// IMPORTANTE:
|
|
|
|
// VERIFICAR QUE ES MANAGER(GERENTE), 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();
|
|
|
|
?>
|
|
|
|
|
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>
|
|
|
|
<li><a href='./?state=sessions&login=".$this->login."'>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-03-24 21:42:58 +01:00
|
|
|
<div class="row">
|
2021-03-26 15:45:16 +01:00
|
|
|
<div class="column middle">
|
2021-04-10 20:54:56 +02:00
|
|
|
<?php
|
2021-04-08 10:59:22 +02:00
|
|
|
$panel->showPanel();
|
2021-04-08 09:59:11 +02:00
|
|
|
?>
|
2021-04-10 20:54:56 +02:00
|
|
|
|
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>
|