Ajout nouveau graph
This commit is contained in:
parent
b1102e0eb0
commit
cfe2991a29
@ -37,7 +37,7 @@ require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/joursemaine.class.php")
|
|||||||
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/camoyen.class.php");
|
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/camoyen.class.php");
|
||||||
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/appelsdureemoyenne.class.php");
|
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/appelsdureemoyenne.class.php");
|
||||||
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/comm.nbmensuel.class.php");
|
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/comm.nbmensuel.class.php");
|
||||||
|
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/comm.nbminutes.class.php");
|
||||||
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/camenbert.class.php");
|
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/camenbert.class.php");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -92,12 +92,16 @@ class ProcessGraphClients
|
|||||||
|
|
||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
$obj = $this->db->fetch_object($resql);
|
$obj = $this->db->fetch_object($resql);
|
||||||
|
$clients[$i] = $obj->socidp;
|
||||||
$clients[$i] = $obj->socidp;
|
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
$this->db->free($resql);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print $sql;
|
||||||
|
exit("Erreur recuperation des clients");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sizeof($clients))
|
if (sizeof($clients))
|
||||||
@ -105,12 +109,12 @@ class ProcessGraphClients
|
|||||||
foreach ($clients as $client)
|
foreach ($clients as $client)
|
||||||
{
|
{
|
||||||
$img_root = DOL_DATA_ROOT."/graph/".substr($client,-1)."/telephonie/client/";
|
$img_root = DOL_DATA_ROOT."/graph/".substr($client,-1)."/telephonie/client/";
|
||||||
|
|
||||||
$file = $img_root . $client."/graphca.png";
|
$file = $img_root . $client."/graphca.png";
|
||||||
$graphca = new GraphCa($this->db, $file);
|
$graphca = new GraphCa($this->db, $file);
|
||||||
$graphca->client = $client;
|
$graphca->client = $client;
|
||||||
$graphca->GraphDraw();
|
$graphca->GraphDraw();
|
||||||
|
|
||||||
$file = $img_root . $client."/graphgain.png";
|
$file = $img_root . $client."/graphgain.png";
|
||||||
|
|
||||||
$graphgain = new GraphGain ($this->db, $file);
|
$graphgain = new GraphGain ($this->db, $file);
|
||||||
@ -150,7 +154,15 @@ class ProcessGraphClients
|
|||||||
$graphx->client = $client;
|
$graphx->client = $client;
|
||||||
$graphx->show_console = 0 ;
|
$graphx->show_console = 0 ;
|
||||||
$graphx->Graph();
|
$graphx->Graph();
|
||||||
|
|
||||||
|
|
||||||
|
$file = $img_root . $client."/nb-minutes-mensuel.png";
|
||||||
|
|
||||||
|
$graphx = new GraphCommNbMinutes ($this->db, $file);
|
||||||
|
$graphx->client = $client;
|
||||||
|
$graphx->show_console = 0 ;
|
||||||
|
$graphx->Graph();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user