diff --git a/htdocs/telephonie/stats/distributeurs/commercialca.php b/htdocs/telephonie/stats/distributeurs/commercialca.php index 22c45e53138..6d1f7453123 100644 --- a/htdocs/telephonie/stats/distributeurs/commercialca.php +++ b/htdocs/telephonie/stats/distributeurs/commercialca.php @@ -30,14 +30,21 @@ llxHeader('','Telephonie - Statistiques - Distributeurs'); * * */ - - $h = 0; - $head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/index.php'; $head[$h][1] = "Global"; $h++; +$year = strftime("%Y",time()); +if (strftime("%m",time()) == 1) +{ + $year = $year -1; +} +if ($_GET["year"] > 0) +{ + $year = $_GET["year"]; +} + if ($_GET["id"]) { $comm = new User($db, $_GET["id"]); @@ -53,15 +60,18 @@ if ($_GET["id"]) $h++; dolibarr_fiche_head($head, $hselected, "Distributeurs"); + stat_year_bar($year); print ''; - print '\n"; + print ''; print '
'; - - print 'Gain mensuel

'."\n"; + print 'Gain mensuel'."\n"; - print 'Chiffre d\'affaire mensuel

'."\n"; + print "
'; + print 'Chiffre d\'affaire mensuel'."\n"; print '
';