/[dolibarr]/dolibarr/htdocs/telephonie/stats/distributeurs/distributeur.gain.class.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/stats/distributeurs/distributeur.gain.class.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by rodolphe, Mon Nov 14 13:39:27 2005 UTC revision 1.10 by rodolphe, Mon Nov 14 13:51:22 2005 UTC
# Line 111  class GraphDistributeurGain extends Grap Line 111  class GraphDistributeurGain extends Grap
111          print $this->db->error() . ' ' . $sql;          print $this->db->error() . ' ' . $sql;
112        }                          }                  
113    
114        $month = array();
115        $month[1] = 'J';
116        $month[2] = 'F';
117        $month[3] = 'M';
118        $month[4] = 'A';
119        $month[5] = 'M';
120        $month[6] = 'J';
121        $month[7] = 'J';
122        $month[8] = 'A';
123        $month[9] = 'S';
124        $month[10] = 'O';
125        $month[11] = 'N';
126        $month[12] = 'D';
127    
128      for ($i = 1 ; $i < 13 ; $i++)      for ($i = 1 ; $i < 13 ; $i++)
129        {        {
130          $idx = $year.substr('0'.$i,-2);          $idx = $year.substr('0'.$i,-2);
131          $datas[$i-1] = $gains[$idx];          $datas[$i-1] = $gains[$idx];
132          $labels[$i-1] = $i;          $labels[$i-1] = $month[$i];
133        }        }
134    
135      if (sizeof($datas))      if (sizeof($datas))

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26