From f350b748ed4e4d415b1625590b1c02a2655d5a93 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 16 Nov 2005 12:29:26 +0000 Subject: [PATCH] Ajout total --- htdocs/telephonie/stats/distributeurs/resultats.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/telephonie/stats/distributeurs/resultats.php b/htdocs/telephonie/stats/distributeurs/resultats.php index 9fde6a31592..69d84ce86f1 100644 --- a/htdocs/telephonie/stats/distributeurs/resultats.php +++ b/htdocs/telephonie/stats/distributeurs/resultats.php @@ -42,7 +42,7 @@ $hselected = $h; $h++; $year = strftime("%Y",time()); - +$total = 0; dolibarr_fiche_head($head, $hselected, "Distributeurs"); print ''; @@ -65,6 +65,7 @@ if ($resql) $var=!$var; print "'; print ''; + $total += $row[0]; } $db->free(); } @@ -72,6 +73,8 @@ else { print $db->error() . ' ' . $sql; } +print ""; +print ''; print '
".$row[1].''.price($row[0]).'
Total'.price($total).'
'; print '';