Exemple #1
0
             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);
     }
     Controleur::composeVue("vues/compte-rendu/ajax-saisie-echantillons.multidata.form.php");
     break;
 case "saisir":