From d3a0efc9c78421fd48b4fb7481ee0f8817af2507 Mon Sep 17 00:00:00 2001 From: ARNO* <arno@rezo.net> Date: Mon, 24 Nov 2003 16:15:34 +0000 Subject: [PATCH] Modifs interface --- .gitattributes | 3 ++ ecrire/calendrier.php3 | 52 +++++++++++++++++++-------- ecrire/calendrier_jour.php3 | 61 +++++++++++++++++++++++++------- ecrire/img_pack/cal-jour.gif | Bin 0 -> 282 bytes ecrire/img_pack/cal-mois.gif | Bin 0 -> 271 bytes ecrire/img_pack/cal-semaine.gif | Bin 0 -> 287 bytes ecrire/inc_agenda.php3 | 2 ++ ecrire/inc_presentation.php3 | 14 +++++--- 8 files changed, 100 insertions(+), 32 deletions(-) create mode 100644 ecrire/img_pack/cal-jour.gif create mode 100644 ecrire/img_pack/cal-mois.gif create mode 100644 ecrire/img_pack/cal-semaine.gif diff --git a/.gitattributes b/.gitattributes index a82cbfaf75..6aee316950 100644 --- a/.gitattributes +++ b/.gitattributes @@ -97,6 +97,9 @@ ecrire/img_pack/cadre-g.gif -text ecrire/img_pack/cadre-h.gif -text ecrire/img_pack/cadre-hd.gif -text ecrire/img_pack/cadre-hg.gif -text +ecrire/img_pack/cal-jour.gif -text +ecrire/img_pack/cal-mois.gif -text +ecrire/img_pack/cal-semaine.gif -text ecrire/img_pack/calendrier-24.gif -text ecrire/img_pack/choix-layout.gif -text ecrire/img_pack/choix-layout_rtl.gif -text diff --git a/ecrire/calendrier.php3 b/ecrire/calendrier.php3 index a07df10e28..ceb94573b6 100644 --- a/ecrire/calendrier.php3 +++ b/ecrire/calendrier.php3 @@ -26,7 +26,7 @@ function afficher_mois($jour_today,$mois_today,$annee_today,$nom_mois){ $largeur_gauche = 130; } else { $largeur_table = 750; - $largeur_gauche = 100; + $largeur_gauche = 100; } $largeur_table = $largeur_table - ($largeur_gauche+20); $largeur_col = round($largeur_table/7); @@ -42,14 +42,12 @@ function afficher_mois($jour_today,$mois_today,$annee_today,$nom_mois){ $mois=$today["mon"]; $annee=$today["year"]; - if ($mois != $mois_today OR $annee != $annee_today) { - icone(_T("info_aujourdhui")."<br>".affdate_mois_annee("$annee-$mois-1"), "calendrier.php3", "calendrier-24.gif", "", "center"); - echo "<p />"; - } + if ($mois != $mois_today OR $annee != $annee_today) $afficher_lien_aujourdhui = true; $annee_avant = $annee_today - 1; $annee_apres = $annee_today + 1; - + echo "<div> </div>"; + echo "<div> </div>"; echo "<div class='verdana1'>"; echo "<div><b>$annee_avant</b></div>"; for ($i=$mois_today; $i < 13; $i++) { @@ -76,7 +74,6 @@ function afficher_mois($jour_today,$mois_today,$annee_today,$nom_mois){ echo "<td width='20'> </td>"; echo "<td width='$largeur_table' valign='top'>"; - echo "<TABLE border=0 CELLSPACING=0 CELLPADDING=3 WIDTH='$largeur_table'>"; $mois_suiv=$mois_today+1; @@ -145,9 +142,34 @@ function afficher_mois($jour_today,$mois_today,$annee_today,$nom_mois){ $les_rv["$lejour"][]="<div style='padding: 2px; margin-top: 2px; background-color: $couleur_fond; border: 1px solid $la_couleur; -moz-border-radius: 3px;' class='arial0'><font color='$la_couleur'><b>".heures($date_heure).":".minutes($date_heure)."</b></font> <a href='message.php3?id_message=$id_message' style='color: black;'>$titre</a></div>"; } + $activer_messagerie = lire_meta("activer_messagerie"); + $connect_activer_messagerie = $GLOBALS["connect_activer_messagerie"]; echo "<TR><TD style='text-align:$spip_lang_left;'><A HREF='calendrier.php3?mois=$mois_prec&annee=$annee_prec'><img src='img_pack/fleche-$spip_lang_left.png' alt='<<<' width='12' height='12' border='0'></A></TD>"; - echo "<TD style='text-align:center;' COLSPAN=5><FONT FACE='arial,helvetica,sans-serif' SIZE=3><B>".affdate_mois_annee("$annee_today-$mois_today-1")." ".aide ("messcalen")."</B></FONT></TD>"; + echo "<TD style='text-align:center;' COLSPAN=5>"; + + if ($afficher_lien_aujourdhui) { + echo "<div style='float: $spip_lang_left; width: 150px; align: left;'>"; + icone_horizontale(_T("info_aujourdhui")."<br>".affdate_mois_annee("$annee-$mois-1"), "calendrier.php3", "calendrier-24.gif", "", "left"); + echo "</div>"; + } + + + if ($activer_messagerie == "oui" AND $connect_activer_messagerie != "non"){ + echo "<div style='float: $spip_lang_right; width: 120px;'>"; + if (!$afficher_lien_aujourdhui) echo "<a href='calendrier_jour.php3'><img src='img_pack/cal-jour.gif' alt='jour' width='26' height='20' border='0' style='filter: alpha(opacity=50);'></a>"; + else echo "<a href='calendrier_jour.php3?jour=1&mois=$mois&annee=$annee'><img src='img_pack/cal-jour.gif' alt='jour' width='26' height='20' border='0' style='filter: alpha(opacity=50);'></a>"; + echo " "; + echo "<img src='img_pack/cal-semaine.gif' alt='semaine' width='26' height='20' border='0' style='filter: alpha(opacity=50);'>"; + echo " "; + echo "<img src='img_pack/cal-mois.gif' alt='mois' width='26' height='20' border='0' style='border:1px solid black;'>"; + echo "</div>"; + } + + echo "<FONT FACE='arial,helvetica,sans-serif' SIZE='4'><B>".affdate_mois_annee("$annee_today-$mois_today-1")." ".aide ("messcalen")."</B></FONT>"; + + + echo "</TD>"; echo "<TD style='text-align:$spip_lang_right;'><A HREF='calendrier.php3?mois=$mois_suiv&annee=$annee_suiv'><img src='img_pack/fleche-$spip_lang_right.png' alt='>>>' width='12' height='12' border='0'></A></TD></TR>"; echo "<TR>"; @@ -184,13 +206,11 @@ function afficher_mois($jour_today,$mois_today,$annee_today,$nom_mois){ } if ($activer_messagerie == "oui" AND $connect_activer_messagerie != "non"){ - echo "<td width='$largeur_col' HEIGHT=80 BGCOLOR='$couleur_fond' VALIGN='top' style='border-bottom: 1px solid white; border-right: 1px solid white; border-left: 1px solid #aaaaaa; border-top: 1px solid #aaaaaa;'><a href='calendrier_jour.php3?jour=$jour&mois=$mois_today&annee=$annee_today'><font face='arial,helvetica,sans-serif' SIZE=3 color='$couleur_lien'><b>$jour</b></a></font>"; + echo "<td width='$largeur_col' HEIGHT='100' BGCOLOR='$couleur_fond' VALIGN='top' style='border-bottom: 1px solid white; border-right: 1px solid white; border-left: 1px solid #aaaaaa; border-top: 1px solid #aaaaaa;'><a href='calendrier_jour.php3?jour=$jour&mois=$mois_today&annee=$annee_today'><font face='arial,helvetica,sans-serif' SIZE=3 color='$couleur_lien'><b>$jour</b></a></font>"; } else { - echo "<td width='$largeur_col' HEIGHT=80 BGCOLOR='$couleur_fond' VALIGN='top' style='border-bottom: 1px solid white; border-right: 1px solid white; border-left: 1px solid #aaaaaa; border-top: 1px solid #aaaaaa;'><font face='arial,helvetica,sans-serif' SIZE=3 color='$couleur_lien'><b>$jour</b></font>"; + echo "<td width='$largeur_col' HEIGHT='100' BGCOLOR='$couleur_fond' VALIGN='top' style='border-bottom: 1px solid white; border-right: 1px solid white; border-left: 1px solid #aaaaaa; border-top: 1px solid #aaaaaa;'><font face='arial,helvetica,sans-serif' SIZE=3 color='$couleur_lien'><b>$jour</b></font>"; } - $activer_messagerie = lire_meta("activer_messagerie"); - $connect_activer_messagerie = $GLOBALS["connect_activer_messagerie"]; if ($activer_messagerie == "oui" AND $connect_activer_messagerie != "non"){ echo " <a href='message_edit.php3?rv=$annee_today-$mois_today-$jour&new=oui&type=pb' title='"._T("lien_nouvea_pense_bete")."'><IMG SRC='img_pack/m_envoi_bleu$spip_lang_rtl.gif' WIDTH='14' HEIGHT='7' BORDER='0'></a>"; echo " <a href='message_edit.php3?rv=$annee_today-$mois_today-$jour&new=oui&type=normal' title='"._T("lien_nouveau_message")."'><IMG SRC='img_pack/m_envoi$spip_lang_rtl.gif' WIDTH='14' HEIGHT='7' BORDER='0'></a>"; @@ -232,20 +252,22 @@ if (!$mois){ $nom_mois = nom_mois('2000-'.sprintf("%02d", $mois).'-01'); -debut_page(d_apostrophe(_T('titre_page_calendrier', array('nom_mois' => $nom_mois, 'annee' => $annee))), "asuivre", "calendrier"); +debut_page(d_apostrophe(_T('titre_page_calendrier', array('nom_mois' => $nom_mois, 'annee' => $annee))), "redacteurs", "calendrier"); $activer_messagerie = lire_meta("activer_messagerie"); $connect_activer_messagerie = $GLOBALS["connect_activer_messagerie"]; //echo "<BR><BR><BR>"; -if ($activer_messagerie == "oui" AND $connect_activer_messagerie != "non"){ +/*if ($activer_messagerie == "oui" AND $connect_activer_messagerie != "non"){ barre_onglets("calendrier", "calendrier"); echo "<br /><br />"; -} +}*/ // marges et pied de page supprimes pour prendre toute la largeur // debut_gauche(); // debut_droite(); +echo "<div> </div>"; + afficher_mois($jour,sprintf("%02d", $mois),$annee,$nom_mois); if (strlen($les_breves["0"]) > 0 OR $les_articles["0"] > 0){ diff --git a/ecrire/calendrier_jour.php3 b/ecrire/calendrier_jour.php3 index 0070a3632b..6658c6b784 100644 --- a/ecrire/calendrier_jour.php3 +++ b/ecrire/calendrier_jour.php3 @@ -19,23 +19,61 @@ if (!$mois){ $annee=$today["year"]; } + $date = date("Y-m-d", mktime(0,0,0,$mois, $jour, $annee)); + $jour = jour($date); + $mois = mois($date); + $annee = annee($date); ///// debut de la page -debut_page(nom_jour("$annee-$mois-$jour")." ".affdate("$annee-$mois-$jour"), "asuivre", "calendrier"); +debut_page(nom_jour("$annee-$mois-$jour")." ".affdate("$annee-$mois-$jour"), "redacteurs", "calendrier"); //////// parents -barre_onglets("calendrier", "jour"); +//barre_onglets("calendrier", "jour"); + if ($spip_ecran == "large") { + $largeur_table = 974; + } else { + $largeur_table = 750; + } -gros_titre(nom_jour("$annee-$mois-$jour")." ".affdate("$annee-$mois-$jour")); + echo "<div> </div>"; + echo "<table width='$largeur_table'>"; + echo "<TR><TD style='text-align:$spip_lang_left;'><A HREF='calendrier_jour.php3?jour=".($jour-1)."&mois=$mois&annee=$annee'><img src='img_pack/fleche-$spip_lang_left.png' alt='<<<' width='12' height='12' border='0'></A></TD>"; + echo "<TD style='text-align:center;'>"; + + echo "<div style='float: $spip_lang_left; width: 150px; align: left;'>"; + if ($jour != $jour_today OR $mois != $mois_today OR $annee != $annee_today) { + icone_horizontale(_T("info_aujourdhui")."<br>".affdate("$annee_today-$mois_today-$jour_today"), "calendrier_jour.php3", "calendrier-24.gif", "", "center"); + } + echo " </div>"; -echo "<p /><div align='center'>"; + + echo "<div style='float: $spip_lang_right; width: 120px;'>"; + echo "<img src='img_pack/cal-jour.gif' alt='jour' width='26' height='20' border='0' style='border: 1px solid black;'>"; + echo " "; + echo "<img src='img_pack/cal-semaine.gif' alt='semaine' width='26' height='20' border='0' style='filter: alpha(opacity=50);'>"; + echo " "; + echo "<a href='calendrier.php3?mois=$mois&annee=$annee'><img src='img_pack/cal-mois.gif' alt='mois' width='26' height='20' border='0' style='filter: alpha(opacity=50);'></a>"; + echo "</div>"; + + echo "<FONT FACE='arial,helvetica,sans-serif' SIZE=4><B>".nom_jour("$annee-$mois-$jour")." ".affdate("$annee-$mois-$jour")."</B></FONT>"; + + + echo "</TD>"; + echo "<TD style='text-align:$spip_lang_right;'><A HREF='calendrier_jour.php3?jour=".($jour+1)."&mois=$mois&annee=$annee'><img src='img_pack/fleche-$spip_lang_right.png' alt='>>>' width='12' height='12' border='0'></A></TD></TR>"; + + echo "</table>"; + + + + +echo "<div align='center'>"; echo "<font size='1'>"; echo " <a href='message_edit.php3?rv=$annee-$mois-$jour&new=oui&type=pb' style='color: blue;'><IMG SRC='img_pack/m_envoi_bleu$spip_lang_rtl.gif' WIDTH='14' HEIGHT='7' BORDER='0'> "._T("lien_nouvea_pense_bete")."</a>"; echo " <a href='message_edit.php3?rv=$annee-$mois-$jour&new=oui&type=normal' style='color: green;'><IMG SRC='img_pack/m_envoi$spip_lang_rtl.gif' WIDTH='14' HEIGHT='7' BORDER='0'> "._T("lien_nouveau_message")."</a>"; @@ -48,10 +86,6 @@ echo "</div>\n"; debut_gauche(); -if ($jour != $jour_today OR $mois != $mois_today OR $annee != $annee_today) { - icone(_T("info_aujourdhui")."<br>".affdate("$annee_today-$mois_today-$jour_today"), "calendrier_jour.php3", "calendrier-24.gif", "", "center"); - echo "<p />"; -} agenda ($mois, $annee, $jour, $mois, $annee); agenda ($mois+1, $annee, $jour, $mois, $annee); @@ -60,12 +94,15 @@ agenda ($mois+1, $annee, $jour, $mois, $annee); afficher_taches (); // afficher en reduction le tableau du jour suivant - creer_colonne_droite(); - calendrier_jour($jour+1,$mois,$annee, false); - + if ($spip_ecran == "large") { + creer_colonne_droite(); + calendrier_jour($jour+1,$mois,$annee, false); + } + debut_droite(); -calendrier_jour($jour,$mois,$annee, true); + echo "<div> </div>"; + calendrier_jour($jour,$mois,$annee, true); fin_page(); diff --git a/ecrire/img_pack/cal-jour.gif b/ecrire/img_pack/cal-jour.gif new file mode 100644 index 0000000000000000000000000000000000000000..e2a9b37aa629d9487062c1660af6cd53b8673806 GIT binary patch literal 282 zcmV+#0p<QjNk%w1VHyAw0K^;sP*70({{QCY=HlYw(9qD`-QC5-#naQ%hlhvP*VpCc z<;~5_$jHdb%F5v2;M&^SdU|?TSXlA&^!EM#=;-Lg#Ki3E?6b48p{1$J%*_A)|A2si z?(XgY0000000000A^8LW000~SEC2ui02%-k000G-ASRAvX_`SAWNhocS)gf>IHhp@ z&f4k!B#LlIEE<O*!Dh*9I-eVXNU^b8s#hy^tJNw*gUw8=A)CkO@<8N(x}gqHft#(< zw*}GTTu$@N4<ZR~PXLAhObH?fcU^S=5D@@c2O<Q2elq|F2moUQA`660hlooHA`Ojp gj#~{P448ehe+(i9qoW2Q6}`T{z`?#i#3msCJAU(qCIA2c literal 0 HcmV?d00001 diff --git a/ecrire/img_pack/cal-mois.gif b/ecrire/img_pack/cal-mois.gif new file mode 100644 index 0000000000000000000000000000000000000000..55cf14e6f7ef9096398457c10da656004b3794df GIT binary patch literal 271 zcmZ?wbhEHblwuHJI3mgL=ih%Ic>46|g9i^zoH%je!iCG1FCRU6^!oMdw{G2f_Uzf& zvuE$#y?g4^sYj0<ef#_W<CiZlUc5MR<VaOjRYXKYdwcuBr7O>zITH{N@b29^1`MG1 zlZBCiL6SiSBm=UOfwgCWYF|p`EC;TboY(ur1z0BhSW@us+`*Usmvj_(=t#9Iv8J8O zv6?T@>d`PWU{$zw+3KrYE_^;qmDKuAzxaGpQOe=|g~pD9XK%fZZqt}(_WO4RrxHg& zs}F|~TSaVnj|7_%YeQE36bV)(?zT2=CEo7dg%Z3<ER(0MkYG__pWVu?B(!PsmaW@1 LJM2_bWUvMR699aY literal 0 HcmV?d00001 diff --git a/ecrire/img_pack/cal-semaine.gif b/ecrire/img_pack/cal-semaine.gif new file mode 100644 index 0000000000000000000000000000000000000000..3d72304e702ab01df3ded252116c46bb3c88cc27 GIT binary patch literal 287 zcmV+)0pR{eNk%w1VHyAw0K^;shlht)SXli2|9X0Q;^N}S$jIQ};M3F7+S=OY=H}Pe z*Tu!f%F4>!-QCU2&E@6g(9qEK{r~aw^z7{Hv$M14=;*}6#86OBp{1#SfPl=*%>V!Y z?(XgY0000000000A^8LW000~SEC2ui02%-k000G?ASRAvX_`VRXl(1gny_t>7^QIj z&fDq#q>6AzEE<QRL}tlsI-i+@=#iOFs#hy^tJOY4gv?C5A)CkOGC^d3x}gS9gPX0> zw+#{ETu$@N2qFp>goTEOh!+YX2NweYj*yR$l#`POA`lk<0Gpkho}r+i5F!qVsEH0D l40m02uNe#?1%H0GWd$M&Z@o+lA{N5K#Kp$LK*=T{06Q)#j6DDV literal 0 HcmV?d00001 diff --git a/ecrire/inc_agenda.php3 b/ecrire/inc_agenda.php3 index 27e6f80f30..689a19af27 100644 --- a/ecrire/inc_agenda.php3 +++ b/ecrire/inc_agenda.php3 @@ -114,7 +114,9 @@ function calendrier_jour($jour,$mois,$annee,$large = true, $le_message = 0) { } if (!$large) echo "<div align='center' style='padding: 5px;'><b class='verdana1'><a href='calendrier_jour.php3?jour=$jour&mois=$mois&annee=$annee' style='color:black;'>".affdate("$annee-$mois-$jour")."</a></b></div>"; + else echo "<div align='center' style='padding: 5px;'><b class='verdana1'> </b></div>"; + echo "<div style='border-left: 1px solid #aaaaaa; border-right: 1px solid #aaaaaa; border-bottom: 1px solid #aaaaaa;'>"; // bordure echo "<div style='position: relative; width: 100%; height: 450px; background: url(img_pack/fond-calendrier.gif);'>"; diff --git a/ecrire/inc_presentation.php3 b/ecrire/inc_presentation.php3 index c380588e02..772b2d76cb 100644 --- a/ecrire/inc_presentation.php3 +++ b/ecrire/inc_presentation.php3 @@ -1421,13 +1421,11 @@ function debut_page($titre = "", $rubrique = "asuivre", $sous_rubrique = "asuivr if ($rubrique == "asuivre"){ icone_bandeau_secondaire (_T('icone_a_suivre'), "index.php3", "asuivre-24.gif", "asuivre", $sous_rubrique); - if ($options != 'avancees') icone_bandeau_secondaire (_T('icone_informations_personnelles'), "auteurs_edit.php3?id_auteur=$connect_id_auteur", "fiche-perso-24.gif", "perso", $sous_rubrique); + icone_bandeau_secondaire (_T('icone_informations_personnelles'), "auteurs_edit.php3?id_auteur=$connect_id_auteur", "fiche-perso-24.gif", "perso", $sous_rubrique); icone_bandeau_secondaire (_T('icone_site_entier'), "articles_tous.php3", "tout-site-24.gif", "tout-site", $sous_rubrique); if ((lire_meta('multi_rubriques') == 'oui' OR lire_meta('multi_articles') == 'oui') AND lire_meta('gerer_trad') == 'oui' AND $options == 'avancees') { icone_bandeau_secondaire (_T('icone_etat_traductions'), "plan_trad.php3", "langues-24.gif", "plan-trad", $sous_rubrique); } - if ($activer_messagerie == "oui" AND $connect_activer_messagerie != "non") - icone_bandeau_secondaire (_T('icone_agenda'), "calendrier_jour.php3", "agenda-24.gif", "calendrier", $sous_rubrique); } else if ($rubrique == "documents"){ icone_bandeau_secondaire (_T('icone_rubriques'), "naviguer.php3", "rubrique-24.gif", "rubriques", $sous_rubrique); @@ -1463,7 +1461,12 @@ function debut_page($titre = "", $rubrique = "asuivre", $sous_rubrique = "asuivr icone_bandeau_secondaire (_T('icone_forum_administrateur'), "forum_admin.php3", "forum-admin-24.gif", "forum-admin", $sous_rubrique); bandeau_barre_verticale(); icone_bandeau_secondaire (_T('icone_tous_auteur'), "auteurs.php3", "redacteurs-24.gif", "redacteurs", $sous_rubrique); - icone_bandeau_secondaire (_T('icone_messagerie_personnelle'), "messagerie.php3", "messagerie-24.gif", "messagerie", $sous_rubrique); + + if ($activer_messagerie == "oui" AND $connect_activer_messagerie != "non") { + bandeau_barre_verticale(); + icone_bandeau_secondaire (_T('icone_agenda'), "calendrier_jour.php3", "agenda-24.gif", "calendrier", $sous_rubrique); + icone_bandeau_secondaire (_T('icone_messagerie_personnelle'), "messagerie.php3", "messagerie-24.gif", "messagerie", $sous_rubrique); + } } else if ($rubrique == "suivi") { if ($connect_toutes_rubriques) { @@ -1532,9 +1535,10 @@ function debut_page($titre = "", $rubrique = "asuivre", $sous_rubrique = "asuivr } } if ($total_messages > 1) echo "<a href='messagerie.php3'><font color='$couleur_claire'>"._T('info_nouveaux_messages', array('total_messages' => $total_messages))."</font></a>"; - echo "</b></font>"; + echo "</b></font> "; } + if ($activer_messagerie == "oui" AND $connect_activer_messagerie != "non") echo "<a href='calendrier_jour.php3' title='"._T('icone_agenda')."'><img src='img_pack/cal-jour.gif' alt='jour' width='26' height='20' border='0' style='filter: alpha(opacity=50);'></a>"; echo "</td>"; echo "<td> </td>"; echo "<td>"; -- GitLab