diff --git a/htdocs/telephonie/stats/commerciaux/commercialca.php b/htdocs/telephonie/stats/commerciaux/commercialca.php index afeb15edb2e..cf8db766fba 100644 --- a/htdocs/telephonie/stats/commerciaux/commercialca.php +++ b/htdocs/telephonie/stats/commerciaux/commercialca.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2005-2006 Rodolphe Quiedeville * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -35,7 +35,10 @@ if (strftime("%m",time()) == 1) { $year = $year -1; } - +if ($_GET["year"] > 0) +{ + $year = $_GET["year"]; +} $head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/commerciaux/index.php'; $head[$h][1] = "Global"; $h++; @@ -59,6 +62,7 @@ if ($_GET["commid"]) $h++; dolibarr_fiche_head($head, $hselected, "Commerciaux"); + stat_year_bar($year); print ''; @@ -127,13 +131,10 @@ if ($_GET["commid"]) print $db->error() . ' ' . $sql; } print '
'; - - print ''; print ''; - $db->close(); - + $db->close(); } llxFooter("Dernière modification $Date$ révision $Revision$");