Esempio n. 1
0
						
						<!-- <input type='hidden' name='command' value='RDV:getSVG'> -->

						<input type='submit' value='Affiner'>

					</form></div>

					<!-- HERE COMES THE SVG -->
					<div id='calendar'><?php 
$rdv = new RDV();
if ($moisOpt != null && preg_match('/^(\\d{2})\\/(\\d{4})$/', $moisOpt, $m)) {
    $mois = $m[1];
    $annee = $m[2];
    // $rdv->getSVG(['mois'=>$moisOpt]);
    // on affiche les consutations en fonction de l'affinage
    foreach (RDVRepo::getForMonth($mois, $annee) as $RDV) {
        // affinage par médecin
        if ($medecinOpt == null || $medecinOpt == $RDV['Medecin_Id']) {
            if ($patientOpt == null || $patientOpt == $RDV['Patient_Id']) {
                echo "<div class='RDV'>";
                /* MODIFICATION */
                echo "<form action='managers/' method='POST'>";
                echo "<input type='text' class='jour' name='jour' value='" . date('d/m/Y', strtotime($RDV['DateRDV'])) . "'>";
                echo "<input type='text' class='heure' name='heure' value='" . date('H:i', strtotime($RDV['DateRDV'])) . "'>";
                echo "<input type='text' class='duree' name='Duree' value='" . date('H:i', strtotime($RDV['Duree'])) . "'>";
                echo "<input type='text' readonly class='Medecin' value='Medecin: " . $RDV['M_Prenom'] . " " . $RDV['M_Nom'] . "'>";
                echo "<input type='text' readonly class='Patient' value='Patient: " . $RDV['P_Prenom'] . " " . $RDV['P_Nom'] . "'>";
                echo "<input type='hidden' name='id_consultation' value='" . $RDV['Id'] . "'>";
                echo "<input type='hidden' name='command' value='RDV:update'>";
                echo "<input type='submit' value=''>";
                echo "</form>";
Esempio n. 2
0
 public function getConsultationsForMonth($month)
 {
     // conversion du mois
     if (preg_match('/^(\\d{2})\\/(\\d{4})$/', $month, $m)) {
         $mois = $m[1];
         $annee = $m[2];
     } else {
         $mois = '12';
         $annee = '2015';
     }
     /* RECHERCHE REUSSIE */
     if (($rdvList = RDVRepo::getForMonth($mois, $annee)) !== FALSE) {
         foreach ($rdvList as $RDV) {
             var_dump($RDV);
         }
     } else {
         echo "error";
     }
 }