SW/panel_admin/index.php

59 lines
1.2 KiB
PHP
Raw Normal View History

2021-04-26 22:40:34 +02:00
<!DOCTYPE HTML>
2021-05-02 16:01:05 +02:00
<?php
2021-04-26 22:40:34 +02:00
//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);
}
?>
<!--
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
?>
2021-04-26 22:40:34 +02:00
<!-- Contents -->
<div class="row">
2021-05-03 01:17:42 +02:00
<?php
$template->print_msg();
$panel->showPanel($template);
?>
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>