diff --git a/Dashboard.php b/Dashboard.php index 21488d7..6857a15 100755 --- a/Dashboard.php +++ b/Dashboard.php @@ -3,7 +3,13 @@ require('autoloader.php'); if(!Authentification::checkUser(0)){ header("Location: http://".$_SERVER['HTTP_HOST']."/index.php"); die(); -};?> +}; + +/* AFFINAGE PAR MÉDECIN */ +$medecinOpt = (isset($_POST['submit'])) ? $_POST['id_medecin'] : null; +$medecinOpt = (!is_numeric($medecinOpt)) ? null : $medecinOpt; + +?> @@ -125,8 +131,12 @@ if(!Authentification::checkUser(0)){ @@ -134,15 +144,15 @@ if(!Authentification::checkUser(0)){

'.$medecin['Nom'].' '. $medecin['Prenom'].'

-

Nombre total de consultation: '.$stats['NombreRDV'].'

+ echo '
'.$medecin['Nom'].' '. $medecin['Prenom'].' +

Nombre total de consultations: '.$stats['NombreRDV'].'

Durée totale des consultations: '.$heures.' Heures et '.$minutes.' Minutes

'; } ?>