<?php
    session_start();

    include 'inc/bdd.php';
    include 'inc/fonctions.php';
?>

<!DOCTYPE html>
<html lang="fr">
    <head>
        <?php
            if ( isset( $_GET[ "pages" ] ) && $_GET[ "pages" ] == 'passerelle' ) {
                echo ' <title>Inscription à la formation Passerelle</title>';
            } elseif ( isset( $_GET[ "pages" ] ) && $_GET[ "pages" ] == 'trajectoire' ) {
                echo ' <title>Concours Trajectoire Management SESSION 2021</title>';
            } elseif ( isset( $_GET[ "pages" ] ) && $_GET[ "pages" ] == 'atout3' ) {
                echo ' <title>Inscription à la formation Atout+3</title>';
            } elseif ( isset( $_GET[ "pages" ] ) && $_GET[ "pages" ] == 'gala' ) {
                echo ' <title>Inscription au Gala EM Strasbourg 2019</title>';
            } elseif ( isset( $_GET[ "pages" ] ) && $_GET[ "pages" ] == 'unistrapass' ) {
                echo ' <title>Inscription au concours UNISTRAPASS PGE</title>';
            } elseif ( isset( $_GET[ "pages" ] ) && $_GET[ "pages" ] == 'unistrapassbai' ) {
                echo ' <title>Inscription au concours Unistrapass Bachelor</title>';
            }
            elseif ( isset( $_GET[ "pages" ] ) && $_GET[ "pages" ] == 'ouvertureettalents' ) {
                echo ' <title>Inscription au concours Ouverture et Talents</title>';
            }
        ?>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="css/normalize.css">
        <link rel="stylesheet" href="../_src/css/global.css"/>
        <link rel="stylesheet" href="css/styles.css" />
        <link rel="stylesheet" href="css/jquery-ui.css">
        <link rel="stylesheet" href="css/jquery.fancybox.css">
        <script src="js/jquery.js"></script>
        <script src="js/jquery-ui.js"></script>
        <script src="js/jquery.fancybox.js"></script>
        <script src="js/html5shiv.js"></script>
        <script src="../../_src/js/global.js"></script>
        <script src="js/javascript.js"></script>
        <script src='https://www.google.com/recaptcha/api.js?hl=fr'></script>
    </head>
    <body>
        <?php
            if ( isset( $_GET[ "pages" ] ) && $_GET[ "pages" ] == 'passerelle' ) {
                $link  = "";
                $title = "Inscription à la formation Passerelle";
            } elseif ( isset( $_GET[ "pages" ] ) && $_GET[ "pages" ] == 'trajectoire' ) {
                $link  = "";
                $title = "Concours Trajectoire Management SESSION 2024";
            } else if ( isset( $_GET[ "pages" ] ) && $_GET[ "pages" ] == 'ecricomebai' ) {
                $link  = "";
                $title = "Inscription à la formation concours Ecricome Bachelor";
            } else if ( isset( $_GET[ "pages" ] ) && $_GET[ "pages" ] == 'unistrapass' ) {
                $link  = "";
                $title = "Inscription au concours UNISTRAPASS PGE";
            } elseif (isset( $_GET[ "pages" ] ) && $_GET[ "pages" ] == 'ouvertureettalents') {
              $link  = "";
              $title = "Inscription au dispositif Ouverture et Talents";
            } else if ( isset( $_GET[ "pages" ] ) && $_GET[ "pages" ] == 'unistrapassbai' ) {
              $link  = "";
              $title = "Inscription au concours Unistrapass Bachelor";
            } else if ( isset( $_GET[ "pages" ] ) && $_GET[ "pages" ] == 'gala' ) {
                $link  = "";
                $title = "Inscription au Gala 2019";
            } else {
                $link  = "";
                $title = "";
            }
            include '../_src/elements/header.php';
        ?>
        <section>
            <div id = "content">
                <?php
                    require_once "inc/recaptchalib.php";

                    $pages = array(
                        'passerelle',
                        'trajectoire',
                        'ecricomebai',
                        'unistrapass',
                        'unistrapassbai',
                        'paiement',
                        'gala',
                        'ouvertureettalents'
                    );

                    if ( isset( $_GET[ "pages" ] ) && in_array( $_GET[ "pages" ], $pages ) )
                        include 'inc/page.php';
                ?>
            </div>
        </section>
        <?php include '../_src/elements/footer.php'; ?>
    </body>
</html>
