From 4e86a6da8bb9115617be385dc1563438e04b8257 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 16 May 2003 09:42:05 +0000 Subject: [PATCH] Remise en forme du tableau --- htdocs/compta/ca.php3 | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/htdocs/compta/ca.php3 b/htdocs/compta/ca.php3 index 64d137cf1f8..4cf3dc26598 100644 --- a/htdocs/compta/ca.php3 +++ b/htdocs/compta/ca.php3 @@ -61,19 +61,38 @@ if ($result) } } -print ''; -print ''; +print '
'; +print ''; -for ($annee = 2001 ; $annee < 2006 ; $annee++) + +$year_current = strftime("%Y",time()); + +//$year_current = 2005; + +if ($year_current < (MAIN_START_YEAR + 4)) +{ + $year_start = MAIN_START_YEAR; + $year_end = (MAIN_START_YEAR + 3); +} +else +{ + $year_start = $year_current - 3; + $year_end = $year_current ; +} + + +for ($annee = $year_start ; $annee <= $year_end ; $annee++) { print ''; } print ''; for ($mois = 1 ; $mois < 13 ; $mois++) { - print ''; + $var=!$var; + print ""; + print ""; - for ($annee = 2001 ; $annee < 2006 ; $annee++) +for ($annee = $year_start ; $annee <= $year_end ; $annee++) { print '
 '.$annee.'
".strftime("%B",mktime(1,1,1,$mois,1,2000))." '; $case = strftime("%Y-%m",mktime(1,1,1,$mois,1,$annee));