Skip to content
Snippets Groups Projects
Commit 38a7c5cf authored by Rodolphe Quiedeville's avatar Rodolphe Quiedeville
Browse files

Ajout graph des distributeurs

parent 3811e620
No related branches found
No related tags found
No related merge requests found
......@@ -139,17 +139,46 @@ if ($db->query($sql))
if ($verbose) print "Graph : Lignes commandes$file\n";
$graph = new GraphClientsWeek($db, $file);
$graph->width = 400;
$graph->GraphMakeGraph($row[0]);
$graph->commercial = $row[0];
$graph->GraphMakeGraph();
$file = $img_root . "commercials/".$row[0]."/clientsmoyenne.hebdomadaire.png";
if ($verbose) print "Graph : Moyenne nouveaux clients $file\n";
$graph = new GraphClientsMoyenneWeek($db, $file);
$graph->width = 400;
$graph->GraphMakeGraph($row[0]);
$i++;
}
}
/*
*
*/
$sql = "SELECT rowid";
$sql .= " FROM ".MAIN_DB_PREFIX."telephonie_distributeur";
$resql = $db->query($sql);
if ($resql)
{
$num = $db->num_rows($resql);
$i = 0;
while ($i < $num)
{
$row = $db->fetch_row($resql);
$file = $img_root . "commercials/".$row[0]."/clientsmoyenne.hebdomadaire.png";
if ($verbose) print "Graph : Moyenne nouveaux clients $file\n";
$graph = new GraphClientsMoyenneWeek($db, $file);
$graph->width = 400;
$graph->GraphMakeGraph($row[0]);
$file = $img_root . "distributeurs/".$row[0]."/clients.hebdomadaire.png";
if ($verbose) print "Graph : Lignes commandes$file\n";
$graph = new GraphClientsWeek($db, $file);
$graph->width = 400;
$graph->distributeur = $row[0];
$graph->GraphMakeGraph();
$i++;
}
}
/*****
*
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment