/[dolibarr]/dolibarr/htdocs/telephonie/stats/graph/appelsdureemoyenne.class.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/stats/graph/appelsdureemoyenne.class.php

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

revision 1.6 by rodolphe, Wed Mar 16 15:40:20 2005 UTC revision 1.7 by rodolphe, Tue Aug 9 14:12:51 2005 UTC
# Line 37  class GraphAppelsDureeMoyenne extends Gr Line 37  class GraphAppelsDureeMoyenne extends Gr
37      $this->contrat = 0;      $this->contrat = 0;
38      $this->ligne = 0;      $this->ligne = 0;
39    
40      $this->titre = "Durée moyenne des appels";      $this->titre = "Durée moyenne des appels par mois";
41      $this->showframe = true;      $this->showframe = true;
42      $this->barcolor = "pink";      $this->barcolor = "pink";
43    }    }
# Line 46  class GraphAppelsDureeMoyenne extends Gr Line 46  class GraphAppelsDureeMoyenne extends Gr
46    {        {    
47      $this->GetDatas();      $this->GetDatas();
48    
49        $this->width = 360;
50    
51      if (sizeof($this->datas))      if (sizeof($this->datas))
52        {        {
53          $this->GraphDraw($this->file, $this->datas, $this->labels);          $this->GraphDraw($this->file, $this->datas, $this->labels);
# Line 99  class GraphAppelsDureeMoyenne extends Gr Line 101  class GraphAppelsDureeMoyenne extends Gr
101            {            {
102              $row = $this->db->fetch_row();              $row = $this->db->fetch_row();
103    
104              $this->labels[$i] = substr($row[0],4,2) . '/'.substr($row[0],2,2);              $this->labels[$i] = substr($row[0],4,2);
105              $this->datas[$i] = ($row[1] / $row[2] ) ;                    $this->datas[$i] = ($row[1] / $row[2] ) ;      
106                            
107              $i++;              $i++;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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