From 97f65a1282cbbdc75877e3013f57b79c0eebd101 Mon Sep 17 00:00:00 2001 From: cortylal <alexcortyl@gmail.com> Date: Thu, 19 Jun 2014 02:30:39 +0200 Subject: [PATCH] stats --- view/stats.php | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/view/stats.php b/view/stats.php index 8159a04..13642df 100644 --- a/view/stats.php +++ b/view/stats.php @@ -7,15 +7,15 @@ <h4>Statistiques générales : </h4> <table class="table"> <thead> - <th>Nombre de client : </th> + <th>Nombre de clients : </th> <th><?php $tmp = $stats->nbClient(); $nb_formated = number_format($tmp["nb"]); echo $nb_formated; ?></th> </thead> <thead> - <th>Nombre d'employé' : </th> + <th>Nombre d'employés : </th> <th><?php $tmp = $stats->nbEmploye(); $nb_formated = number_format($tmp["nb"]); echo $nb_formated; ?></th> </thead> <thead> - <th>Nombre de vétérinaire' : </th> + <th>Nombre de vétérinaires : </th> <th><?php $tmp = $stats->nbVeterinaire(); $nb_formated = number_format($tmp["nb"]); echo $nb_formated; ?></th> </thead> <thead> @@ -96,4 +96,24 @@ </tbody> </table> + <br/> + <hr/> + <h4>Top 5 des vétérinaires</h4> + <table class="table"> + <thead> + <th>Nom </th> + <th>Prenom </th> + <th>Montant de la facture </th> + </thead> + <tbody> + <?php foreach ($stats->top5Veterinaire() as $ligne): ?> + <tr> + <td><?php echo $ligne["nom"]; ?> </td> + <td><?php echo $ligne["prenom"]; ?> </td> + <td><?php echo $ligne["c"]; ?> </td> + </tr> + <?php endforeach; ?> + </tbody> + </table> + </div> \ No newline at end of file -- GitLab