diff --git a/ecrire/articles.php3 b/ecrire/articles.php3 index d23c4ca37d15e1d0003dfa96ef1e20646fa58139..8f0d44058dd7182335d4015a88ceb81743669730 100644 --- a/ecrire/articles.php3 +++ b/ecrire/articles.php3 @@ -1371,11 +1371,11 @@ if ($connect_statut == '0minirezo' AND acces_rubrique($rubrique_article)) { echo "<SELECT NAME='statut_nouv' SIZE='1' CLASS='fondl' onChange='change_bouton(this)'>"; - echo "<OPTION" . mySel("prepa", $statut_article) .">"._T('texte_statut_en_cours_redaction')."\n"; - echo "<OPTION" . mySel("prop", $statut_article) . ">"._T('texte_statut_propose_evaluation')."\n"; - echo "<OPTION" . mySel("publie", $statut_article) . ">"._T('texte_statut_publie')."\n"; - echo "<OPTION" . mySel("poubelle", $statut_article) . ">"._T('texte_statut_poubelle')."\n"; - echo "<OPTION" . mySel("refuse", $statut_article) . ">"._T('texte_statut_refuse')."\n"; + echo "<OPTION" . mySel("prepa", $statut_article) ." style='background-color: white'>"._T('texte_statut_en_cours_redaction')."\n"; + echo "<OPTION" . mySel("prop", $statut_article) . " style='background-color: #FFF1C6'>"._T('texte_statut_propose_evaluation')."\n"; + echo "<OPTION" . mySel("publie", $statut_article) . " style='background-color: #B4E8C5'>"._T('texte_statut_publie')."\n"; + echo "<OPTION" . mySel("poubelle", $statut_article) . " style='background:url(img_pack/rayures-sup.gif)'>"._T('texte_statut_poubelle')."\n"; + echo "<OPTION" . mySel("refuse", $statut_article) . " style='background-color: #FFA4A4'>"._T('texte_statut_refuse')."\n"; echo "</SELECT>"; diff --git a/ecrire/auteur_infos.php3 b/ecrire/auteur_infos.php3 index 13837691b85f7ece986c865e272840e4151e2a7b..6003ee02445627f600d88bbd0b1c7ce677c37c54 100644 --- a/ecrire/auteur_infos.php3 +++ b/ecrire/auteur_infos.php3 @@ -388,7 +388,7 @@ if ($connect_statut == "0minirezo" if (($statut == '6forum') OR (lire_meta('accepter_visiteurs') == 'oui') OR (lire_meta('forums_publics') == 'abo')) echo "<OPTION".mySel("6forum",$statut).">"._T('item_visiteur'); - echo "<OPTION".mySel("5poubelle",$statut).">> "._T('texte_statut_poubelle'); + echo "<OPTION".mySel("5poubelle",$statut)." style='background:url(img_pack/rayures-sup.gif)'>> "._T('texte_statut_poubelle'); echo "</SELECT></center>\n"; fin_cadre_relief(); diff --git a/ecrire/breves_edit.php3 b/ecrire/breves_edit.php3 index fe09c55ceb6ee87a251f40805d8ca7a4df6eb721..9d0879a6d210465621b4a002802edcb78a8d98ad 100644 --- a/ecrire/breves_edit.php3 +++ b/ecrire/breves_edit.php3 @@ -180,9 +180,9 @@ if ($connect_statut=="0minirezo" OR $statut=="prop" OR $new == "oui") { echo "<SELECT NAME='statut' SIZE=1 CLASS='fondl'>\n"; - echo "<OPTION".mySel("prop",$statut).">"._T('item_breve_proposee')."\n"; - echo "<OPTION".mySel("refuse",$statut).">"._T('item_breve_refusee')."\n"; - echo "<OPTION".mySel("publie",$statut).">"._T('item_breve_validee')."\n"; + echo "<OPTION".mySel("prop",$statut)." style='background-color: white'>"._T('item_breve_proposee')."\n"; + echo "<OPTION".mySel("refuse",$statut)." style='background:url(img_pack/rayures-sup.gif)'>"._T('item_breve_refusee')."\n"; + echo "<OPTION".mySel("publie",$statut)." style='background-color: #B4E8C5'>"._T('item_breve_validee')."\n"; echo "</SELECT>".aide ("brevesstatut")."<P>\n"; fin_cadre_relief(); diff --git a/ecrire/calendrier.php3 b/ecrire/calendrier.php3 index 970ee890a53ed507bbac383075bc716dfe3ef24e..e6e1b0130d8be9e88941b8e6dabc4a15c37a0e8f 100644 --- a/ecrire/calendrier.php3 +++ b/ecrire/calendrier.php3 @@ -8,6 +8,7 @@ function afficher_mois($jour_today,$mois_today,$annee_today,$nom_mois){ global $les_articles; global $les_breves; global $spip_lang_rtl; + global $spip_ecran; // calculer de nouveau la date du jour pour affichage en blanc $ce_jour=date("Y-m-d"); @@ -18,7 +19,15 @@ function afficher_mois($jour_today,$mois_today,$annee_today,$nom_mois){ if ($jour_semaine==0) $jour_semaine=7; - echo "<TABLE border=0 CELLSPACING=1 CELLPADDING=3 WIDTH=700>"; + if ($spip_ecran == "large") { + $largeur_table = 974; + } else { + $largeur_table = 700; + } + + $largeur_col = round($largeur_table/7); + + echo "<TABLE border=0 CELLSPACING=1 CELLPADDING=3 WIDTH='$largeur_table'>"; $mois_suiv=$mois_today+1; $annee_suiv=$annee_today; @@ -121,9 +130,9 @@ function afficher_mois($jour_today,$mois_today,$annee_today,$nom_mois){ if (checkdate($mois_today,$jour,$annee_today)){ if ("$annee_today-$mois_today-$jour"==$ce_jour){ - echo "<TD width=100 HEIGHT=80 BGCOLOR='#FFFFFF' VALIGN='top'><FONT FACE='arial,helvetica,sans-serif' SIZE=3 COLOR='red'><B>$jour</B></FONT>"; + echo "<TD width='$largeur_col' HEIGHT=80 BGCOLOR='#FFFFFF' VALIGN='top'><FONT FACE='arial,helvetica,sans-serif' SIZE=3 COLOR='red'><B>$jour</B></FONT>"; }else{ - echo "<TD width=100 HEIGHT=80 BGCOLOR='#E4E4E4' VALIGN='top'><FONT FACE='arial,helvetica,sans-serif' SIZE=3><B>$jour</B></FONT>"; + echo "<TD width='$largeur_col' HEIGHT=80 BGCOLOR='#E4E4E4' VALIGN='top'><FONT FACE='arial,helvetica,sans-serif' SIZE=3><B>$jour</B></FONT>"; } $activer_messagerie = lire_meta("activer_messagerie"); diff --git a/ecrire/inc_presentation.php3 b/ecrire/inc_presentation.php3 index 44886faba39a61d302092a8ddc79b008320cced8..bfbbf5241d6e6f1659b644f1305244565e11eb91 100644 --- a/ecrire/inc_presentation.php3 +++ b/ecrire/inc_presentation.php3 @@ -357,6 +357,11 @@ function afficher_articles($titre_table, $requete, $afficher_visites = false, $a $activer_messagerie = lire_meta("activer_messagerie"); $activer_statistiques = lire_meta("activer_statistiques"); $activer_statistiques_ref = lire_meta("activer_statistiques_ref"); + + if ((lire_meta('multi_rubriques') == 'oui' AND $GLOBALS['coll'] == 0) OR lire_meta('multi_articles') == 'oui') { + $afficher_langue = true; + $requete = ereg_replace(" FROM", ", lang FROM", $requete); + } $tranches = afficher_tranches_requete($requete, $afficher_auteurs ? 3 : 2); @@ -381,6 +386,7 @@ function afficher_articles($titre_table, $requete, $afficher_visites = false, $a $date = $row['date']; $statut = $row['statut']; $visites = $row['visites']; + $lang = $row['lang']; $popularite = ceil(min(100,100 * $row['popularite'] / max(1, 0 + lire_meta('popularite_max')))); $descriptif = $row['descriptif']; if ($descriptif) $descriptif = ' title="'.attribut_html(typo($descriptif)).'"'; @@ -438,6 +444,7 @@ function afficher_articles($titre_table, $requete, $afficher_visites = false, $a if (acces_restreint_rubrique($id_rubrique)) $s .= "<img src='img_pack/admin-12.gif' alt='' width='12' height='12' title='"._T('titre_image_admin_article')."'> "; $s .= "<a href=\"articles.php3?id_article=$id_article\"$descriptif>".typo($titre)."</a>"; + if ($afficher_langue) $s .= " <font size='1' color='#666666'>(".traduire_nom_langue($lang).")</font>"; if ($petition) $s .= " <Font size=1 color='red'>"._T('lien_petitions')."</font>"; $vals[] = $s; @@ -480,6 +487,12 @@ function afficher_articles($titre_table, $requete, $afficher_visites = false, $a function afficher_breves($titre_table, $requete, $affrub=false) { global $connect_id_auteur; + if ((lire_meta('multi_rubriques') == 'oui' AND $GLOBALS['coll'] == 0) OR lire_meta('multi_articles') == 'oui') { + $afficher_langue = true; + $requete = ereg_replace(" FROM", ", lang FROM", $requete); + } + + $tranches = afficher_tranches_requete($requete, 2); if (strlen($tranches)) { @@ -510,6 +523,7 @@ function afficher_breves($titre_table, $requete, $affrub=false) { $date_heure = $row['date_heure']; $titre = $row['titre']; $statut = $row['statut']; + $lang = $row['lang']; $id_rubrique = $row['id_rubrique']; switch ($statut) { case 'prop': @@ -531,6 +545,8 @@ function afficher_breves($titre_table, $requete, $affrub=false) { $s .= "<a href='breves_voir.php3?id_breve=$id_breve'>"; $s .= typo($titre); $s .= "</a>"; + if ($afficher_langue) $s .= " <font size='1' color='#666666'>(".traduire_nom_langue($lang).")</font>"; + $vals[] = $s; $s = "<div align=\"right\">"; diff --git a/ecrire/naviguer.php3 b/ecrire/naviguer.php3 index 1276e2570adbcc434f44dd926d40971603a48a0c..e8ccb614fce23049fea762ea80245c5026ef32ba 100644 --- a/ecrire/naviguer.php3 +++ b/ecrire/naviguer.php3 @@ -371,6 +371,7 @@ if (strlen($texte) > 1) { echo " </font></div>"; } + // // Langue de la rubrique //