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

Diff of /dolibarr/htdocs/telephonie/stats/ProcessGraphClients.class.php

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

revision 1.8 by rodolphe, Tue Aug 9 13:14:21 2005 UTC revision 1.9 by rodolphe, Thu Oct 20 19:18:22 2005 UTC
# Line 37  require_once (DOL_DOCUMENT_ROOT."/teleph Line 37  require_once (DOL_DOCUMENT_ROOT."/teleph
37  require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/camoyen.class.php");  require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/camoyen.class.php");
38  require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/appelsdureemoyenne.class.php");  require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/appelsdureemoyenne.class.php");
39  require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/comm.nbmensuel.class.php");  require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/comm.nbmensuel.class.php");
40    require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/comm.nbminutes.class.php");
41  require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/camenbert.class.php");  require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/camenbert.class.php");
42    
43  /*  /*
# Line 92  class ProcessGraphClients Line 92  class ProcessGraphClients
92                    
93          while ($i < $num)          while ($i < $num)
94            {            {
95              $obj = $this->db->fetch_object($resql);              $obj = $this->db->fetch_object($resql);        
96                            $clients[$i] = $obj->socidp;            
             $clients[$i] = $obj->socidp;  
               
97              $i++;              $i++;
98            }            }
99            $this->db->free($resql);
100          }
101        else
102          {
103            print $sql;
104            exit("Erreur recuperation des clients");
105        }        }
106    
107      if (sizeof($clients))      if (sizeof($clients))
# Line 105  class ProcessGraphClients Line 109  class ProcessGraphClients
109          foreach ($clients as $client)          foreach ($clients as $client)
110            {            {
111              $img_root = DOL_DATA_ROOT."/graph/".substr($client,-1)."/telephonie/client/";              $img_root = DOL_DATA_ROOT."/graph/".substr($client,-1)."/telephonie/client/";
112                
113              $file = $img_root . $client."/graphca.png";              $file = $img_root . $client."/graphca.png";
114              $graphca = new GraphCa($this->db, $file);              $graphca = new GraphCa($this->db, $file);
115              $graphca->client = $client;              $graphca->client = $client;
116              $graphca->GraphDraw();              $graphca->GraphDraw();
117                
118              $file = $img_root . $client."/graphgain.png";              $file = $img_root . $client."/graphgain.png";
119    
120              $graphgain = new GraphGain ($this->db, $file);              $graphgain = new GraphGain ($this->db, $file);
# Line 150  class ProcessGraphClients Line 154  class ProcessGraphClients
154              $graphx->client = $client;              $graphx->client = $client;
155              $graphx->show_console = 0 ;              $graphx->show_console = 0 ;
156              $graphx->Graph();              $graphx->Graph();
157                
158                
159                $file = $img_root . $client."/nb-minutes-mensuel.png";
160                
161                $graphx = new GraphCommNbMinutes ($this->db, $file);
162                $graphx->client = $client;
163                $graphx->show_console = 0 ;
164                $graphx->Graph();
165                
166            }                  }      
167        }        }
168    

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

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