From 9cdf77a7b106fd69ba014fc4890f2af07df72c1f Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Fri, 1 Apr 2005 20:15:27 +0000
Subject: [PATCH] =?UTF-8?q?bug=20de=20navigation=20dans=20les=20mini=20age?=
 =?UTF-8?q?ndas=20(merci=20James=20de=20m'avoir=20=C3=A9vit=C3=A9=20le=20s?=
 =?UTF-8?q?ummum=20du=20ridicule)=20+=20toutes=20les=20petites=20modifs=20?=
 =?UTF-8?q?demande=C3=A9s=20par=20James=20car=20il=20l'a=20bien=20m=C3=A9r?=
 =?UTF-8?q?it=C3=A9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/inc_calendrier.php | 11 +++++------
 ecrire/inc_filtres.php3   |  5 +++++
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/ecrire/inc_calendrier.php b/ecrire/inc_calendrier.php
index a9fb1d022d..0107e21e7e 100644
--- a/ecrire/inc_calendrier.php
+++ b/ecrire/inc_calendrier.php
@@ -88,7 +88,8 @@ elseif ($type == 'jour') {
 		    array('nom_mois' => nom_mois($date), 'annee' => annee($date)));
 	  }
 
-  debut_page($titre,  "redacteurs", "calendrier");
+ debut_page($titre, "redacteurs", "calendrier");
+ echo "<div>&nbsp;</div>" ;
 }
 
 // utilitaire de separation script / ancre
@@ -411,7 +412,6 @@ function http_calendrier_navigation($jour, $mois, $annee, $partie_cal, $echelle,
 	  http_href_img($script . "type=$type&echelle=$echelle&$arguments",
 			"cal-today.gif",
 			(" onmouseover=\"montrer('$id');\"" .
-			 " onmouseout=\"cacher('$id');\"" .
 			 ($condition ? " class='calendrier-opacity'" : "")),
 			_T("info_aujourdhui")) .
 	  "&nbsp;" .
@@ -431,7 +431,9 @@ function http_agenda_invisible($id, $annee, $jour, $mois, $script, $ancre)
 {
 	global $spip_lang_right, $spip_lang_left, $couleur_claire;
 	if (!isset($couleur_claire)) $couleur_claire = 'white';
-	$gadget = "<div style='position: relative;z-index: 1000;'>";
+	$gadget = "<div style='position: relative;z-index: 1000;'
+			onmouseover=\"montrer('$id');\" .
+			onmouseout=\"cacher('$id');\">";
 
 	$gadget .= "<table id='$id' class='calendrier-cadreagenda' style='position: absolute; background-color: $couleur_claire'>";
 	$gadget .= "\n<tr><td colspan='3' style='text-align:$spip_lang_left;'>";
@@ -543,7 +545,6 @@ function http_calendrier_mois($mois, $annee, $premier_jour, $dernier_jour, $part
 	list($purscript, $ancre) = http_calendrier_script($script);
 
       return 
-	"<div>&nbsp;</div>" .
 	"<table class='calendrier-table-$spip_ecran' cellspacing='0' cellpadding='0' border='0'>" .
 	"\n<tr><td colspan='7'>" .
 	http_calendrier_navigation($j,
@@ -1122,7 +1123,6 @@ function http_calendrier_init_jour($date, $echelle,  $partie_cal, $script, $evt)
 	list($script, $ancre) = http_calendrier_script($script);
 	$gauche = (_DIR_RESTREINT  || ($spip_ecran != "large"));
 	return 	
-	  "<div>&nbsp;</div>" .
 	  "\n<table class='calendrier-table-$spip_ecran'>" .
 	  "\n<tr><td class='calendrier-td-gauche'> " .
 	  "</td><td colspan='5' class='calendrier-td-centre'>" .
@@ -1168,7 +1168,6 @@ function http_calendrier_init_semaine($date, $echelle, $partie_cal, $script, $ev
 	list($script, $ancre) = http_calendrier_script($script);
 
 	return 
-	  "<div>&nbsp;</div>" .
 	  "\n<table class='calendrier-table-$spip_ecran' cellspacing='0' cellpadding='0' border='0'>" .
 	  http_calendrier_suite_heures($jour_today,$mois_today,$annee_today, $articles, $messages, $partie_cal, $echelle, $script, $ancre) .
 	  "</table>" .
diff --git a/ecrire/inc_filtres.php3 b/ecrire/inc_filtres.php3
index ae3a603e01..f7f1066d7b 100644
--- a/ecrire/inc_filtres.php3
+++ b/ecrire/inc_filtres.php3
@@ -846,11 +846,16 @@ function tester_config($ignore, $quoi) {
 			return '';
 	}
 }
+
+// filtre pour visualiser dans l'espace public le calendrier de l'espace de redac
+// Tres ad hoc, faudra ameliorer.
+
 function calendrier($date='', $type='mois', $echelle='', $partie_cal='', $script='')
 {
    include_ecrire("inc_calendrier.php");
    include_ecrire("inc_layer.php3");
    if (!isset($GLOBALS['spip_ecran'])) $GLOBALS['spip_ecran'] = 'large';
+   if (isset($GLOBALS['mois'])) $date ='';
    return
      $GLOBALS['browser_layer'] .
      http_script('',_DIR_RESTREINT . 'presentation.js') .
-- 
GitLab