File "index.php.bak"
Full Path: C:/wamp64/www/sistemas/index.php.bak
File size: 4.81 KB
MIME-type: text/x-php
Charset: utf-8
<?php
session_start();
if (!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] !== true) {
header("Location: login.php");
exit();
}
include("connection.php");
$con = connection();
?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Menú Sistemas Avicampo</title>
<link rel="icon" type="image/png" href="img/icono1.png">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Segoe UI", Arial, sans-serif;
height: 100vh;
display: flex;
background: #f3f4f6;
}
/* Sidebar */
.sidebar {
width: 260px;
background: #1f2937;
color: #fff;
display: flex;
flex-direction: column;
padding: 20px 15px;
}
.sidebar .logo {
width: 100%;
margin: 0 auto 20px;
}
.sidebar .menu-button {
display: flex;
align-items: center;
gap: 12px;
padding: 10px;
margin: 8px 0;
border-radius: 10px;
background: #111827;
text-decoration: none;
color: #d1d5db;
transition: 0.3s;
}
.sidebar .menu-button:hover {
background: #2563eb;
color: #fff;
}
.button-image {
width: 35px;
height: 35px;
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}
.button-text {
font-size: 14px;
font-weight: 500;
}
/* User info */
.user-info {
margin-top: auto;
padding-top: 15px;
border-top: 1px solid #374151;
font-size: 13px;
}
.user-info a {
display: inline-block;
margin-top: 5px;
padding: 5px 10px;
border-radius: 5px;
text-decoration: none;
font-size: 13px;
}
.logout {
background: #e74c3c;
color: #fff;
}
.GLPI {
background: #f1ae27;
color: #fff;
}
/* Contenido */
.content {
flex: 1;
display: flex;
flex-direction: column;
}
iframe {
flex: 1;
border: none;
width: 100%;
}
.footer {
text-align: center;
padding: 10px;
font-size: 13px;
background: #fff;
border-top: 1px solid #ddd;
}
</style>
</head>
<body>
<div class="sidebar">
<img src="img/sistemas.png" class="logo" alt="logo">
<?php
$buttons = [
['text' => 'CORREOS SANMARINO', 'link' => 'correos/buscarCorreo.php', 'image' => 'img/correo.png'],
['text' => 'SESION INICIO', 'link' => 'sesion/sesion.php', 'image' => 'img/sesion.png'],
['text' => 'SERVIDORES', 'link' => 'servidores/servidores.php', 'image' => 'img/servidor.png'],
['text' => 'NAS', 'link' => 'NAS/NAS.php', 'image' => 'img/nas.png'],
['text' => 'REGISTRO CELULARES', 'link' => 'http://192.200.100.56:8950/glpi/front/menu.php', 'image' => 'img/registroCelular.png'],
['text' => 'MANUAL DE USO APP', 'link' => 'ManualAPP/subefoto.PHP', 'image' => 'img/manual.png'],
['text' => 'USUARIOS VPN', 'link' => 'userVPN/userVPN.php', 'image' => 'img/vpn.png'],
['text' => 'INTERNET', 'link' => 'internet/red.php', 'image' => 'img/wifi.png'],
['text' => 'IMPRESORAS', 'link' => 'impresoras/buscarImpresora.php', 'image' => 'img/impresora.png'],
['text' => 'EQUIPOS', 'link' => 'disponibles/subMenu.php', 'image' => 'img/inventario.png'],
];
foreach ($buttons as $button) {
echo '<a href="'.$button['link'].'" class="menu-button">';
echo '<div class="button-image" style="background-image:url(\''.$button['image'].'\');"></div>';
echo '<span class="button-text">'.$button['text'].'</span>';
echo '</a>';
}
?>
<div class="user-info">
Usuario: <?php echo $_SESSION['nombre']; ?><br>
<a href="logout.php" class="logout">Cerrar Sesión</a>
<a href="http://192.200.100.56:8950/glpi/index.php?noAUTO=1" class="GLPI">Ir a GLPI</a>
</div>
</div>
<div class="content">
<iframe title="MesaAyuda" width="1140" height="541.25" src="https://app.powerbi.com/view?r=eyJrIjoiZTY2ZTY5ODQtN2Q3Ny00MWIxLThjYTMtMTJjYTE0MjcxNjVmIiwidCI6ImI0OTViMDI5LTY3N2EtNDc5Yy04Yjk2LTQ5Mjg0OGYzYTQyMiJ9" frameborder="0" allowFullScreen="true"></iframe>
<div class="footer">
© Avicampo <?php echo date('Y'); ?>
</div>
</div>
</body>
</html>