2015-12-09 20:43:02 +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-09 20:43:02 +00:00
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Gestion des médecins</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-10 08:04:08 +00:00
|
|
|
<link rel='stylesheet' href='css/blue-green.theme.css'/>
|
2015-12-09 20:43:02 +00:00
|
|
|
<link rel='stylesheet' href='css/responsive.css'/>
|
|
|
|
|
|
|
|
<script type='text/javascript' src='js/adjust.js'></script>
|
|
|
|
<script type='text/javascript' src='js/input-checker.js'></script>
|
|
|
|
</head>
|
2015-12-10 08:04:08 +00:00
|
|
|
<body class='theme-bluegreen'>
|
2015-12-09 20:43:02 +00:00
|
|
|
|
|
|
|
<!-- WRAPPER DE LA PAGE -->
|
|
|
|
<div id='WRAPPER'>
|
|
|
|
|
|
|
|
<!-- MENU DE LA PAGE -->
|
|
|
|
<nav id='MENU'>
|
|
|
|
<a href='Dashboard.php' id='ICON'></a>
|
|
|
|
<div>
|
|
|
|
<a href='Dashboard.php' id='dashboard'>Tableau de bord</a>
|
|
|
|
<a href='Consultations.php' id='consultations'>Consultations</a>
|
|
|
|
<a href='Medecins.php' id='medecin' class='active'>Gestion des médecins</a>
|
|
|
|
<a href='Patients.php' id='patient'>Gestion des patients</a>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- CONTAINER DE LA PAGE -->
|
|
|
|
<section id='CONTAINER'>
|
|
|
|
|
|
|
|
<!-- FIL D'ARIANE -->
|
|
|
|
<div id='BREADCRUMB'><a href='Dashboard.php'>Accueil</a> <a href='Medecins.php'>Gestion des médecins</a></a> </div>
|
2015-12-10 11:23:22 +00:00
|
|
|
|
|
|
|
<?php if( $answerType != null ){
|
|
|
|
|
|
|
|
echo '<span>';
|
|
|
|
switch($answerType){
|
|
|
|
case 'creation': echo 'Médecin créé.'; break;
|
|
|
|
case 'error': echo 'Une erreur est survenue.'; break;
|
|
|
|
default: echo 'rien à déclarer ? Non!'; break;
|
|
|
|
}
|
|
|
|
echo '</span>';
|
2015-12-09 20:43:02 +00:00
|
|
|
|
2015-12-10 11:23:22 +00:00
|
|
|
}
|
|
|
|
/*************************************/
|
2015-12-10 09:56:35 +00:00
|
|
|
/* AJOUTER UN MÉDECIN */
|
2015-12-09 20:43:02 +00:00
|
|
|
/*************************************/ ?>
|
2015-12-10 09:56:35 +00:00
|
|
|
<article data-title="Ajouter un médecin">
|
|
|
|
<form method='POST' action='managers/'>
|
|
|
|
<br><h4>Ajout d'un nouveau médecin</h4>
|
2015-12-10 11:23:22 +00:00
|
|
|
<input type='text' id='crPrenom' name='prenom' placeholder='Prénom' value='' required><br>
|
|
|
|
<input type='text' id='crNom' name='nom' placeholder='NOM' value='' required><br>
|
2015-12-10 09:56:35 +00:00
|
|
|
|
|
|
|
<input type='radio' name='civilite' value='M' id='civ1' checked><label for='civ1'>Homme</label><br>
|
|
|
|
<input type='radio' name='civilite' value='F' id='civ2'><label for='civ2'>Femme</label><br>
|
2015-12-09 20:43:02 +00:00
|
|
|
<br>
|
2015-12-10 09:56:35 +00:00
|
|
|
|
2015-12-10 10:13:30 +00:00
|
|
|
<input type='hidden' name='command' value='Medecin:add'>
|
2015-12-10 11:23:22 +00:00
|
|
|
<input type='submit' id='sbCreer' value='Créer le médecin'>
|
2015-12-09 20:43:02 +00:00
|
|
|
</form>
|
|
|
|
|
|
|
|
</article>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2015-12-10 09:56:35 +00:00
|
|
|
<script type='text/javascript' src='js/medecins.js'></script>
|
2015-12-09 20:43:02 +00:00
|
|
|
</body>
|
|
|
|
</html>
|