diff --git a/htdocs/telephonie/ligne/stat.php b/htdocs/telephonie/ligne/stat.php index c6478630b6e..988a8532ce2 100644 --- a/htdocs/telephonie/ligne/stat.php +++ b/htdocs/telephonie/ligne/stat.php @@ -95,23 +95,104 @@ if ($_GET["id"] or $_GET["numero"]) print '
';
print $ligne->statuts[$ligne->statut];
- print '| Chiffre d\'affaire | '; + print 'Gain |
| ';
+
+ $mesg_no_graph = 'Nous avons pas assez de données à ce jour pour générer ce graphique.';
+
+ $img_root = DOL_DATA_ROOT."/graph/".substr($ligne->id,-1)."/telephonie/ligne/";
+
+ $file = $img_root.$ligne->id."/graphca.png";
+
+ if (file_exists($file))
+ {
+ print ' | ';
+
+ $file = $img_root.$ligne->id."/graphgain.png";
+ if (file_exists($file))
+ {
+ print ' |
| Appels | '; + print '- |
| ';
+
+ $file = $img_root.$ligne->id."/graphappelsdureemoyenne.png";
+
+ if (file_exists($file))
+ {
+ print ' | '; + + print " "; + + print ' |
| Communications | '; + print 'Minutes |
| ';
+
+ $file = $img_root.$ligne->id."/nb-comm-mensuel.png";
+
+ if (file_exists($file))
+ {
+ print ' | ';
+
+ $file = $img_root.$ligne->id."/nb-minutes-mensuel.png";
+
+ if (file_exists($file))
+ {
+ print ' |