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

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

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

revision 1.4 by rodolphe, Mon Nov 14 13:39:51 2005 UTC revision 1.5 by rodolphe, Mon Nov 14 13:49:37 2005 UTC
# Line 98  class GraphDistributeurCommission extend Line 98  class GraphDistributeurCommission extend
98        {        {
99          print $this->db->error() . ' ' . $sql;          print $this->db->error() . ' ' . $sql;
100        }                          }                  
101        $month = array();
102        $month[1] = 'J';
103        $month[2] = 'F';
104        $month[3] = 'M';
105        $month[4] = 'A';
106        $month[5] = 'M';
107        $month[6] = 'J';
108        $month[7] = 'J';
109        $month[8] = 'A';
110        $month[9] = 'S';
111        $month[10] = 'O';
112        $month[11] = 'N';
113        $month[12] = 'D';
114    
115      for ($i = 1 ; $i < 13 ; $i++)      for ($i = 1 ; $i < 13 ; $i++)
116        {        {
117          $idx = $this->year.substr('0'.$i,-2);          $idx = $this->year.substr('0'.$i,-2);
118          $datas[$i-1] = $comms[$idx];          $datas[$i-1] = $comms[$idx];
119          $labels[$i-1] = $i;          $labels[$i-1] = $month[$i];
120        }        }
121    
122      if (sizeof($datas))      if (sizeof($datas))

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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