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"); |
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]); |
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]); |