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

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

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

revision 1.10 by rodolphe, Thu Dec 1 14:58:53 2005 UTC revision 1.11 by rodolphe, Wed Dec 7 15:31:56 2005 UTC
# Line 23  Line 23 
23   *   *
24   */   */
25  require ("../../master.inc.php");  require ("../../master.inc.php");
26    $verbose = 0;
27    for ($i = 1 ; $i <= sizeof($argv) ; $i++)
28    {
29      if ($argv[$i] == "-v")
30        $verbose = 1;
31      if ($argv[$i] == "-vv")
32        $verbose = 2;
33    }
34    
35  require_once (DOL_DOCUMENT_ROOT."/telephonie/lignetel.class.php");  require_once (DOL_DOCUMENT_ROOT."/telephonie/lignetel.class.php");
36  require_once (DOL_DOCUMENT_ROOT."/telephonie/facturetel.class.php");  require_once (DOL_DOCUMENT_ROOT."/telephonie/facturetel.class.php");
# Line 87  if ($resql) Line 95  if ($resql)
95        /* Chiffre d'affaire mensuel */        /* Chiffre d'affaire mensuel */
96                            
97        $file = $img_root . "commercials/".$row[0]."/ca.mensuel.$year.png";        $file = $img_root . "commercials/".$row[0]."/ca.mensuel.$year.png";
98        if ($verbose) print "Graph : Lignes commandes$file\n";        if ($verbose) print "CA ".$row[0]."\n";
99        $graph = new GraphCommercialChiffreAffaire($db, $file, $year);        $graph = new GraphCommercialChiffreAffaire($db, $file, $year);
100        $graph->width = 400;        $graph->width = 400;
101        $graph->GraphMakeGraph($row[0]);        $graph->GraphMakeGraph($row[0]);
# Line 95  if ($resql) Line 103  if ($resql)
103        /* Gain */        /* Gain */
104                            
105        $file = $img_root . "commercials/".$row[0]."/gain.mensuel.$year.png";        $file = $img_root . "commercials/".$row[0]."/gain.mensuel.$year.png";
106        if ($verbose) print "Graph : Lignes commandes$file\n";        if ($verbose) print "Gain ".$row[0]."\n";
107        $graph = new GraphCommercialGain($db, $file, $year);        $graph = new GraphCommercialGain($db, $file, $year);
108        $graph->width = 400;        $graph->width = 400;
109        $graph->GraphMakeGraph($row[0]);        $graph->GraphMakeGraph($row[0]);

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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