From f128b0fedd6e05cf141d3d5fc633bd44dc9794f1 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 14 Nov 2005 13:51:22 +0000 Subject: [PATCH] =?UTF-8?q?Modif=20l=E9g=E9nde?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../distributeurs/distributeur.gain.class.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/htdocs/telephonie/stats/distributeurs/distributeur.gain.class.php b/htdocs/telephonie/stats/distributeurs/distributeur.gain.class.php index 1916d03bf02..4e12a8c8132 100644 --- a/htdocs/telephonie/stats/distributeurs/distributeur.gain.class.php +++ b/htdocs/telephonie/stats/distributeurs/distributeur.gain.class.php @@ -111,11 +111,25 @@ class GraphDistributeurGain extends GraphBar { print $this->db->error() . ' ' . $sql; } + $month = array(); + $month[1] = 'J'; + $month[2] = 'F'; + $month[3] = 'M'; + $month[4] = 'A'; + $month[5] = 'M'; + $month[6] = 'J'; + $month[7] = 'J'; + $month[8] = 'A'; + $month[9] = 'S'; + $month[10] = 'O'; + $month[11] = 'N'; + $month[12] = 'D'; + for ($i = 1 ; $i < 13 ; $i++) { $idx = $year.substr('0'.$i,-2); $datas[$i-1] = $gains[$idx]; - $labels[$i-1] = $i; + $labels[$i-1] = $month[$i]; } if (sizeof($datas))