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 |
/* |
/* |
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)) |
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); |
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 |
|
|