Skip to content
Snippets Groups Projects
Commit d7aa0633 authored by goujonpa's avatar goujonpa
Browse files

Merge branch 'master' of gitlab.utc.fr:nf17-camp-p14/clivi

parents 588ef988 af0081dc
No related branches found
No related tags found
No related merge requests found
......@@ -22,16 +22,9 @@ switch($action) {
include 'view/form.php';
break;
case "detailFacture":
/*$list = Facture::getList("Liste des Factures");
$facture = new Facture();
$facture->select($_GET['id']);
$formConf = $facture->getForm();
include 'view/formDetail.php';*/
$ligneFacture = new LigneFacture();
$formConf = $ligneFacture->getForm();
include 'view/form.php';
// TODO: Ajouter bouton payer
// TODO: Ajouter résumé de la facture (client, prix etc... )
// TODO: Ajouter 3 boutons: "Ajouter Prestation", "Ajouter Produit", "Ajouter Medicament/Ordonnance"
$list = LigneFacture::getList("Détails de la facture", $_GET["id"]);
include 'view/list.php';
break;
......
......@@ -9,18 +9,26 @@
<th>Facture moyenne : </th>
<th><?php $tmp = $stats->factureMoy(); $nb_formated = number_format($tmp["value"], 2, ',', ' '); echo $nb_formated; ?></th>
</thead>
<tbody>
<tr>
<td>Nombre moyen d'animal par client : </td>
<td><?php $tmp = $stats->nbAnimalMoyClient(); $nb_formated = number_format($tmp["value"], 2, ',', ' '); echo $nb_formated; ?></td>
</tr>
</tbody>
<thead>
<th>Nombre moyen d'animal par client : </th>
<th><?php $tmp = $stats->nbAnimalMoyClient(); $nb_formated = number_format($tmp["value"], 2, ',', ' '); echo $nb_formated; ?></th>
</thead>
</table>
<table class="table">
<caption> <th> Top 3 des plus gros client : </th> </caption>
<thead>
<th><?php print_r($stats->top3Client()); ?></th>
<th>Nom </th>
<th>Prenom </th>
<th>Total dépensé </th>
</thead>
</table>
<tbody>
<?php foreach ($stats->top3Client() as $ligne): ?>
<tr>
<td><?php echo $ligne["nom"]; ?> </td>
<td><?php echo $ligne["prenom"]; ?> </td>
<td><?php echo $ligne["prix"]; ?> </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.
Please register or to comment