diff --git a/view/stats.php b/view/stats.php index 8159a043083f69759c154bf8c18a62b8a57d9304..13642dfe737b7e4635892d969045f8d28a471005 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