File "index.php.bak"

Full Path: C:/wamp64/www/porteria/ANTERIOR/node_modules/index.php.bak
File size: 6.71 KB
MIME-type: text/x-php
Charset: utf-8

<?php
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">
	<meta name="author" content="Sebastian Obando">
    <meta name="copyright" content="Sebastian Obando">
    <title>Menú Porteria</title>
    <link rel="icon" type="image/png" href="img/icono.png"><!-- Cambia el icono de los titulos en las pestañas ico 16X16 -->
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: Arial, sans-serif;
            overflow-x: hidden;
            position: relative;
            min-height: 100vh;
        }
        .logo {
            display: block;
            margin: 0 auto 1.5rem;
        }
        
        
        /* Estilos del carrusel de fondo */
        .carousel-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }
        
        .carousel-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease-in-out;
            background-size: cover;
            background-position: center;
        }
        
        .carousel-slide.active {
            opacity: 1;
        }
        
        /* Estilos del menú */
        .menu-container {
            display: flex;
            justify-content: center;
            padding: 20px;
            flex-wrap: wrap;
            gap: 20px;
            margin-top: 30px;
        }
        
        .menu-button {
            width: 150px;
            height: 180px;
            border-radius: 15px;
            border: 2px solid #FF8C00;
            display: flex;
            flex-direction: column; /* Organiza el contenido en columna */
            align-items: center;
            justify-content: space-between; /* Distribuye el espacio entre la imagen y el texto */
            color: #000;
            font-weight: bold;
            text-decoration: none;
            position: relative;
            cursor: pointer;
            transition: transform 0.3s ease;
            background-color: white;
            padding: 15px 10px; /* Añade espacio interno */
        }
        
        .menu-button:hover {
            transform: scale(1.05);
        }
        
        .button-image {
            width: 80px; /* Tamaño fijo para la imagen */
            height: 80px;
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            margin-bottom: 10px; /* Espacio entre la imagen y el texto */
        }
        
        .button-text {
            background-color: rgba(255, 255, 255, 0.7);
            padding: 5px 10px;
            border-radius: 5px;
            text-align: center;
            font-size: 12px; /* Tamaño de texto más pequeño para que quepa mejor */
        }
        
        /* Estilos del footer */
        .footer {
            position: fixed;
            bottom: 20px;
            width: 100%;
            text-align: center;
        }
        
        @font-face {
		font-family: 'Gardenia';
		src: local('Gardenia Black Italic'), local('Gardenia-Black-Italic'),
			url('Gardenia-BlackItalic.woff2') format('woff2'),
			url('Gardenia-BlackItalic.woff') format('woff'),
			url('Gardenia-BlackItalic.ttf') format('truetype');
		font-weight: 900;
		font-style: italic;
		}

		.copyright {
			display: inline-block;
			padding: 8px 20px;
			background-color: white;
			border: 1px solid #000;
			border-radius: 5px;
			font-size: 14px;
			font-family: 'Gardenia', sans-serif;
			font-weight: 900; /* Opcional, según la definición de tu fuente */
			font-style: italic; /* Opcional, según la definición de tu fuente */
		}

    </style>
</head>
<body>

<!-- Carrusel de fondo -->
<div class="carousel-container">
    <?php
    // Aquí puedes cambiar las rutas de las imágenes del carrusel
    $carouselImages = [
        'img/carrusel1.jpg',
        'img/carrusel2.jpg',
        'img/carrusel3.jpg',
        'img/carrusel4.jpg'
    ];
    
    foreach ($carouselImages as $index => $image) {
        $activeClass = ($index === 0) ? 'active' : '';
        echo '<div class="carousel-slide ' . $activeClass . '" style="background-image: url(\'' . $image . '\');"></div>';
    }
    ?>
</div>

<!-- Menú de botones -->
<img src="img/porteria.png" alt="" width="37" height="37" class="logo" style="width: 650px; height: auto; display: block; margin: 0 auto;" />

<div class="menu-container">
    <?php
    // Configuración de los botones
    $buttons = [
        ['text' => 'VISITANTES', 'link' => 'colaboradores/ingresoVisitantes.php', 'image' => 'img/ingreso.png'],
        ['text' => 'HISTORICO VISITANTES', 'link' => 'colaboradores/registrosVisitantes.php', 'image' => 'img/registroV.png'],
		['text' => 'PERMISOS COLABORADORES', 'link' => 'colaboradores/permisosColaboradores.php', 'image' => 'img/permiso.png'],
        ['text' => 'CREAR VISITANTE', 'link' => 'colaboradores/creacionVisitantes.php', 'image' => 'img/nuevo.png'],
        ['text' => 'VEHICULOS', 'link' => 'vehiculos/porteria.php', 'image' => 'img/ingresoCarro.png'],
        ['text' => 'HISTORICO VEHICULOS', 'link' => 'vehiculos/buscarRegistros.php', 'image' => 'img/registroC.png']
    ];
    
    foreach ($buttons as $button) {
        echo '<a href="' . $button['link'] . '" class="menu-button">';
        // Cambiamos la estructura para usar un div para la imagen en lugar de background-image
        echo '<div class="button-image" style="background-image: url(\'' . $button['image'] . '\');"></div>';
        echo '<span class="button-text">' . $button['text'] . '</span>';
        echo '</a>';
    }
    ?>
</div>

<!-- Footer con copyright -->
<div class="footer">
    <div class="copyright">
        &#169; Avicampo <?php echo date('Y'); ?>
    </div>
</div>

<script>
    // Script para el carrusel
    document.addEventListener('DOMContentLoaded', function() {
        const slides = document.querySelectorAll('.carousel-slide');
        let currentSlide = 0;
        
        function nextSlide() {
            slides[currentSlide].classList.remove('active');
            currentSlide = (currentSlide + 1) % slides.length;
            slides[currentSlide].classList.add('active');
        }
        
        // Cambiar slide cada 5 segundos
        setInterval(nextSlide, 5000);
    });
</script>

</body>
</html>