2015-12-08 07:17:46 +00:00
|
|
|
<?php session_start();
|
|
|
|
require('autoloader.php');
|
|
|
|
if(!Authentification::checkUser(0)){
|
|
|
|
header("Location: http://".$_SERVER['HTTP_HOST']."/index.php");
|
|
|
|
die();
|
2015-12-10 11:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// formattage $_GET['type']
|
|
|
|
$answerType = (isset($_GET['type'])) ? $_GET['type'] : null;
|
|
|
|
|
|
|
|
?>
|
2015-12-08 07:17:46 +00:00
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Consultations</title>
|
|
|
|
|
|
|
|
<meta charset='utf-8'/>
|
|
|
|
<meta name='description' value='Site de test'/>
|
|
|
|
<meta name='author' value='{xdrm} & SeekDaSky'/>
|
|
|
|
|
|
|
|
<link rel='stylesheet' href='css/animations.css'/>
|
|
|
|
<link rel='stylesheet' href='css/global.css'/>
|
2015-12-08 22:24:22 +00:00
|
|
|
<link rel='stylesheet' href='css/responsive.css'/>
|
2015-12-08 07:17:46 +00:00
|
|
|
|
2015-12-14 07:35:20 +00:00
|
|
|
<script type='text/javascript' src='js/lib/adjust.js'></script>
|
|
|
|
<script type='text/javascript' src='js/lib/API.js'></script>
|
2015-12-08 22:24:22 +00:00
|
|
|
<script type='text/javascript' src='js/input-checker.js'></script>
|
2015-12-08 07:17:46 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2015-12-13 22:19:22 +00:00
|
|
|
<!-- BARRE DE NOTIFICATIONS -->
|
|
|
|
<div id='NOTIFBAR'>
|
|
|
|
<div></div>
|
|
|
|
<div>
|
|
|
|
<h3>Oups!</h3>
|
|
|
|
<p>Certains champs sont incorrects. Veuillez réessayer.</p>
|
|
|
|
<input type='button' value='Fermer'>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-12-08 07:17:46 +00:00
|
|
|
<!-- WRAPPER DE LA PAGE -->
|
|
|
|
<div id='WRAPPER'>
|
|
|
|
|
|
|
|
<!-- MENU DE LA PAGE -->
|
|
|
|
<nav id='MENU'>
|
|
|
|
<a href='Dashboard.php' id='ICON'></a>
|
2015-12-09 20:43:02 +00:00
|
|
|
<div>
|
|
|
|
<a href='Dashboard.php' id='dashboard'>Tableau de bord</a>
|
|
|
|
<a href='Consultations.php' id='consultations' class='active'>Consultations</a>
|
|
|
|
<a href='Medecins.php' id='medecin'>Gestion des médecins</a>
|
|
|
|
<a href='Patients.php' id='patient'>Gestion des patients</a>
|
|
|
|
</div>
|
2015-12-08 07:17:46 +00:00
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- CONTAINER DE LA PAGE -->
|
|
|
|
<section id='CONTAINER'>
|
|
|
|
|
|
|
|
<!-- FIL D'ARIANE -->
|
|
|
|
<div id='BREADCRUMB'><a href='Dashboard.php'>Accueil</a> <a href='Consultations.php'>Consultations</a></a> </div>
|
2015-12-10 11:23:22 +00:00
|
|
|
|
|
|
|
<?php if( $answerType != null ){
|
|
|
|
|
|
|
|
echo '<span>';
|
|
|
|
switch($answerType){
|
|
|
|
case 'creation': echo 'Patient créé.'; break;
|
|
|
|
case 'error': echo 'Une erreur est survenue.'; break;
|
|
|
|
default: echo 'rien à déclarer ? Non!'; break;
|
|
|
|
}
|
|
|
|
echo '</span>';
|
|
|
|
|
|
|
|
}
|
|
|
|
/*************************************/
|
2015-12-09 12:35:43 +00:00
|
|
|
/* SAISIR UN RENDEZ-VOUS */
|
|
|
|
/*************************************/ ?>
|
2015-12-08 07:17:46 +00:00
|
|
|
<article data-title="Saisir un rendez-vous">
|
2015-12-10 09:56:35 +00:00
|
|
|
<form method='POST' action='managers/'>
|
2015-12-08 22:24:22 +00:00
|
|
|
<div>
|
2015-12-10 08:04:08 +00:00
|
|
|
<select id='newRDVPatient' name='id_patient'>
|
2015-12-09 12:35:43 +00:00
|
|
|
<option value='*'>Patient:</option>
|
2015-12-08 22:24:22 +00:00
|
|
|
<?php
|
|
|
|
foreach(PatientRepo::getAll() as $PATIENT)
|
|
|
|
echo "<option value='".$PATIENT['Id']."' data-medecin='".$PATIENT['MedecinTraitant']."'>".$PATIENT['Nom']." ".$PATIENT['Prenom']."</option>";
|
|
|
|
?>
|
2015-12-09 12:35:43 +00:00
|
|
|
</select>
|
2015-12-08 22:24:22 +00:00
|
|
|
</div><div>
|
2015-12-10 08:04:08 +00:00
|
|
|
<select id='newRDVMedecin' name='id_medecin'>
|
2015-12-08 22:24:22 +00:00
|
|
|
<option value='*'>Medecins:</option>
|
|
|
|
<?php
|
|
|
|
foreach(MedecinRepo::getAll() as $MEDECIN)
|
|
|
|
echo "<option value='".$MEDECIN['Id']."'>".$MEDECIN['Nom']." ".$MEDECIN['Prenom']."</option>";
|
|
|
|
?>
|
2015-12-09 12:35:43 +00:00
|
|
|
</select><span class='associated'>Médecin traitant du patient.</span>
|
2015-12-10 08:04:08 +00:00
|
|
|
</div><br>
|
2015-12-08 22:24:22 +00:00
|
|
|
|
2015-12-10 11:23:22 +00:00
|
|
|
<input type='text' id='inDate' name='date' placeholder='jj/mm/aaaa' required><span class='info'>Date de la consultation</span><br>
|
|
|
|
<input type='text' id='inHeure' name='heure' placeholder='HH:MM' required><span class='info'>Heure de la consultation</span><br>
|
|
|
|
<input type='text' id='inDuree' name='duree' placeholder='minutes' required><span class='info'>Durée de la consultation</span><br>
|
2015-12-10 09:56:35 +00:00
|
|
|
<br>
|
|
|
|
|
2015-12-10 11:23:22 +00:00
|
|
|
<input type='hidden' name='command' value='RDV:add'>
|
|
|
|
<input type='submit' id='sbCreer' value='Enregistrer la consultation'>
|
2015-12-08 22:24:22 +00:00
|
|
|
</form>
|
|
|
|
|
2015-12-08 07:17:46 +00:00
|
|
|
</article>
|
|
|
|
|
2015-12-09 12:35:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php/********************************/
|
|
|
|
/* CONSULTER LES RENDEZ-VOUS */
|
|
|
|
/*************************************/ ?>
|
2015-12-08 07:17:46 +00:00
|
|
|
<article data-title="Numéro de sécurité sociale">
|
|
|
|
<div>
|
2015-12-10 11:23:22 +00:00
|
|
|
<input type='radio' name='filter_c' id='tousRDV' checked><label for='tousRDV'>Toutes les consultations</label><br>
|
2015-12-10 08:04:08 +00:00
|
|
|
<input type='radio' name='filter_c' id='pastRDV'><label for='pastRDV'>Consultations passées</label><br>
|
|
|
|
<input type='radio' name='filter_c' id='fturRDV'><label for='fturRDV'>Consultations à venir</label><br>
|
2015-12-09 12:35:43 +00:00
|
|
|
<input type='submit' value='Rechercher'>
|
|
|
|
|
2015-12-10 08:04:08 +00:00
|
|
|
<input type='text' id='inSecu' placeholder='1 99 19 99 999 999 99'><span class='invalid'>Clé de contrôle invalide.</span>
|
2015-12-08 07:17:46 +00:00
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type='text/javascript' src='js/consultations.js'></script>
|
|
|
|
</body>
|
2015-12-08 08:31:51 +00:00
|
|
|
</html>
|