Modif stats
This commit is contained in:
parent
88f7807a01
commit
8a9f2c2517
@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
require("../expedition.class.php");
|
require("../expedition.class.php");
|
||||||
require("../../graph.class.php");
|
|
||||||
require("./expeditionstats.class.php");
|
require("./expeditionstats.class.php");
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
@ -34,25 +33,21 @@ $mesg = '';
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
print_fiche_titre('Statistiques expeditions '.$_GET["year"], $mesg);
|
||||||
|
|
||||||
$stats = new ExpeditionStats($db);
|
$stats = new ExpeditionStats($db);
|
||||||
|
|
||||||
$year = $_GET["year"];
|
|
||||||
|
|
||||||
print_fiche_titre('Statistiques expeditions '.$year, $mesg);
|
|
||||||
|
|
||||||
$dir = DOL_DOCUMENT_ROOT;
|
$dir = DOL_DOCUMENT_ROOT;
|
||||||
|
|
||||||
////////////////////////
|
$data = $stats->getNbExpeditionByMonth($_GET["year"]);
|
||||||
|
|
||||||
$data = $stats->getNbExpeditionByMonth($year);
|
$filev = "/document/images/expedition-".$_GET["year"].".png";
|
||||||
|
|
||||||
$filev = "/document/images/expedition-$year.png";
|
$px = new BarGraph($data);
|
||||||
|
$px->SetMaxValue($px->GetMaxValue());
|
||||||
$px = new Graph();
|
|
||||||
$px->SetWidth(600);
|
$px->SetWidth(600);
|
||||||
$px->SetHeight(280);
|
$px->SetHeight(280);
|
||||||
$px->SetYLabel("Nombre de expedition");
|
$px->draw($dir.$filev, $data, $_GET["year"]);
|
||||||
$px->draw($dir.$filev, $data, $year);
|
|
||||||
|
|
||||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
||||||
print '<tr><td align="center">Nombre d\'expédition par mois</td>';
|
print '<tr><td align="center">Nombre d\'expédition par mois</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user