CVS: spip/ecrire calendrier.php3,1.19,1.20

Update of /home/spip-cvs/spip/ecrire
In directory miel:/tmp/cvs-serv6420

Modified Files:
  calendrier.php3
Log Message:
Ajout bouton de retour a aujourd'hui

Index: calendrier.php3

RCS file: /home/spip-cvs/spip/ecrire/calendrier.php3,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- calendrier.php3 4 Nov 2003 18:30:49 -0000 1.19
+++ calendrier.php3 4 Nov 2003 19:05:13 -0000 1.20
@@ -35,11 +35,17 @@
   echo "<table cellpadding=0 cellspacing=0 border=0 width='".($largeur_table+10+$largeur_gauche)."'><tr>";
   
   echo "<td width='$largeur_gauche' class='verdana1' valign='top'>";
- echo "<br />";
+
+ // date du jour
+ $today=getdate(time());
+ $mois=$today["mon"];
+ $annee=$today["year"];
     
+ if ($mois != $mois_today OR $annee != $annee_today) {
+ icone(_T("info_aujourdhui")."<br>".nom_mois("$annee-$mois-1")." $annee", "calendrier.php3", "calendrier-24.gif", "", "center");
+ }
     $annee_avant = $annee_today - 1;
     $annee_apres = $annee_today + 1;
-
     
     if ($mois_today <=6) {
       debut_boite_info();