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 'Statut'; print ' '; print $ligne->statuts[$ligne->statut]; - print ''; - - print ''; - print ''; - print ''; - //print ''; print ""; + /* + * + * + */ + + print ''; + print ''; + print ''; + + print ''; + + print ''; + print ''; + + print ''; + + print ''; + print ''; + + print '
Chiffre d\'affaireGain
'; + + $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 'CA Mensuel'; + } + else + { + print $mesg_no_graph; + } + + print ''; + + $file = $img_root.$ligne->id."/graphgain.png"; + if (file_exists($file)) + { + print 'CA Mensuel'; + } + else + { + print $mesg_no_graph; + } + + print '
Appels-
'; + + $file = $img_root.$ligne->id."/graphappelsdureemoyenne.png"; + + if (file_exists($file)) + { + print 'CA Mensuel'; + } + else + { + print $mesg_no_graph; + } + + print ''; + + print " "; + + print '
CommunicationsMinutes
'; + + $file = $img_root.$ligne->id."/nb-comm-mensuel.png"; + + if (file_exists($file)) + { + print 'CA Mensuel'; + } + else + { + print $mesg_no_graph; + } + + print ''; + + $file = $img_root.$ligne->id."/nb-minutes-mensuel.png"; + + if (file_exists($file)) + { + print 'CA Mensuel'; + } + else + { + print $mesg_no_graph; + } + + print '
'; } } - /* - * - * - * - */ } else {