Skip to content
Extraits de code Groupes Projets
Valider 9cdf77a7 rédigé par esj's avatar esj
Parcourir les fichiers

bug de navigation dans les mini agendas (merci James de m'avoir évité le...

bug de navigation dans les mini agendas (merci James de m'avoir évité le summum du ridicule) + toutes les petites modifs demandeés par James car il l'a bien mérité
parent a62aa342
Branches
Étiquettes
Aucune requête de fusion associée trouvée
...@@ -88,7 +88,8 @@ elseif ($type == 'jour') { ...@@ -88,7 +88,8 @@ elseif ($type == 'jour') {
array('nom_mois' => nom_mois($date), 'annee' => annee($date))); 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 // utilitaire de separation script / ancre
...@@ -411,7 +412,6 @@ function http_calendrier_navigation($jour, $mois, $annee, $partie_cal, $echelle, ...@@ -411,7 +412,6 @@ function http_calendrier_navigation($jour, $mois, $annee, $partie_cal, $echelle,
http_href_img($script . "type=$type&echelle=$echelle&$arguments", http_href_img($script . "type=$type&echelle=$echelle&$arguments",
"cal-today.gif", "cal-today.gif",
(" onmouseover=\"montrer('$id');\"" . (" onmouseover=\"montrer('$id');\"" .
" onmouseout=\"cacher('$id');\"" .
($condition ? " class='calendrier-opacity'" : "")), ($condition ? " class='calendrier-opacity'" : "")),
_T("info_aujourdhui")) . _T("info_aujourdhui")) .
"&nbsp;" . "&nbsp;" .
...@@ -431,7 +431,9 @@ function http_agenda_invisible($id, $annee, $jour, $mois, $script, $ancre) ...@@ -431,7 +431,9 @@ function http_agenda_invisible($id, $annee, $jour, $mois, $script, $ancre)
{ {
global $spip_lang_right, $spip_lang_left, $couleur_claire; global $spip_lang_right, $spip_lang_left, $couleur_claire;
if (!isset($couleur_claire)) $couleur_claire = 'white'; 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 .= "<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;'>"; $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 ...@@ -543,7 +545,6 @@ function http_calendrier_mois($mois, $annee, $premier_jour, $dernier_jour, $part
list($purscript, $ancre) = http_calendrier_script($script); list($purscript, $ancre) = http_calendrier_script($script);
return return
"<div>&nbsp;</div>" .
"<table class='calendrier-table-$spip_ecran' cellspacing='0' cellpadding='0' border='0'>" . "<table class='calendrier-table-$spip_ecran' cellspacing='0' cellpadding='0' border='0'>" .
"\n<tr><td colspan='7'>" . "\n<tr><td colspan='7'>" .
http_calendrier_navigation($j, http_calendrier_navigation($j,
...@@ -1122,7 +1123,6 @@ function http_calendrier_init_jour($date, $echelle, $partie_cal, $script, $evt) ...@@ -1122,7 +1123,6 @@ function http_calendrier_init_jour($date, $echelle, $partie_cal, $script, $evt)
list($script, $ancre) = http_calendrier_script($script); list($script, $ancre) = http_calendrier_script($script);
$gauche = (_DIR_RESTREINT || ($spip_ecran != "large")); $gauche = (_DIR_RESTREINT || ($spip_ecran != "large"));
return return
"<div>&nbsp;</div>" .
"\n<table class='calendrier-table-$spip_ecran'>" . "\n<table class='calendrier-table-$spip_ecran'>" .
"\n<tr><td class='calendrier-td-gauche'> " . "\n<tr><td class='calendrier-td-gauche'> " .
"</td><td colspan='5' class='calendrier-td-centre'>" . "</td><td colspan='5' class='calendrier-td-centre'>" .
...@@ -1168,7 +1168,6 @@ function http_calendrier_init_semaine($date, $echelle, $partie_cal, $script, $ev ...@@ -1168,7 +1168,6 @@ function http_calendrier_init_semaine($date, $echelle, $partie_cal, $script, $ev
list($script, $ancre) = http_calendrier_script($script); list($script, $ancre) = http_calendrier_script($script);
return return
"<div>&nbsp;</div>" .
"\n<table class='calendrier-table-$spip_ecran' cellspacing='0' cellpadding='0' border='0'>" . "\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) . http_calendrier_suite_heures($jour_today,$mois_today,$annee_today, $articles, $messages, $partie_cal, $echelle, $script, $ancre) .
"</table>" . "</table>" .
......
...@@ -846,11 +846,16 @@ function tester_config($ignore, $quoi) { ...@@ -846,11 +846,16 @@ function tester_config($ignore, $quoi) {
return ''; 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='') function calendrier($date='', $type='mois', $echelle='', $partie_cal='', $script='')
{ {
include_ecrire("inc_calendrier.php"); include_ecrire("inc_calendrier.php");
include_ecrire("inc_layer.php3"); include_ecrire("inc_layer.php3");
if (!isset($GLOBALS['spip_ecran'])) $GLOBALS['spip_ecran'] = 'large'; if (!isset($GLOBALS['spip_ecran'])) $GLOBALS['spip_ecran'] = 'large';
if (isset($GLOBALS['mois'])) $date ='';
return return
$GLOBALS['browser_layer'] . $GLOBALS['browser_layer'] .
http_script('',_DIR_RESTREINT . 'presentation.js') . http_script('',_DIR_RESTREINT . 'presentation.js') .
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter