Skip to content
Snippets Groups Projects
Commit 97f65a12 authored by cortylal's avatar cortylal
Browse files

stats

parent bdf1a443
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment