diff --git a/htdocs/telephonie/ligne/conso.php b/htdocs/telephonie/ligne/conso.php index 5eb6393d356b08e9140702ea813b55662854f6e0..b2f56b55133372c9f1de12ccdc078058a22de707 100644 --- a/htdocs/telephonie/ligne/conso.php +++ b/htdocs/telephonie/ligne/conso.php @@ -149,6 +149,22 @@ if ($_GET["id"] or $_GET["numero"]) print "</td></tr></table>"; + + $img_root = DOL_DATA_ROOT."/graph/".substr($ligne->id,-1)."/telephonie/ligne/"; + + $file = $img_root.$ligne->id."/conso.png"; + + if (file_exists($file)) + { + print '<br><img src="'.DOL_URL_ROOT.'/telephonie/showgraph.php?graph='.$file.'" alt="Conso">'; + } + else + { + print $mesg_no_graph; + } + + + } } }