></div> <div class="form-group"><input class="form-control" placeholder="Mot de passe" name="password" type="password" <?php OutilsForm::value($password); ?> ></div> <?php if (!is_null($info_connexion)) { ?> <p class="text-center text-danger"><?php echo $info_connexion; ?> </p> <?php } ?> <div class="checkbox"><label><input name="remember" type="checkbox" value="1" <?php OutilsForm::checked($remember); ?> >Se souvenir de moi</label></div> <?php OutilsForm::implanterFormulaireId("connexion"); ?> <input type="submit" class="btn btn-lg btn-success btn-block" value="Se connecter"> </fieldset> </form> </div> </div> </div> </div> <!-- fin de la vue : connexion -->
<!-- vue : statistique/famille-médicament --> <?php //print_r($familleMedicament); ?> <div class="row"> <div class="col-xs-12"> <div class="panel panel-default"> <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-list-alt fa-fw"></i> Pourcentage des médicaments par famille</h3></div> <div class="panel-body"> <!-- On affiche le total des médicaments en allant chercher cette donnée dans $ui t dans le contrôleur statistique.php --> <?php OutilsForm::success("Total des médicament : " . $familleMedicament["total"]); ?> <div class="dataTable_wrapper"> <table class="table table-hover" id="DataTableStatistique"> <thead> <tr> <th>Nom de la famille</th> <th>Total</th> <th>Pourcentage</th> </tr> </thead> <tbody> <?php foreach ($familleMedicament["stat"] as $uneFamille) { ?> <tr> <td><?php echo $uneFamille["FAM_LIBELLE"] . " (" . $uneFamille["FAM_CODE"] . ")"; ?> </td>
} else { ?> <form action="<?php echo OutilsUrl::composer("medicament", "details"); ?> " method="GET" class="form-inline"> <?php OutilsUrl::formComposerInput("medicament", "details"); ?> <div class="form-group"> <select class="form-control" name="depot" id="depot" onchange="this.form.submit()"> <?php foreach ($lesMedicaments as $unMedicament) { ?> <option <?php OutilsForm::selectedCompose($leMedicamentDepot, $unMedicament["MED_DEPOTLEGAL"]); ?> ><?php echo $unMedicament["MED_NOMCOMMERCIAL"]; ?> </option> <?php } ?> </select> </div> <div class="btn-group" role="group" aria-label="Navigation"> <?php if ($leMedicament) { if ($leMedicamentPrecedant) { ?>
<!-- vue : statistique/visite-labo --> <div class="row"> <div class="col-xs-12"> <div class="panel panel-default"> <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-list-alt fa-fw"></i> Pourcentage des visites par labo</h3></div> <div class="panel-body"> <!-- On affiche le total des médicaments en allant chercher cette donnée dans $ui t dans le contrôleur statistique.php --> <?php OutilsForm::success("Total des visiteurs : " . $lesVisiteurs["total"]); ?> <div class="dataTable_wrapper"> <table class="table table-hover" id="DataTableStatistique"> <thead> <tr> <th>Nom du labo</th> <th>Total</th> <th>Pourcentage</th> </tr> </thead> <tbody> <?php foreach ($lesVisiteurs["stat"] as $unVisiteur) { ?> <tr> <td><?php echo $unVisiteur["LAB_NOM"] . " (" . $unVisiteur["LAB_CODE"] . ")"; ?> </td> <td><?php echo $unVisiteur["nb"]; ?>
$subject = "Contact " . GsbConfig::$SiteShortUrl . " : " . $subject; $message = '[Mail from ' . GsbConfig::$SiteShortUrl . ']' . "\r\n\r\n" . 'Nom: ' . $name . "\r\n" . 'Sujet: ' . $subject . "\r\n" . 'Email: ' . $email . "\r\n\r\n" . 'Message' . "\r\n" . '--------' . "\r\n" . $message . "\r\n" . '--------' . "\r\n\r\n" . "Le: " . date("d/m/Y") . " a: " . date("H:i"); try { if (@mail($email_send, $subject, $message, $headers)) { $okMail = true; } } catch (Exception $e) { } unset($_SESSION["FormContactHashkey"]); } } // Si temps d'attende if ($okMail || !$okTime) { $chaineDeRequete = isset($_GET["responsecode"]) && isset($_GET["ressource"]) ? "responsecode=" . $_GET["responsecode"] . "&ressource=" . $_GET["ressource"] : null; Vue::$HeaderSupplement .= '<META http-equiv="Refresh" content="5; URL=' . OutilsUrl::composer("page", "contact", $chaineDeRequete) . '">'; } // OutilsForm::genFormulaireId("contact"); Controleur::composeVue("vues/page/contact.php"); break; case "credit": Vue::$title = "Crédit"; Controleur::composeVue("vues/page/credit.php"); break; case "debug": // Verifie que l'utilisateur est un administrateur Controleur::doitValiderAutorisation(GsbUtilisateur::estAdministrateur(), "Vous devez être administrateur"); Vue::$title = "Debug"; Controleur::composeVue("vues/page/debug.php"); break; }
<!-- vue : practicien/liste --> <div class="row"> <div class="col-xs-12"> <div class="panel panel-default"> <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-list-alt fa-fw"></i> Liste des praticiens</h3></div> <div class="panel-body"> <?php if ($lesPraticiensSontVide) { ?> <h3 class="text-center">Aucun praticien</h3> <?php } else { ?> <?php OutilsForm::info("Cliquer sur un praticien pour avoir plus de détail"); ?> <div class="dataTable_wrapper"> <table class="table table-hover" id="DataTablePraticien"> <thead> <tr> <th>#</th> <th>Nom</th> <th>Prénom</th> <th>Adresse</th> <th>Code postal</th> <th>Ville</th> </tr> </thead> <tbody> <?php foreach ($lesPraticiens as $unPraticien) {
<div class="panel panel-default"> <div class="panel-heading"><h4 class="panel-title"></div> <div class="panel-body"> <?php OutilsForm::implanterAjaxMultipleDonnees($echantillonsDonnees); ?> </div> <div class="panel-footer"><a id="MD-echantillonsDonnees-append" class="btn btn-default" onclick="AjaxMultipleDonneesAjouter("echantillonsDonnees","http://ppe.localhost/GSB/trunk/compte-rendu/ajax-saisie-echantillons",25, null);"><i class="fa fa-plus-circle fa-fw"></i> Ajouter</a></div> </div> */ ?> </div> </div> <?php OutilsForm::implanterFormulaireId("compte-rendu-saisie"); ?> <div class="col-md-6 col-md-offset-3"> <div class="form-group"><input class="btn btn-success form-control btn-success" type="submit" value="Envoyer le compte-rendu"></div> <div class="form-group"><input class="btn btn-default form-control" type="reset" value="Réinitialiser le formulaire"></div> </div> </form> </div> <?php } } ?> </div> </div> </div>
} else { ?> <form action="<?php echo OutilsUrl::composer("praticien", "details"); ?> " method="GET" class="form-inline"> <?php OutilsUrl::formComposerInput("praticien", "details"); ?> <div class="form-group"> <select class="form-control" name="num" id="depot" onchange="this.form.submit()"> <?php foreach ($lesPraticiens as $unPraticien) { ?> <option <?php OutilsForm::selectedCompose($lePraticienNum, $unPraticien["PRA_NUM"]); ?> ><?php echo $unPraticien["PRA_NOM"] . " " . $unPraticien["PRA_PRENOM"]; ?> </option> <?php } ?> </select> </div> <div class="btn-group" role="group" aria-label="Navigation"> <?php if ($lePraticien) { if ($lePraticienPrecedant) { ?>
$echantillonsMultidataForm["errors"][] = "L'echantillion code \"" . $saisieEchantillons["choixMedicament"] . "\" est renseigné une ou plusieurs fois"; } $validEchantillons["echantillons"] = 0; $echantillonsFaits[$saisieEchantillons["choixMedicament"]]++; } else { $echantillonsFaits[$saisieEchantillons["choixMedicament"]] = 1; } } if ($valid["echantillons"] == 1) { $valid["echantillons"] = OutilsForm::valideListValid($validEchantillons); } } } // Si tout est bon ! if (OutilsForm::valideListValid($valid) && OutilsForm::valideFormulaireId("compte-rendu-saisie")) { // On ajoute a la base de donnée $motif = $motifAutreActive ? $motifAutre : $lesMotifs[$choixMotif]; $rapportKeys = GsbModele::insererCompteRendu(GsbUtilisateur::$Matricule, $choixPraticien, $dateVisite, $bilan, $motif, $remplacant, $documentation, $echantillonsMultidataForm["values"]); // $okCompteRendu = true; } } // if (!$okCompteRendu) { Vue::configToMultidataForm("echantillonsDonnees", $echantillonsMultidataForm); } // OutilsForm::genFormulaireId("compte-rendu-saisie"); Controleur::composeVue("vues/compte-rendu/saisie.php"); break; }
<!-- vue : medicament/liste --> <div class="row"> <div class="col-xs-12"> <div class="panel panel-default"> <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-list-alt fa-fw"></i> Liste des praticiens</h3></div> <div class="panel-body"> <?php if ($lesMedicamentsSontVide) { ?> <h3 class="text-center">Aucun Medicaments</h3> <?php } else { ?> <?php OutilsForm::info("Cliquer sur un médicament pour avoir plus de détail"); ?> <div class="dataTable_wrapper"> <table class="table table-hover" id="DataTableMedicaments"> <thead> <tr> <th>Dépot legal</th> <th>Nom</th> </tr> </thead> <tbody> <?php foreach ($lesMedicaments as $unMedicament) { ?> <tr class="link" onclick="location.href='<?php echo OutilsUrl::composer("medicament", "details", "depot=" . $unMedicament["MED_DEPOTLEGAL"]); ?>
unset($_SESSION["RappelUtilisateurLogin"]); } if (isset($_SESSION["RappelUtilisateurActif"])) { unset($_SESSION["RappelUtilisateurActif"]); } } unset($_SESSION["FormUtilisateurHashkey"]); break; } else { $info_connexion = "Login ou mot de passe incorrect"; } } $login = $_POST["login"]; $remember = isset($_POST["remember"]); } else { $login = isset($_SESSION["RappelUtilisateurLogin"]) ? $_SESSION["RappelUtilisateurLogin"] : ""; $remember = isset($_SESSION["RappelUtilisateurActif"]); } $password = null; // OutilsForm::genFormulaireId("connexion"); Controleur::composeVue("vues/compte/connexion.php", false); break; case "deconnexion": Vue::$title = "Deconnexion"; $rechargement_temps = 5; Vue::$HeaderSupplement .= '<META http-equiv="Refresh" content="' . $rechargement_temps . '; URL=' . OutilsUrl::composer("page", "accueil") . '">'; GsbUtilisateur::seDeconnecter(); Controleur::composeVue("vues/compte/deconnexion.php", false); break; }
?> ><?php echo $unMedicament['MED_NOMCOMMERCIAL'] . " (" . $unMedicament['MED_DEPOTLEGAL'] . ")"; ?> </option><?php } ?> </select> <?php OutilsForm::validProbleme($valid["choixMedicament"], "Le médicament"); ?> </td> <td> <input type="number" min="1" max="500" class="form-control" name="<?php echo OutilsMultidataForm::genererName($multidataParam, "qteOfferte"); ?> " placeholder="Quantité offerte" <?php OutilsForm::value($qteOfferte); ?> > <?php OutilsForm::validProbleme($valid["qteOfferte"], "La quantité offerte"); ?> </td> <td> <a class="btn btn-default" onclick='multidataPop(<?php echo '"' . $multidataParam["id"] . '","' . $multidataParam["place"] . '"'; ?> );'><i class="fa fa-minus-circle fa-fw"></i> Supprimer</a> </td> <!-- fin de la vue : compte-rendu/ajax-saisie-echantillons.multidata.form -->
public static function validProblemePourNombreDeCaractere($validProb, $message, $nbCaractere, $minCaractere, $maxCaractere) { $explication = "Vous n’êtes pas dans l’intervalle de caractère autorisé : " . $minCaractere . "<= <strong>" . $nbCaractere . "</strong> <=" . $maxCaractere; if ($validProb == 0) { OutilsForm::incorrecte($message, $explication); } else { if ($validProb == -1) { OutilsForm::erreur($message, $explication); } } }
<table class="table table-striped"> <thead><tr><?php foreach ($multidataTableColumns as $colimnsTitle) { echo "<th>" . $colimnsTitle . "</th>"; } ?> <th>Actions</th></tr></thead> <tbody id="<?php echo "multidata_" . $multidataId . "_table"; ?> "></tbody> </table> <?php if (count($data["errors"]) != 0) { foreach ($data["errors"] as $oneError) { OutilsForm::danger($oneError); } } ?> </div> <div class="panel-footer"> <div class="pull-right"> <a id="<?php echo "multidata_" . $multidataId . "_append"; ?> " class="btn btn-default" onclick='multidataAdd("<?php echo $multidataId; ?> ");'><i class="fa fa-plus-circle fa-fw"></i> Ajouter</a> <a id="<?php echo "multidata_" . $multidataId . "_popall";
<!-- vue : statistique/type-praticiens --> <div class="row"> <div class="col-xs-12"> <div class="panel panel-default"> <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-list-alt fa-fw"></i> Pourcentage des praticiens par type</h3></div> <div class="panel-body"> <!-- On affiche le total des médicaments en allant chercher cette donnée dans $ui t dans le contrôleur statistique.php --> <?php OutilsForm::success("Total des praticiens : " . $lesPraticiens["total"]); ?> <div class="dataTable_wrapper"> <table class="table table-hover" id="DataTableStatistique"> <thead> <tr> <th>Nom du type</th> <th>Total</th> <th>Pourcentage</th> </tr> </thead> <tbody> <?php foreach ($lesPraticiens["stat"] as $unType) { ?> <tr> <td><?php echo $unType["TYP_LIBELLE"] . " (" . $unType["TYP_CODE"] . ")"; ?> </td> <td><?php echo $unType["nb"]; ?>
<!-- vue : compte-rendu/liste --> <div class="row"> <div class="col-xs-12"> <div class="panel panel-default"> <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-list-alt fa-fw"></i> Liste de mes comptes rendus</h3></div> <div class="panel-body"> <?php if ($lesComptesRendusDuVisiteurSontVide) { ?> <h3 class="text-center">Aucun compte-rendu</h3> <?php } else { ?> <?php OutilsForm::info("Cliquer sur un compte rendu pour avoir plus de détail"); ?> <div class="dataTable_wrapper"> <table class="table table-hover" id="DataTableCompteRendu"> <thead> <tr> <th>#</th> <th>Praticien</th> <th>Date</th> <th>Date de visite</th> <th>Bilan</th> <th>Motif</th> </tr> </thead> <tbody> <?php foreach ($lesComptesRendusDuVisiteur as $unCompteRendu) {
<?php OutilsForm::validProbleme($valid_question, "Question/Remarque/Bug"); ?> </div> <div class="form-group"> <label for="message">Message</label> <textarea rows="8" class="form-control" name="message" id="message" maxlength="512" placeholder="Message"><?php echo $message; ?> </textarea> <?php OutilsForm::validProblemePourNombreDeCaractere($valid_message, "Le message", strlen($message), 3, 512); ?> </div> <?php OutilsForm::implanterFormulaireId("contact"); ?> <div class="col-md-6 col-md-offset-3"> <div class="form-group"><input class="btn btn-success form-control btn-success" type="submit" value="Envoyer le message"></div> <div class="form-group"><input class="btn btn-default form-control" type="reset" value="Réinitialiser le formulaire"></div> </div> </form> </div> <?php } } } } ?> </div> </div>