projet-php/Consultations.php

78 lines
2.3 KiB
PHP
Executable File

<?php session_start();
require('autoloader.php');
if(!Authentification::checkUser(0)){
header("Location: http://".$_SERVER['HTTP_HOST']."/index.php");
die();
};?>
<!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'/>
<script type='text/javascript' src='js/adjust.js'></script>
</head>
<body>
<!-- WRAPPER DE LA PAGE -->
<div id='WRAPPER'>
<!-- MENU DE LA PAGE -->
<nav id='MENU'>
<a href='Dashboard.php' id='ICON'></a>
<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>
</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>
<article data-title="Saisir un rendez-vous">
<div>
<select id='newRDVPatient'>
<option value='*'>Patients:</option>
<?php $patients = json_decode( file_get_contents('Docs/PatientExemple.json') );
foreach($patients as $PATIENT)
echo "<option value='".$PATIENT->Id."' data-medecin='".$PATIENT->MedecinTraitant."'>".$PATIENT->Nom." ".$PATIENT->Prenom."</option>";
?>
</select>Choix du patient
</div><div>
<select id='newRDVMedecin'>
<option value='*'>Medecins:</option>
<?php $medecins = json_decode( file_get_contents('Docs/MedecinExemple.json') );
foreach($medecins as $MEDECIN)
echo "<option value='".$MEDECIN->Id."'>".$MEDECIN->Nom." ".$MEDECIN->Prenom."</option>";
?>
</select>Le médecin traitant se selectionne par défaut
</div>
</article>
<article data-title="Numéro de sécurité sociale">
<div>
<input type='text' id='inSecu' placeholder='1 99 99 99 999 999 99'>
</div>
</article>
</section>
</div>
<script type='text/javascript' src='js/consultations.js'></script>
</body>
</html>