This commit is contained in:
2023-09-18 19:08:35 +00:00
parent d6bc6dde37
commit 76fe06b0df
28 changed files with 1259 additions and 1064 deletions

View File

@@ -1,6 +1,6 @@
<link rel="icon" type="image/png" href="imagenes/favicon.png" />
<link rel="stylesheet" href="css/bootstrap-ulsa.min.css" type="text/css">
<link rel="stylesheet" href="css/indivisa.css" type="text/css">
<link rel="stylesheet" href="css/sgi.css?rand=<?php echo rand(); ?>" type="text/css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/jquery-ui.css">
<link rel="stylesheet" href="<?= $ruta ?? '' ?>css/bootstrap-ulsa.min.css" type="text/css">
<link rel="stylesheet" href="<?= $ruta ?? '' ?>css/indivisa.css" type="text/css">
<link rel="stylesheet" href="<?= $ruta ?? '' ?>css/sgi.css?rand=<?php echo rand(); ?>" type="text/css">
<link rel="stylesheet" href="<?= $ruta ?? '' ?>css/style.css">
<link rel="stylesheet" href="<?= $ruta ?? '' ?>css/jquery-ui.css">

View File

@@ -1,16 +1,15 @@
<script defer src="js/sidebarmenu.js"></script>
<script defer src="<?= $ruta ?? '' ?>js/sidebarmenu.js"></script>
<?php
require_once 'class/c_login.php';
$ruta = "../";
require_once 'include/bd_pdo.php';
require_once ($ruta ?? '') . 'class/c_login.php';
require_once ($ruta ?? '') . 'include/bd_pdo.php';
$user = Login::get_user();
$user->access();
$pagina = substr(basename($_SERVER['PHP_SELF']), 0, -4);
if ($pagina != "main" && !$user->acceso) {
if (!in_array($pagina, ["main", "test"]) && !$user->acceso) {
header('Location: main.php?error=1');
exit;
}
@@ -19,11 +18,11 @@ $grupos = $user->admin ? queryAll("SELECT * FROM GRUPO ORDER BY grupo_nombre") :
function html_header($title, $header = null)
{
global $grupos, $user, $db;
global $grupos, $user, $db, $ruta;
?>
<aside id="sidebar" class="bg-light defaultShadow d-flex flex-column p-4">
<div class="d-flex align-items-center mb-5">
<div class="logotipo"><a href="https://lasalle.mx/" target="_blank"><img src="imagenes/logo_lasalle.png"></a>
<div class="logotipo"><a href="https://lasalle.mx/" target="_blank"><img src="<?= $ruta ?? '' ?>imagenes/logo_lasalle.png"></a>
</div>
<div class="flex-grow-1 d-flex justify-content-end">
<nav class="navbar navbar-expand d-none d-flex">
@@ -94,7 +93,7 @@ function html_header($title, $header = null)
<div class="container marco menu d-flex align-items-center">
<div class="logotipo">
<a href="https://lasalle.mx/" target="_blank">
<img src="imagenes/logo_lasalle.png">
<img src="<?= $ruta ?? '' ?>imagenes/logo_lasalle.png">
</a>
</div>
<div class="flex-grow-1 d-flex justify-content-end">

View File

@@ -2,7 +2,7 @@
require "include/constantes.php";
function html_header($title, $header = null, $links = [])
{
?>
?>
<nav class="navbar sticky-top navbar-light bg-white">
<header class="container-fluid">
<div class="menu">
@@ -14,18 +14,21 @@ function html_header($title, $header = null, $links = [])
<div class="row bg-info mx-0 barra-gris">
<?php
if ($header != null) {
?>
?>
<div class="marco">
<div class="col-sm-12">
<h2 class="text-muted"><?= $header; ?>
<h2 class="text-muted">
<?= $header; ?>
</div>
</div>
<?php } ?>
<div class="marco">
<div class="col-sm-12 py-3">
<h2 class="text-uppercase"><?= $title; ?></h2>
<h2 class="text-uppercase">
<?= $title; ?>
</h2>
</div>
</div>
</div>
<?php
}
<?php
}