<!--
/* Coded by Ing. Ulises Morales Ramirez */
-->

<?php
session_start();
if (isset($_POST['escuela'])) {
	$arr = explode("de ", $_POST['escuela']);
	$_SESSION["escuela"] = $arr[0];
	$_SESSION["localidad"]=$arr[1];
	$_SESSION["clave_escuela"] = $_POST['clave_escuela'];

//	$porciones = explode("de ", $_POST['escuela']);
//	var_dump($porciones);
}
?>
<!DOCTYPE html>
<html>

<head>
    <title>Sin titulo</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
          integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css"
          integrity="sha384-gfdkjb5BdAXd+lj+gudLWI+BXq4IuLW5IT+brZEZsLFm++aCMlF1V92rMkPaX4PP" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css" href="ownStyle.css" media="screen"/>
</head>

<body>
<div class="ripple-background">
    <div class="circle xxlarge shade1"></div>
    <div class="circle xlarge shade2"></div>
    <div class="circle large shade3"></div>
    <div class="circle mediun shade4"></div>
    <div class="circle small shade5"></div>
</div>

<div class="container">
    <!--div class="text-center" style="z-index: -1"><img src="images/header.png" width="800px"></div-->
    <div class="d-flex justify-content-center h-100">
        <div class="user_card">
            <div class="d-flex justify-content-center">
                <div class="brand_logo_container">
                    <img src="images/logo_geo.png" class="brand_logo" alt="Logo">
                </div>
                <div class="brand_logo_container1">
                    <img src="images/g980.png" class="brand_logo1" alt="Logo">
                </div>
                <div class="brand_logo_container2">
                    <img src="images/g1010.png" class="brand_logo1" alt="Logo">
                </div>
            </div>
            <div class="d-flex justify-content-center form_container">

                <form action="encuesta.php" method="post">

                    <input type="hidden" name="escuela" value="<?= $_SESSION["escuela"] ?>">

                    <div class="mt-4 text-center" style="margin-top: -20px!important;">
                        <h1>Escuela:</h1>
                        <h2><?= $_SESSION["escuela"] ?></h2>
                        <h4>Clave:</h4>
                        <h4><?= $_SESSION["clave_escuela"] ?></h4>
                        <div class="d-flex justify-content-center links" style="margin-top: 100px!important;">
                            ¿EN QUÉ LENGUAJE DESEA CONTESTAR?
                            <br>
                            ¿BA'AX TI T'AANIL A K'AAT A NÚUKTIK?
                        </div>
                    </div>

                    <div class="d-flex justify-content-center mt-3 login_container">
                        <div class="col-md-6">
                            <button type="submit" name="idioma" value="Español" class="btn login_btn">Español</button>
                        </div>
                        <div class="col-md-6">
                            <button type="submit" name="idioma" value="Maya" class="btn login_btn">Maya</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <footer>
        <div class="text-center fixed-bottom" style="margin-bottom: 20px">
            <img src="images/Logo-Horizontal-V2-blanco.png" width="400px">
            <div>
                <hr>
                <div class="text-center" style="margin-bottom: 10px">
                    <img src="images/g122.png" width="500px">
                </div>
    </footer>
</div>
</body>
</html>

