SW/panel_manager/index.php

51 lines
1.1 KiB
PHP
Raw Normal View History

2021-04-26 22:40:34 +02:00
<!DOCTYPE HTML>
<?php
//General Config File:
require_once('../assets/php/config.php');
include_once('panel_manager.php');
$login = (isset($_SESSION["login"]) && $_SESSION["rol"] == "manager") ? true : false;
$panel = isset($_REQUEST['state']) ? new Panel($_REQUEST['state'],$login) : $panel = new Panel('',$login);
2021-04-26 22:40:34 +02:00
?>
<!--
2021-05-03 21:58:47 +02:00
Práctica - Sistemas Web | Grupo D
2021-04-26 22:40:34 +02:00
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
2021-05-03 16:51:08 +02:00
$template->print_panelMenu($_SESSION["rol"]);
2021-04-30 20:49:21 +02:00
?>
<!--Contents -->
2021-04-26 22:40:34 +02:00
<div class="row">
<?php $panel->showPanel(); ?>
</div>
</div>
<!-- Footer -->
<?php
$template->print_footer();
?>
</body>
</html>