Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
clivi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NF17 - CAMP - P14
clivi
Commits
d7aa0633
Commit
d7aa0633
authored
10 years ago
by
goujonpa
Browse files
Options
Downloads
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
controller/fact.php
+3
-10
3 additions, 10 deletions
controller/fact.php
view/stats.php
+17
-9
17 additions, 9 deletions
view/stats.php
with
20 additions
and
19 deletions
controller/fact.php
+
3
−
10
View file @
d7aa0633
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
view/stats.php
+
17
−
9
View file @
d7aa0633
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment