<!DOCTYPE html>
<html lang="es">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Gestión de Fotos</title>
    <link rel="stylesheet" href="style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css" integrity="sha512-2SwdPD6INVrV/lHTZbO2nodKhrnDdJK9/kg2XD1r9uGqPo1cUbujc+IYdlYdEErWNu69gVcYgdxlmVmzTWnetw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>

<body>
    <nav>
        <ul>
            <li><a href="index.php?album=1&foto=1">Sevilla</a></li>
            <li><a href="index.php?album=2&foto=1">Boda de la prima Lola</a></li>
            <li><a href="index.php?album=3&foto=1">Comida en el monte</a></li>
        </ul>
    </nav>
    <main>
        <?php
        $album = $_GET['album'];
        $foto = $_GET['foto'];
        ?>
        <img src="albunes/<?php echo $album; ?>/<?php echo $foto; ?>.jpg" alt="">
        <nav>
            <ul>
                <li><a href="index.php?album=<?php echo $album; ?>&foto=<?php echo $foto - 1; ?>"><i class="fa-solid fa-angle-left"></i> Anterior</a></li>
                <li><a href="index.php?album=<?php echo $album; ?>&foto=<?php echo $foto + 1; ?>">Siguiente <i class="fa-solid fa-angle-right"></i></a></li>
            </ul>
        </nav>
    </main>

</body>

</html>