$leVisiteurRole = GsbModele::getLeVisiteurRole(GsbUtilisateur::$Matricule); $leCompteRendu = GsbModele::getLeCompteRenduSiDelegue($_GET["matricule"], $_GET["num"], $leVisiteurRole["REG_CODE"], GsbUtilisateur::$Matricule); } else { if (GsbUtilisateur::$Matricule == $_GET["matricule"]) { $leCompteRendu = GsbModele::getLeCompteRendu(GsbUtilisateur::$Matricule, $_GET["num"]); } } if ($leCompteRendu) { $leCompteRenduEchantillonsOffert = GsbModele::getLeCompteRenduLesEchantillonsOffert($leCompteRendu["VIS_MATRICULE"], $leCompteRendu["RAP_NUM"]); } } Vue::$title = "Details compte rendu"; Controleur::composeVue("vues/compte-rendu/details.php"); break; case "ajax-saisie-echantillons": Controleur::ajaxActiver(); Controleur::doitValiderAutorisation(GsbUtilisateur::estRoleVisiteur(), "Vous devez ĂȘtre visiteur"); // $multidataParam = OutilsMultidataForm::ajaxReceive(); $lesMedicaments = GsbModele::getLesMedicaments(); $choixMedicament = ""; $qteOfferte = 1; $valid["choixMedicament"] = 1; $valid["qteOfferte"] = 1; // Si formulaire if (isset($_POST["choixMedicament"]) && isset($_POST["qteOfferte"])) { $choixMedicament = $_POST["choixMedicament"]; $qteOfferte = $_POST["qteOfferte"]; // $valid = validerSaisieEchantillons($choixMedicament, $qteOfferte); }