diff --git a/.gitattributes b/.gitattributes index a82cbfaf7507fb45ed88097c95835a6c20ef8797..6aee3169501ad61a207a34f0a710c60e6a1cf84b 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 a07df10e28126bdc8b74cd83b57ebc2e7d19bff7..ceb94573b67cdff7f90ced41b718954a79812351 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 0070a3632b728eccd1fe16fcc6209dd709e450e2..6658c6b784240c2115367dd8df2a7db4adb1f46b 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 Binary files /dev/null and b/ecrire/img_pack/cal-jour.gif differ diff --git a/ecrire/img_pack/cal-mois.gif b/ecrire/img_pack/cal-mois.gif new file mode 100644 index 0000000000000000000000000000000000000000..55cf14e6f7ef9096398457c10da656004b3794df Binary files /dev/null and b/ecrire/img_pack/cal-mois.gif differ diff --git a/ecrire/img_pack/cal-semaine.gif b/ecrire/img_pack/cal-semaine.gif new file mode 100644 index 0000000000000000000000000000000000000000..3d72304e702ab01df3ded252116c46bb3c88cc27 Binary files /dev/null and b/ecrire/img_pack/cal-semaine.gif differ diff --git a/ecrire/inc_agenda.php3 b/ecrire/inc_agenda.php3 index 27e6f80f30eeb7db40fa8c3f3fe171bafffded9d..689a19af2745c5c55bdc2f09b50f8edba017f1e9 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 c380588e02382e420bd290ddf61a0371d781dcfd..772b2d76cbbc083aff6bdf8aaf3c2bcfd0d48604 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>";