31 |
|
|
32 |
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/bar.class.php"); |
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/bar.class.php"); |
33 |
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/camenbert.class.php"); |
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/camenbert.class.php"); |
|
|
|
34 |
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/commerciaux/commercial.ca.class.php"); |
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/commerciaux/commercial.ca.class.php"); |
35 |
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/commerciaux/commercial.gain.class.php"); |
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/commerciaux/commercial.gain.class.php"); |
36 |
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/commerciaux/groupes/groupe.gain.class.php"); |
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/commerciaux/groupes/groupe.gain.class.php"); |
89 |
if ($verbose) print "Graph : gain distributeur $file\n"; |
if ($verbose) print "Graph : gain distributeur $file\n"; |
90 |
$graph = new GraphDistributeurGain($db, $file); |
$graph = new GraphDistributeurGain($db, $file); |
91 |
$graph->width = 500; |
$graph->width = 500; |
92 |
|
$graph->height = 300; |
93 |
$graph->GraphMakeGraph($row[0]); |
$graph->GraphMakeGraph($row[0]); |
94 |
|
|
95 |
/* Commission */ |
/* Commission */ |
100 |
if ($verbose) print "Graph : commission distributeur $file\n"; |
if ($verbose) print "Graph : commission distributeur $file\n"; |
101 |
$graph = new GraphDistributeurCommission($db, $file); |
$graph = new GraphDistributeurCommission($db, $file); |
102 |
$graph->width = 500; |
$graph->width = 500; |
103 |
|
$graph->height = 300; |
104 |
$graph->GraphMakeGraph($row[0]); |
$graph->GraphMakeGraph($row[0]); |
105 |
|
|
106 |
|
/* Resultat */ |
107 |
|
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/distributeurs/distributeur.resultat.class.php"); |
108 |
|
$dir = $img_root . "distributeurs/".$row[0]."/"; |
109 |
|
_cdir($dir); |
110 |
|
$file = $dir."resultat.mensuel.png"; |
111 |
|
if ($verbose) print "Graph : resultat distributeur $file\n"; |
112 |
|
$graph = new GraphDistributeurResultat($db, $file); |
113 |
|
$graph->width = 500; |
114 |
|
$graph->height = 300; |
115 |
|
$graph->GraphMakeGraph($row[0]); |
116 |
} |
} |
117 |
} |
} |
118 |
|
|