From 4735fc745676948a602f54e04a4ae515b1c61716 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 23 Nov 2005 22:54:36 +0000 Subject: [PATCH] Ajout graph --- .../script/graph-statistiques-week.php | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/htdocs/telephonie/script/graph-statistiques-week.php b/htdocs/telephonie/script/graph-statistiques-week.php index 3255ddfcbd9..cd4fb8fc536 100644 --- a/htdocs/telephonie/script/graph-statistiques-week.php +++ b/htdocs/telephonie/script/graph-statistiques-week.php @@ -42,6 +42,18 @@ $error = 0; $img_root = DOL_DATA_ROOT."/graph/telephonie/"; +/***** + * + * + * + */ +require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/commerciaux/commerciaux.po.class.php"); +$file = $img_root . "commerciaux/po.mensuel.png"; + +$graph = new GraphCommerciauxPO($db, $file); +$graph->width = 400; +$graph->GraphMakeGraph(); + /***********************************************************************/ /* /* Contrats @@ -163,10 +175,8 @@ if ($db->query($sql)) /* Prise ordre des distributeur /* /***********************************************************************/ - require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/contrats/modereglement.class.php"); - $sql = "SELECT distinct p.fk_distributeur, d.nom"; $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_contrat_priseordre as p"; $sql .= " , ".MAIN_DB_PREFIX."telephonie_distributeur as d"; @@ -194,9 +204,9 @@ if ($resql) - /* - * - */ +/* + * + */ $sql = "SELECT rowid"; $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_distributeur"; @@ -209,8 +219,6 @@ if ($resql) while ($i < $num) { $row = $db->fetch_row($resql); - - $file = $img_root . "distributeurs/".$row[0]."/clients.hebdomadaire.png"; if ($verbose) print "Graph : Lignes commandes$file\n"; $graph = new GraphClientsWeek($db, $file); @@ -221,7 +229,6 @@ if ($resql) } } - /***** * * @@ -242,4 +249,5 @@ $file = $img_root . "lignes/rejets.hebdomadaire.png"; $graph = new GraphLignesRejetWeek($db, $file); $graph->width = 400; $graph->GraphMakeGraph(); + ?>