Example #1
0
							<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) {
        ?>
								<tr class="link" onclick="location.href='<?php 
        echo OutilsUrl::composer("compte-rendu", "details", "matricule=" . $unCompteRendu["VIS_MATRICULE"] . "&num=" . $unCompteRendu["RAP_NUM"]);
        ?>
'">
									<td><?php 
        echo $unCompteRendu["RAP_NUM"];
        ?>
</td>
									<td><?php 
        OutilsUrl::composerLien($unCompteRendu["PRA_NOM"] . " " . $unCompteRendu["PRA_PRENOM"] . " <span class='text-nowrap'>(N°" . $unCompteRendu["PRA_NUM"] . ")</span>", "praticien", "details", "num=" . $unCompteRendu["PRA_NUM"]);
        ?>
</td>
									<td><?php 
        echo $unCompteRendu["RAP_DATETIME"];
        ?>
</td>
									<td><?php 
Example #2
0
<!-- vue : médicament/details -->
<div class="row">
	<div class="col-lg-4 col-md-5">
		<div class="panel panel-default">
			<div class="panel-heading"><h3 class="panel-title"><i class="fa fa-search fa-fw"></i> Choix médicament</h3></div>
			<div class="panel-body">
				<?php 
if ($lesMedicamentsSontVide) {
    ?>
					<h3 class="text-center">Aucun médicament</h3>
				<?php 
} 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"];
        ?>
Example #3
0
 /**
  * Utilise la fonction composer pour crée un lien controleur vue et l'afficher dans l'application gsb
  * @param $texteLien est le lien à afficher, $nomControleur est le nom du controlleur, $nomVue est le nom de la vue; $chaineDeRequete est une chaine a ajouté a la fin de l'url
  */
 public static function composerLien($texteLien, $nomControleur = null, $nomVue = null, $chaineDeRequete = null)
 {
     echo '<a href="' . OutilsUrl::composer($nomControleur, $nomVue, $chaineDeRequete) . '">' . $texteLien . "</a>";
 }
Example #4
0
             $headers = 'Content-Type: text/plan; charset="utf-8"' . "\r\n" . 'Content-Transfer-Encoding: 8bit' . "\r\n" . 'MIME-Version: 1.0' . "\r\n" . 'From: ' . $name . ' <' . $email . '>' . "\r\n" . 'Reply-To: ' . $name . ' <' . $email . '>' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
             $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;
Example #5
0
							<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) {
        ?>
								<tr class="link" onclick="location.href='<?php 
        echo OutilsUrl::composer("praticien", "details", "num=" . $unPraticien["PRA_NUM"]);
        ?>
'">
									<td><?php 
        echo $unPraticien["PRA_NUM"];
        ?>
</td>
									<td><?php 
        echo $unPraticien["PRA_NOM"];
        ?>
</td>
									<td><?php 
        echo $unPraticien["PRA_PRENOM"];
        ?>
</td>
									<td><?php 
Example #6
0
    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"]);
        ?>
'">
									<td><?php 
        echo $unMedicament["MED_DEPOTLEGAL"];
        ?>
</td>
									<td><?php 
        echo $unMedicament["MED_NOMCOMMERCIAL"];
        ?>
</td>
								</tr>
							<?php 
    }
    ?>
							</tbody>
Example #7
0
 $lesMedicaments = GsbModele::getLesMedicaments();
 // Données auto
 $info_connexion = null;
 $numeroGet = GsbModele::getCompteRenduLeDernierNumeroDuVisiteur(GsbUtilisateur::$Matricule);
 $numero = is_null($numeroGet) ? 0 : $numeroGet + 1;
 $echantillons = false;
 // Données saisie
 $dateVisite = date("Y-m-d");
 $choixPraticien = "";
 $remplacant = false;
 $choixMotif = "no";
 $motifAutre = "";
 $motifAutreActive = false;
 $bilan = "";
 $documentation = false;
 $echantillonsMultidataForm = OutilsMultidataForm::init("echantillonsDonnees", 25, OutilsUrl::composer("compte-rendu", "ajax-saisie-echantillons"), array("choixMedicament", "qteOfferte"));
 // Valider
 $valid = array();
 $valid["dateVisite"] = 1;
 $valid["choixPraticien"] = 1;
 $valid["choixMotif"] = 1;
 $valid["motifAutre"] = 1;
 $valid["bilan"] = 1;
 $valid["echantillons"] = 1;
 // Si Formulaire
 if (OutilsForm::existePostEntrees(array("dateVisite", "choixPraticien", "choixMotif", "bilan"))) {
     $dateVisite = $_POST["dateVisite"];
     $valid["dateVisite"] = OutilsForm::valideDate($dateVisite, time()) ? 1 : 0;
     //
     $choixPraticien = $_POST["choixPraticien"];
     $valid["choixPraticien"] = is_array(GsbModele::getLePraticienDetails($choixPraticien));
Example #8
0
                            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;
}
Example #9
0
 /**
  * Affiche le problème venant du serveur
  * @param $str
  */
 public static function erreur($str, $explication = null)
 {
     echo '<div class="panel panel-danger"><div class="panel-heading">' . $str . ' n\'est pas accessible, <a href="' . OutilsUrl::composer("page", "contact", "errorpage=" . base64_encode($str)) . '">Contacter les administrateurs, ' . GsbConfig::$SiteName . '</a>' . ($explication != null ? '<br/>' . $explication : '') . '</div></div>';
 }
Example #10
0
<!-- vue : practicien/details -->
<div class="row">
	<div class="col-lg-4 col-md-5">
		<div class="panel panel-default">
			<div class="panel-heading"><h3 class="panel-title"><i class="fa fa-search fa-fw"></i> Choix praticien</h3></div>
			<div class="panel-body">
				<?php 
if ($lesPraticiensSontVide) {
    ?>
					<h3 class="text-center">Aucun praticien</h3>
				<?php 
} 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"];
        ?>