227 lines
6.6 KiB
PHP
227 lines
6.6 KiB
PHP
<?php
|
|
|
|
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
|
|
|
|
header("Cache-Control: post-check=0, pre-check=0", false);
|
|
|
|
header("Pragma: no-cache");
|
|
|
|
require_once "../sessionManager.php";
|
|
|
|
//require_once "../config.php";
|
|
|
|
if(!$_SESSION['isadmin']){ echo "No tienes permisos para ingresar"; die;}else{$user = json_decode($_SESSION['usersession']);}
|
|
|
|
if (empty($_SESSION['csrf'])) { $_SESSION['csrf'] = bin2hex(random_bytes(32)); }
|
|
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<title>::ADMIN::</title>
|
|
|
|
<meta name="csrf-token" content="<?php echo htmlspecialchars($_SESSION['csrf'], ENT_QUOTES); ?>">
|
|
|
|
<?php require_once "../header.php"; ?>
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo $CFG->wwwroot ?>webfonts/HelveticaNeue/stylesheet.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo $CFG->wwwroot ?>css/datatables.min.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo $CFG->wwwroot ?>css/dataTables.checkboxes.css">
|
|
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/searchpanes/1.2.1/css/searchPanes.dataTables.min.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/select/1.3.1/css/select.dataTables.min.css">
|
|
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo $CFG->wwwroot ?>css/theme-bulma/borderless.min.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo $CFG->wwwroot ?>css/bootstrap-select.min.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo $CFG->wwwroot ?>css/admin.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo $CFG->wwwroot ?>trumbowyg/ui/trumbowyg.min.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo $CFG->wwwroot ?>/highcharts/css/highcharts.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo $CFG->wwwroot ?>/highcharts/css/themes/sand-signika.css">
|
|
|
|
<link href="<?php echo $CFG->wwwroot ?>css/uppy.min.css" rel="stylesheet">
|
|
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo $CFG->wwwroot ?>css/select2.min.css">
|
|
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo $CFG->wwwroot ?>css/daterangepicker.css" />
|
|
|
|
|
|
|
|
<script src="<?php echo $CFG->wwwroot ?>/highcharts/highcharts.js"></script>
|
|
|
|
<script src="<?php echo $CFG->wwwroot ?>/highcharts/modules/series-label.js"></script>
|
|
|
|
<script src="<?php echo $CFG->wwwroot ?>/highcharts/modules/exporting.js"></script>
|
|
|
|
<script src="<?php echo $CFG->wwwroot ?>/highcharts/modules/export-data.js"></script>
|
|
|
|
<script src="<?php echo $CFG->wwwroot ?>/highcharts/modules/accessibility.js"></script>
|
|
|
|
<script src="<?php echo $CFG->wwwroot ?>/highcharts/themes/sand-signika.js"></script>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div class="layer-load">
|
|
|
|
<div class="lds-ring">
|
|
|
|
<div></div>
|
|
|
|
<div></div>
|
|
|
|
<div></div>
|
|
|
|
<div></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="d-flex" id="wrapper">
|
|
|
|
<!-- Sidebar -->
|
|
|
|
<div class="bg-color-1 border-right text-azul" id="sidebar-wrapper">
|
|
|
|
<div class="sidebar-heading text-center">
|
|
|
|
<img src="<?php echo $CFG->wwwroot ?>img/logo-ue.svg" width="200" class="img-fluid">
|
|
|
|
</div>
|
|
|
|
<div class="list-group list-group-flush">
|
|
|
|
<div data-uri="usuarios.html" class="list-group-item btn-seccion list-group-item-action bg-color-1 active">Usuarios</div>
|
|
|
|
<div data-uri="categorias.html" class="list-group-item btn-seccion list-group-item-action bg-color-1 admin">Categorias</div>
|
|
|
|
<div data-uri="recursos.html" class="list-group-item btn-seccion list-group-item-action bg-color-1 admin">Recursos</div>
|
|
|
|
<div data-uri="asignaciones.html" class="list-group-item btn-seccion list-group-item-action bg-color-1 ">Asignaciones</div>
|
|
|
|
<div data-uri="gamification.html" class="list-group-item btn-seccion list-group-item-action bg-color-1 admin">Gamification</div>
|
|
|
|
<div data-uri="reportes.html" class="list-group-item btn-seccion list-group-item-action bg-color-1">Reportes</div>
|
|
|
|
<div data-uri="licencia.html" class="list-group-item btn-seccion list-group-item-action bg-color-1 admin">Permisos</div>
|
|
|
|
<div data-uri="notificaciones.html" style="display: none;" class="list-group-item btn-seccion list-group-item-action bg-color-1 ">Notificaciones</div>
|
|
|
|
<div class="d-inline-block w-100 text-center py-4">
|
|
|
|
<a href="<?php echo $CFG->wwwuserhome; ?>" target="_blank" class="btn btn-outline-primary">Ver sitio</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /#sidebar-wrapper -->
|
|
|
|
<!-- Page Content -->
|
|
|
|
<div id="page-content-wrapper">
|
|
|
|
<nav class="navbar bg-color-1 border-bottom">
|
|
|
|
<button class="btn btn-primary" id="menu-toggle"><i class="fal fa-bars"></i></button>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
<li>
|
|
|
|
<input type="hidden" name="roladmin" id="roladmin" value="<?php echo $user->idrol; ?>">
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="<?php echo $CFG->wwwroot ?>runtime/logout.php" class="btn btn-primary">
|
|
|
|
<i class="fas fa-power-off"></i>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
<div class="container-fluid mainseccion">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /#page-content-wrapper -->
|
|
|
|
</div>
|
|
|
|
<?php require_once "../footer.php"; ?>
|
|
|
|
<script type="text/javascript" src="<?php echo $CFG->wwwroot ?>js/datatables.min.js"></script>
|
|
|
|
<script type="text/javascript" src="<?php echo $CFG->wwwroot ?>js/lodash.min.js"></script>
|
|
|
|
<script type="text/javascript" src="<?php echo $CFG->wwwroot ?>js/dataTables.checkboxes.min.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="<?php echo $CFG->wwwroot ?>js/bootstrap-select.min.js"></script>
|
|
|
|
<script type="text/javascript" src="<?php echo $CFG->wwwroot ?>js/bootstrap-select.defaults-es_ES.min.js"></script>
|
|
|
|
<script src="<?php echo $CFG->wwwroot ?>js/uppy.min.js"></script>
|
|
|
|
<script type="text/javascript" src="<?php echo $CFG->wwwroot ?>trumbowyg/trumbowyg.min.js"></script>
|
|
|
|
<script type="text/javascript" src="<?php echo $CFG->wwwroot ?>js/admin.js?no-cache=<?php echo random_int(0 , 100000) ?>"></script>
|
|
|
|
<script type="text/javascript" src="https://cdn.datatables.net/select/1.3.1/js/dataTables.select.min.js"></script>
|
|
|
|
<script type="text/javascript" src="https://cdn.datatables.net/searchpanes/1.2.1/js/dataTables.searchPanes.min.js"></script>
|
|
|
|
<script type="text/javascript" src="<?php echo $CFG->wwwroot ?>js/select2.min.js"></script>
|
|
|
|
<script type="text/javascript" src="<?php echo $CFG->wwwroot ?>js/moment.min.js"></script>
|
|
|
|
<script type="text/javascript" src="<?php echo $CFG->wwwroot ?>js/daterangepicker.js"></script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|