From ce5e1b12ace09cf62842fda0c3bc1891b0c90b70 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 8 Dec 2005 11:47:20 +0000 Subject: [PATCH] Ajout graph conso --- htdocs/telephonie/ligne/conso.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/htdocs/telephonie/ligne/conso.php b/htdocs/telephonie/ligne/conso.php index 5eb6393d356..b2f56b55133 100644 --- a/htdocs/telephonie/ligne/conso.php +++ b/htdocs/telephonie/ligne/conso.php @@ -149,6 +149,22 @@ if ($_GET["id"] or $_GET["numero"]) print ""; + + $img_root = DOL_DATA_ROOT."/graph/".substr($ligne->id,-1)."/telephonie/ligne/"; + + $file = $img_root.$ligne->id."/conso.png"; + + if (file_exists($file)) + { + print '
Conso'; + } + else + { + print $mesg_no_graph; + } + + + } } }