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; }
} if ($_SESSION['choix1'] == $_SESSION['choix2']) { $_SESSION['choix2'] = 'non'; } if ($_SESSION['choix2'] == 'non') { $_SESSION['choix3'] = 'non'; $_SESSION['impo3'] = null; } require_once ROOT . 'views/inscriptionEcole/v_Etape5.php'; } catch (\Exception $e) { Main::setFlashMessage($e->getMessage(), "error"); } break; case 'etape6': try { $lesSpectacles = MSpectacle::getSpectaclesSaisonCouranteJeunePublic(); if (!isset($_POST['choix3'])) { $_SESSION['choix3'] = 'non'; $_SESSION['impo3'] = null; } else { $_SESSION['choix3'] = $_POST['choix3']; $_SESSION['impo3'] = $_POST['impo3']; } if ($_SESSION['choix3'] == $_SESSION['choix1']) { $_SESSION['choix3'] = 'non'; } if ($_SESSION['choix3'] == $_SESSION['choix2']) { $_SESSION['choix3'] = 'non'; } if ($_SESSION['choix2'] == $_SESSION['choix1']) { $_SESSION['choix2'] = 'non';