diff --git a/ecrire/articles.php3 b/ecrire/articles.php3 index fdb62cde8b8eb7283d348d279afe91fbe6032fe0..c37f8790aa4bb0db7be8e1c55c10ea284b7829b6 100644 --- a/ecrire/articles.php3 +++ b/ecrire/articles.php3 @@ -734,7 +734,6 @@ function afficher_jour($jour){ debut_cadre_relief(); -echo "<CENTER>"; // // Titre, surtitre, sous-titre diff --git a/ecrire/forum_envoi.php3 b/ecrire/forum_envoi.php3 index 5b65b4553819c485ebf33985d174d5585d60d8b1..915cb48a0e68871914a3696804f4af48a6c4d2af 100644 --- a/ecrire/forum_envoi.php3 +++ b/ecrire/forum_envoi.php3 @@ -56,9 +56,7 @@ if ($id_parent) { if ($titre_parent) { - debut_cadre_relief("forum-interne-24.gif"); - echo "<table width=100% cellpadding=3 cellspacing=0><tr><td bgcolor='$couleur_foncee'><font face='Verdana,Arial,Sans,sans-serif' size=2 color='#FFFFFF'><b>".typo($titre_parent)."</b></font></td></tr>"; - echo "<tr><td bgcolor='#EEEEEE' class='serif2' style='padding:5px;'>"; + debut_cadre_forum("forum-interne-24.gif", false, "", typo($titre_parent)); echo "<span class='arial2'>$date_heure_parent</span>"; echo " ".typo($auteur_parent); @@ -73,8 +71,7 @@ if ($titre_parent) { echo "<p align='left'><font face='Verdana,Arial,Sans,sans-serif'><b><a href='$url_site_parent'>$nom_site_parent</a></b></font>"; } - echo "</td></tr></table>"; - fin_cadre_relief(); + fin_cadre_forum(); if ($modif_forum == "oui") { echo "<table width=100% cellpadding=0 cellspacing=0 border=0><tr>"; @@ -85,10 +82,9 @@ if ($titre_parent) { if ($modif_forum == "oui") { - debut_cadre_relief(); + debut_cadre_thread_forum("", false, "", typo($titre_message)); - echo "<b>".typo($titre_message)."</b>"; - echo "<p>".propre($texte); + echo propre($texte); if (strlen($nom_site)>0) { echo "<p><a href='$url_site'>$nom_site</a>"; @@ -97,7 +93,7 @@ if ($modif_forum == "oui") { echo "<form action='forum_envoi.php3' name='formulaire' method='post'>"; echo "<p><div align='right'><INPUT CLASS='fondo' TYPE='submit' NAME='valider_forum' VALUE='"._T('bouton_envoyer_message')."'></div>"; - fin_cadre_relief(); + fin_cadre_thread_forum(); if ($titre_parent) { echo "</td></tr><tr>"; echo "<td width=10 valign='top' background='img_pack/rien.gif'><img src='img_pack/forum-droite$spip_lang_rtl.gif' alt='' width=10 height=13 border=0></td>\n"; @@ -108,7 +104,7 @@ else { echo "<FORM ACTION='forum_envoi.php3' name='formulaire' METHOD='post'>"; } -echo "<p></p>"; + echo "<div> </div>"; debut_cadre_formulaire(); diff --git a/ecrire/inc_presentation.php3 b/ecrire/inc_presentation.php3 index 2d1268bfc4009378a35c5d39a1dd893f851f13df..0609c7b334df90f926a07d1d3b03dafeda1fe740 100644 --- a/ecrire/inc_presentation.php3 +++ b/ecrire/inc_presentation.php3 @@ -128,7 +128,7 @@ function debut_cadre($style, $icone = "", $fonction = "", $titre = "") { function fin_cadre($style="") { if ($style == "e") $ret = "</div>"; $ret .= "</div></div></div>\n"; - $ret .= "<div style='height: 5px;'></div>"; + //$ret .= "<div style='height: 5px;'></div>"; return $ret; } @@ -167,6 +167,34 @@ function fin_cadre_enfonce($return = false){ } +function debut_cadre_forum($icone='', $return = false, $fonction='', $titre = ''){ + $retour_aff = debut_cadre('forum', $icone, $fonction, $titre); + + if ($return) return $retour_aff; + else echo $retour_aff; +} + +function fin_cadre_forum($return = false){ + $retour_aff = fin_cadre('forum'); + + if ($return) return $retour_aff; + else echo $retour_aff; +} + +function debut_cadre_thread_forum($icone='', $return = false, $fonction='', $titre = ''){ + $retour_aff = debut_cadre('thread-forum', $icone, $fonction, $titre); + + if ($return) return $retour_aff; + else echo $retour_aff; +} + +function fin_cadre_thread_forum($return = false){ + $retour_aff = fin_cadre('thread-forum'); + + if ($return) return $retour_aff; + else echo $retour_aff; +} + function debut_cadre_gris_clair($icone='', $return = false, $fonction='', $titre = ''){ $retour_aff = debut_cadre('gris-clair', $icone, $fonction, $titre); @@ -1146,9 +1174,9 @@ function afficher_forum($request, $adresse_retour, $controle_id_article = 0) { echo "<table width=100% cellpadding=2 cellspacing=0 border=0><tr><td>"; } - if ($compteur_forum == 1) echo debut_cadre_relief("forum-interne-24.gif"); - echo "<table width=100% cellpadding=3 cellspacing=0><tr><td bgcolor='$couleur_foncee'><font face='Verdana,Arial,Sans,sans-serif' size=2 color='#FFFFFF'><b>".typo($titre)."</b></font></td></tr>"; - echo "<tr><td bgcolor='#EEEEEE' class='serif2'>"; + if ($compteur_forum == 1) echo debut_cadre_forum("forum-interne-24.gif", false, "", typo($titre)); + else echo debut_cadre_thread_forum("", false, "", typo($titre)); + echo "<span class='arial2'>$date_heure</span>"; if ($email_auteur) { @@ -1215,9 +1243,10 @@ function afficher_forum($request, $adresse_retour, $controle_id_article = 0) { } - echo "</td></tr></table>"; - if ($compteur_forum == 1) echo fin_cadre_relief(); - if ($statut == "off" OR $statut == "prop") { + if ($compteur_forum == 1) echo fin_cadre_forum(); + else echo fin_cadre_thread_forum(); + + if ($statut == "off" OR $statut == "prop") { echo "</td></tr></table>"; } echo "</td></tr></table>\n"; @@ -1232,7 +1261,6 @@ function afficher_forum($request, $adresse_retour, $controle_id_article = 0) { } function afficher_thread_forum($le_forum, $adresse_retour, $controle = 0) { - echo "<div class='serif2'>"; if ($controle) { $query_forum2 = "SELECT * FROM spip_forum WHERE id_parent='$le_forum' ORDER BY date_heure"; @@ -1243,7 +1271,6 @@ function afficher_thread_forum($le_forum, $adresse_retour, $controle = 0) { $result_forum2 = spip_query($query_forum2); afficher_forum($result_forum2, $adresse_retour, $controle); - echo "</div>"; } diff --git a/ecrire/spip_style.php3 b/ecrire/spip_style.php3 index f6efa74d430a97a18696c4745679d87e06ef157a..67de3fc3a8d94988e22ab2b9508f3d9281481145 100644 --- a/ecrire/spip_style.php3 +++ b/ecrire/spip_style.php3 @@ -868,6 +868,7 @@ a.bouton_rotation:hover img { background-color: white; border: 2px solid <? echo $couleur_foncee; ?>; -moz-border-radius: 8px; + margin-bottom: 5px; } .cadre-trait-couleur div.cadre-titre { background: <? echo $couleur_foncee; ?>; @@ -879,6 +880,7 @@ a.bouton_rotation:hover img { background-color: white; border: 1px solid #666666; -moz-border-radius: 8px; + margin-bottom: 5px; } @@ -895,6 +897,7 @@ a.bouton_rotation:hover img { border-bottom: 1px solid white; border-right: 1px solid white; -moz-border-radius: 8px; + margin-bottom: 5px; } .cadre-e div.cadre-titre { @@ -908,11 +911,35 @@ a.bouton_rotation:hover img { -moz-border-radius: 8px; } +.cadre-forum { + background-color: white; + border: 1px solid #aaaaaa; + -moz-border-radius-topleft: 8px; + -moz-border-radius-topright: 8px; +} +.cadre-forum div.cadre-titre { + background: #cccccc; + border-bottom: 1px solid #aaaaaa; + color: black; +} + + +.cadre-thread-forum { + background-color: #eeeeee; + border: 1px solid #aaaaaa; + border-top: 0px; +} +.cadre-thread-forum div.cadre-titre { + background: #dddddd; + color: black; +} + .cadre-info{ background-color: white; border: 2px solid <?php echo $couleur_foncee; ?>; padding: 5px; -moz-border-radius: 8px; + margin-bottom: 5px; } @@ -922,6 +949,7 @@ a.bouton_rotation:hover img { color: #444444; font-family: verdana, arial, helvetica, sans; font-size: 11px; + margin-bottom: 5px; }