diff --git a/htdocs/compta/stats/index.php b/htdocs/compta/stats/index.php index cb46cbc73c3..fa40a73328a 100644 --- a/htdocs/compta/stats/index.php +++ b/htdocs/compta/stats/index.php @@ -60,32 +60,32 @@ if ($result) } print ''; -print ''; - +print ''; $year_current = strftime("%Y",time()); +$nbyears = 3; -if ($year_current < (MAIN_START_YEAR + 4)) +if ($year_current < (MAIN_START_YEAR + $nbyears)) { $year_start = MAIN_START_YEAR; - $year_end = (MAIN_START_YEAR + 3); + $year_end = (MAIN_START_YEAR + $nbyears - 1); } else { - $year_start = $year_current - 3; + $year_start = $year_current - ($nbyears + 1); $year_end = $year_current ; } - for ($annee = $year_start ; $annee <= $year_end ; $annee++) { - print ''; + print ''; } -print ''; +print ''; + for ($mois = 1 ; $mois < 13 ; $mois++) { $var=!$var; - print ""; + print ""; print ""; for ($annee = $year_start ; $annee <= $year_end ; $annee++)
 
 '.$annee.''.$annee.'
 
".strftime("%B",mktime(1,1,1,$mois,1,2000))."