/[dolibarr]/dolibarr/htdocs/telephonie/script/graph-statistiques-week.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/script/graph-statistiques-week.php

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

revision 1.14 by rodolphe, Wed Nov 9 16:46:18 2005 UTC revision 1.15 by rodolphe, Wed Nov 23 22:54:36 2005 UTC
# Line 42  $error = 0; Line 42  $error = 0;
42    
43  $img_root = DOL_DATA_ROOT."/graph/telephonie/";  $img_root = DOL_DATA_ROOT."/graph/telephonie/";
44    
45    /*****
46     *
47     *
48     *
49     */
50    require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/commerciaux/commerciaux.po.class.php");
51    $file = $img_root . "commerciaux/po.mensuel.png";
52    
53    $graph = new GraphCommerciauxPO($db, $file);
54    $graph->width = 400;
55    $graph->GraphMakeGraph();
56    
57  /***********************************************************************/  /***********************************************************************/
58  /*  /*
59  /* Contrats  /* Contrats
# Line 163  if ($db->query($sql)) Line 175  if ($db->query($sql))
175  /* Prise ordre des distributeur  /* Prise ordre des distributeur
176  /*  /*
177  /***********************************************************************/  /***********************************************************************/
   
178  require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/contrats/modereglement.class.php");  require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/contrats/modereglement.class.php");
179    
   
180  $sql = "SELECT distinct p.fk_distributeur, d.nom";  $sql = "SELECT distinct p.fk_distributeur, d.nom";
181  $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_contrat_priseordre as p";  $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_contrat_priseordre as p";
182  $sql .= " , ".MAIN_DB_PREFIX."telephonie_distributeur as d";  $sql .= " , ".MAIN_DB_PREFIX."telephonie_distributeur as d";
# Line 194  if ($resql) Line 204  if ($resql)
204    
205    
206    
207   /*  /*
208    *   *
209    */   */
210    
211  $sql = "SELECT rowid";  $sql = "SELECT rowid";
212  $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_distributeur";  $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_distributeur";
# Line 209  if ($resql) Line 219  if ($resql)
219    while ($i < $num)    while ($i < $num)
220      {      {
221        $row = $db->fetch_row($resql);            $row = $db->fetch_row($resql);    
   
   
222        $file = $img_root . "distributeurs/".$row[0]."/clients.hebdomadaire.png";        $file = $img_root . "distributeurs/".$row[0]."/clients.hebdomadaire.png";
223        if ($verbose) print "Graph : Lignes commandes$file\n";        if ($verbose) print "Graph : Lignes commandes$file\n";
224        $graph = new GraphClientsWeek($db, $file);        $graph = new GraphClientsWeek($db, $file);
# Line 221  if ($resql) Line 229  if ($resql)
229      }      }
230  }  }
231    
   
232  /*****  /*****
233   *   *
234   *   *
# Line 242  $file = $img_root . "lignes/rejets.hebdo Line 249  $file = $img_root . "lignes/rejets.hebdo
249  $graph = new GraphLignesRejetWeek($db, $file);  $graph = new GraphLignesRejetWeek($db, $file);
250  $graph->width = 400;  $graph->width = 400;
251  $graph->GraphMakeGraph();  $graph->GraphMakeGraph();
252    
253  ?>  ?>

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

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