$_SESSION['choix2'] = $_POST['choix2']; } if ($_SESSION['choix1'] == $_SESSION['choix2']) { $_SESSION['choix2'] = 'non'; } if ($_SESSION['choix2'] == 'non') { $_SESSION['choix3'] = 'non'; } require_once ROOT . 'views/inscriptionCollegeLycee/v_Etape5.php'; } catch (\Exception $e) { Main::setFlashMessage($e->getMessage(), "error"); } break; case 'recap': try { $lesSpectacles = MSpectacle::getSpectaclesSaisonCouranteCollegeLycee(); if (!isset($_POST['choix3'])) { $_SESSION['choix3'] = 'non'; } else { $_SESSION['choix3'] = $_POST['choix3']; } if ($_SESSION['choix3'] == $_SESSION['choix1']) { $_SESSION['choix3'] = 'non'; } if ($_SESSION['choix3'] == $_SESSION['choix2']) { $_SESSION['choix3'] = 'non'; } if ($_SESSION['choix2'] == $_SESSION['choix1']) { $_SESSION['choix2'] = 'non'; } $Ent = array($_SESSION['ecole']->getNom(), 'Adresse 1' => $_SESSION['ecole']->getAdresse(), $_SESSION['ecole']->getCp(), $_SESSION['ecole']->getVille(), $_SESSION['ecole']->getDirecteur()->getTel(), $_SESSION['ecole']->getDirecteur()->getMail());
Main::setFlashMessage($e->getMessage(), "error"); } break; case 'Ecole': if ($_GET['type'] == 1) { $ListEcoleChoix = MEcole::getEcolesJeunePublic(); $_SESSION['idType'] = $_GET['type']; $_SESSION['type'] = $ListEcoleChoix; } if ($_GET['type'] == 2) { $ListEcoleChoix = MEcole::getEcolesCollegeLycee(); $_SESSION['idType'] = $_GET['type']; $_SESSION['type'] = $ListEcoleChoix; } require_once ROOT . 'views/kiosqueadmin/schools/v_School.php'; break; case 'Spectacle': if ($_GET['type'] == 1) { $listSpecEcole = MSpectacle::getSpectaclesSaisonCouranteJeunePublic(); $_SESSION['idType'] = $_GET['type']; $_SESSION['type'] = $listSpecEcole; } if ($_GET['type'] == 2) { $listSpecEcole = MSpectacle::getSpectaclesSaisonCouranteCollegeLycee(); $_SESSION['idType'] = $_GET['type']; $_SESSION['type'] = $listSpecEcole; } $actuel = MSaison::getSaisonCourante(); require_once ROOT . 'views/kiosqueadmin/shows/v_Spectacle.php'; break; }