From b9cff6d2e3a5c4ea5fda90a1c631cd1a85991802 Mon Sep 17 00:00:00 2001
From: Rodolphe Quiedeville <rodolphe@quiedeville.org>
Date: Thu, 20 Oct 2005 19:18:51 +0000
Subject: [PATCH] Ajout graph

---
 htdocs/telephonie/client/stats.php | 28 ++++++++++++++++++++++++++--
 1 file changed, 26 insertions(+), 2 deletions(-)

diff --git a/htdocs/telephonie/client/stats.php b/htdocs/telephonie/client/stats.php
index 1ca42c7a3f8..6bd54008bad 100644
--- a/htdocs/telephonie/client/stats.php
+++ b/htdocs/telephonie/client/stats.php
@@ -114,10 +114,9 @@ if ($_GET["id"])
 	    }
 
 	  print '</td></tr>';
-
 	  print '<tr><td width="50%" valign="top" align="center">';
 
-	  $file = $img_root.$soc->id."/graphappelsdureemoyenne.png";
+	  $file = $img_root.$soc->id."/nb-minutes-mensuel.png";
 
 	  if (file_exists($file)) 
 	    {
@@ -140,7 +139,32 @@ if ($_GET["id"])
 	    {
 	      print $mesg_no_graph;
 	    }
+	  print '</td></tr>';
+	  print '<tr><td width="50%" valign="top" align="center">';
+
+	  $file = $img_root.$soc->id."/graphappelsdureemoyenne.png";
 
+	  if (file_exists($file)) 
+	    {
+	      print '<img src="'.DOL_URL_ROOT.'/telephonie/showgraph.php?graph='.$file.'" alt="Duree moyenne">';
+	    }
+	  else
+	    {
+	      print $mesg_no_graph;
+	    }
+
+	  print '</td><td width="50%" valign="top" align="center">';
+
+	  $file = $img_root.$soc->id."/nb-comm-menTOTOsuel.png";
+
+	  if (file_exists($file)) 
+	    {
+	      //print '<img src="'.DOL_URL_ROOT.'/telephonie/showgraph.php?graph='.$file.'" alt="CA Mensuel">';
+	    }
+	  else
+	    {
+	      //print $mesg_no_graph;
+	    }
 	  print '</td></tr></table>';
 	}
     }
-- 
GitLab