Ajout graphique

This commit is contained in:
Rodolphe Quiedeville
2005-02-28 10:52:27 +00:00
parent 5f4416980e
commit 357fc18fd7
2 changed files with 11 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/lignes/commandes.class.php");
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/lignes/commandes.week.class.php");
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/lignes/resiliation.week.class.php");
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/lignes/rejet.week.class.php");
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/clients/clients.week.class.php");
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/clients/clientsmoyenne.week.class.php");
$error = 0;
@@ -73,6 +73,9 @@ $graph->GraphMakeGraph();
/*
/***********************************************************************/
require_once DOL_DOCUMENT_ROOT."/telephonie/stats/clients/clients.week.class.php";
require_once DOL_DOCUMENT_ROOT."/telephonie/stats/clients/clients.month.class.php";
$file = $img_root . "lignes/commandes.mensuels.png";
if ($verbose) print "Graph : Lignes commandes$file\n";
$graph = new GraphLignesCommandes($db, $file);
@@ -96,6 +99,11 @@ $graph = new GraphClientsWeek($db, $file);
$graph->width = 400;
$graph->GraphMakeGraph();
$file = $img_root . "commercials/clients.mensuel.png";
$graph = new GraphClientsMonth($db, $file);
$graph->width = 400;
$graph->GraphMakeGraph();
$sql = "SELECT distinct fk_commercial";
$sql .= " FROM ".MAIN_DB_PREFIX."telephonie_societe_ligne";

View File

@@ -121,6 +121,8 @@ print '</td><td>';
print '<img src="'.DOL_URL_ROOT.'/showgraph.php?graph='.DOL_DATA_ROOT.'/graph/telephonie/commercials/clients.hebdomadaire.png" alt="Nouveaux clients par semaines" title="Nouveaux clients par semaine"><br /><br />'."\n";
print '<img src="'.DOL_URL_ROOT.'/showgraph.php?graph='.DOL_DATA_ROOT.'/graph/telephonie/commercials/clients.mensuel.png" alt="Nouveaux clients par semaines" title="Nouveaux clients par semaine"><br /><br />'."\n";
print '</td></tr>';
print '</table>';