Skip to content
Snippets Groups Projects
Commit cfe2991a authored by Rodolphe Quiedeville's avatar Rodolphe Quiedeville
Browse files

Ajout nouveau graph

parent b1102e0e
Branches
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/joursemaine.class.php") ...@@ -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");
/* /*
...@@ -93,11 +93,15 @@ class ProcessGraphClients ...@@ -93,11 +93,15 @@ 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))
...@@ -151,6 +155,14 @@ class ProcessGraphClients ...@@ -151,6 +155,14 @@ class ProcessGraphClients
$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();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment