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

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

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

revision 1.4 by rodolphe, Mon Nov 14 13:43:52 2005 UTC revision 1.5 by rodolphe, Mon Nov 14 13:50:52 2005 UTC
# Line 90  class GraphDistributeurResultat extends Line 90  class GraphDistributeurResultat extends
90      $datas = array();      $datas = array();
91      $labels = array();      $labels = array();
92    
93        $month = array();
94        $month[1] = 'J';
95        $month[2] = 'F';
96        $month[3] = 'M';
97        $month[4] = 'A';
98        $month[5] = 'M';
99        $month[6] = 'J';
100        $month[7] = 'J';
101        $month[8] = 'A';
102        $month[9] = 'S';
103        $month[10] = 'O';
104        $month[11] = 'N';
105        $month[12] = 'D';
106    
107      for ($i = 1 ; $i < 13 ; $i++)      for ($i = 1 ; $i < 13 ; $i++)
108        {        {
109          $idx = $this->year.substr('0'.$i,-2);          $idx = $this->year.substr('0'.$i,-2);
110          $datas[$i-1] = $gains[$idx] - $comms[$idx];          $datas[$i-1] = $gains[$idx] - $comms[$idx];
111          $labels[$i-1] = $i;          $labels[$i-1] = $month[$i];
112    
113          if ($distributeur > 0 ){          if ($distributeur > 0 ){
114            $sqli = "INSERT INTO ".MAIN_DB_PREFIX."telephonie_stats";            $sqli = "INSERT INTO ".MAIN_DB_PREFIX."telephonie_stats";

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