From 0a17cfbd023b4534dd64474373bb3356a8079113 Mon Sep 17 00:00:00 2001 From: "Committo,Ergo:sum" <esj@rezo.net> Date: Fri, 19 Aug 2005 16:44:44 +0000 Subject: [PATCH] installation de theme de couleur dans l'agenda des jours --- dist/agenda.html | 2 +- dist/agenda_jour.html | 25 +++++++++++++++++++++---- ecrire/inc_calendrier.php | 2 +- 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/dist/agenda.html b/dist/agenda.html index 20c0b22b7e..58062fd07e 100644 --- a/dist/agenda.html +++ b/dist/agenda.html @@ -8,5 +8,5 @@ <script type="text/javascript" src="ecrire/presentation.js"></script> </head><body> [(#ENV{type, mois}|agenda_connu)<INCLURE(page.php3) - {fond=agenda_#ENV{type,mois}}{type}{delais=900}{annee}{mois}{jour}{echelle}{partie_cal}>] + {fond=agenda_#ENV{type,mois}}{type}{delais=900}{annee}{mois}{jour}{echelle}{partie_cal}{theme}>] </body></html> diff --git a/dist/agenda_jour.html b/dist/agenda_jour.html index 247ae62c22..4e5d677886 100644 --- a/dist/agenda_jour.html +++ b/dist/agenda_jour.html @@ -1,7 +1,24 @@ <BOUCLE_jour(ARTICLES) {agenda date, jour, #ENV{annee}, #ENV{mois}, #ENV{jour}}{par date} >[(#DATE|agenda_memo{#DESCRIPTIF, #TITRE, #URL_ARTICLE, - [(#COMPTEUR_BOUCLE| - alterner{'calendrier-couleur1', 'calendrier-couleur3'})]})]</BOUCLE_jour>[(#TOTAL_BOUCLE| - agenda_affiche{<:aucun_article:>, 'jour', 'calendrier-couleur1', 'calendrier-couleur3'} -)]<//B_jour> \ No newline at end of file + calendrier-couleur[(#ENV{theme,0}|modulo{14,1})]})]</BOUCLE_jour>[(#TOTAL_BOUCLE|agenda_affiche{<:aucun_article:>, 'jour', + calendrier-couleur[(#ENV{theme,0}|modulo{14,1})]}) +<div style='position: fixed; top:50px; left: 20px'> +<table style='width: 10px'><tr> +<td class='calendrier-couleur1'><a style='text-decoration: none;' href='[(#SELF)]&theme=0'> </a></td></tr> +<tr><td class='calendrier-couleur2'><a style='text-decoration: none;' href='[(#SELF)]&theme=1''> </a></td></tr> +<tr><td class='calendrier-couleur3'><a style='text-decoration: none;' href='[(#SELF)]&theme=2'> </a></td></tr> +<tr><td class='calendrier-couleur4'><a style='text-decoration: none;' href='[(#SELF)]&theme=3'> </a></td></tr> +<tr><td class='calendrier-couleur5'><a style='text-decoration: none;' href='[(#SELF)]&theme=4'> </a></td></tr> +<tr><td class='calendrier-couleur6'><a style='text-decoration: none;' href='[(#SELF)]&theme=5''> </a></td></tr> +<tr><td class='calendrier-couleur7'><a style='text-decoration: none;' href='[(#SELF)]&theme=6'> </a></td></tr> +<tr><td class='calendrier-couleur8'><a style='text-decoration: none;' href='[(#SELF)]&theme=7'> </a></td></tr> +<tr><td class='calendrier-couleur9'><a style='text-decoration: none;' href='[(#SELF)]&theme=8'> </a></td></tr> +<tr><td class='calendrier-couleur10'><a style='text-decoration: none;' href='[(#SELF)]&theme=9'> </a></td></tr> +<tr><td class='calendrier-couleur11'><a style='text-decoration: none;' href='[(#SELF)]&theme=10'> </a></td></tr> +<tr><td class='calendrier-couleur12'><a style='text-decoration: none;' href='[(#SELF)]&theme=11'> </a></td></tr> +<tr><td class='calendrier-couleur13'><a style='text-decoration: none;' href='[(#SELF)]&theme=12'> </a></td></tr> +<tr><td class='calendrier-couleur14'><a style='text-decoration: none;' href='[(#SELF)]&theme=13'> </a></td></tr> +</table> +</div> +]<//B_jour> diff --git a/ecrire/inc_calendrier.php b/ecrire/inc_calendrier.php index 790dd26816..fc6a361555 100644 --- a/ecrire/inc_calendrier.php +++ b/ecrire/inc_calendrier.php @@ -634,7 +634,7 @@ function http_calendrier_ics($annee, $mois, $jour,$echelle, $partie_cal, $large $haut = calendrier_top ("$heure_debut:$minutes_debut", $debut, $fin, $dimheure, $dimjour, $fontsize); $bas = !$e ? $haut :calendrier_top ("$heure_fin:$minutes_fin", $debut, $fin, $dimheure, $dimjour, $fontsize); $hauteur = calendrier_height ("$heure_debut:$minutes_debut", "$heure_fin:$minutes_fin", $debut, $fin, $dimheure, $dimjour, $fontsize); - if ($bas_prec > $haut) $decale += $modif_decalage; + if ($bas_prec >= $haut) $decale += $modif_decalage; else $decale = (4 * $fontsize); if ($bas > $bas_prec) $bas_prec = $bas; $url = $evenement['URL']; -- GitLab