diff --git a/dist/habillage.css b/dist/habillage.css index fee588fd9f99b81bed53fdfa8af87d93d39eb014..a3b111c0135495947db06e6a6f0a3e7c32bdb131 100755 --- a/dist/habillage.css +++ b/dist/habillage.css @@ -152,7 +152,7 @@ ul.choix_mots label { display: inline; } .formulaire_recherche .forml {} /* Menu langues */ -#menu_langues { background: none; margin: 0; padding: 1em 0; vertical-align: top; } +.menu_langues { background: none; margin: 0; padding: 1em 0; vertical-align: top; } .formulaire_menu_lang { background: none; margin: 0; padding: 1em 0; } diff --git a/dist/prive/article_infos.html b/dist/prive/article_infos.html index 36ad403c24651a79623a07050da37912e7edecf1..670ee4db2fc14f438ac7907be79f2f3d9eb5ac12 100644 --- a/dist/prive/article_infos.html +++ b/dist/prive/article_infos.html @@ -43,7 +43,7 @@ |?{[(#AUTORISER{voirrevisions,article,#ID_ARTICLE})]} |?{ [(#VAL{info_historique_lien}|_T - |icone_horizontale{?exec=articles_versions&id_article=#ID_ARTICLE, + |icone_horizontale{?exec=articles_versions&id_article=#ID_ARTICLE, historique-24.gif,rien.gif,0} )] })] diff --git a/dist/style_prive.html b/dist/style_prive.html index d31a07f75892110aa1cf618f84d9e4d24b3f7376..51cf85bbac5ae626108f5ca5aab723cd2a6690e5 100644 --- a/dist/style_prive.html +++ b/dist/style_prive.html @@ -566,7 +566,7 @@ div.navigation-calendrier { background-color: #GET{foncee}; } .option_separateur_statut_auteur { background: #GET{claire}; } /* menu langues */ -#menu_langues.lang_ecrire { max-height: 24px; border: 1px solid #FFF; color: white; width: 100px; background: #GET{foncee}; } +.lang_ecrire { max-height: 24px; border: 1px solid #FFF; color: white; width: 100px; background: #GET{foncee}; } /* selecteur ajax */ #choix_parent_principal { background: #FFF; border: 1px solid #GET{foncee}; position: relative; height: 170px; overflow: auto; } diff --git a/ecrire/inc/editer_mot.php b/ecrire/inc/editer_mot.php index 22ba3e5fefb64c7978b13d9b4542574b67ac84a0..77b56d13527b7b448d01b76c84fb80025012e298 100644 --- a/ecrire/inc/editer_mot.php +++ b/ecrire/inc/editer_mot.php @@ -253,7 +253,7 @@ function formulaire_mot_remplace($id_groupe, $id_mot, $url_base, $table, $table_ // forcer le recalcul du noeud car on est en Ajax $jscript1 = "findObj_forcer('$ancre').style.visibility='visible';"; - $corps = "\n<select name='nouv_mot' id='nouv_mot' onchange=\"$jscript1\"" + $corps = "\n<select name='nouv_mot' id='nouv_mot$id_groupe' onchange=\"$jscript1\"" . " class='fondl spip_xx-small' style='width:90px;'>" . $s . "</select>\n " ; @@ -360,11 +360,11 @@ function menu_mots($row, $id_groupes_vus, $les_mots) $jscript = "onfocus=\"$jscript1 $jscript2\""; if ($obligatoire) - $res .= "<input type='text' name='cherche_mot' id='cherche_mot' class='fondl' style='width: 180px; background-color:#E86519;' value=\"$titre_groupe\" size='20' $jscript />"; + $res .= "<input type='text' name='cherche_mot' id='cherche_mot$id_groupe' class='fondl' style='width: 180px; background-color:#E86519;' value=\"$titre_groupe\" size='20' $jscript />"; else if ($unseul) - $res .= "<input type='text' name='cherche_mot' id='cherche_mot' class='fondl' style='width: 180px; background-color:#cccccc;' value=\"$titre_groupe\" size='20' $jscript />"; + $res .= "<input type='text' name='cherche_mot' id='cherche_mot$id_groupe' class='fondl' style='width: 180px; background-color:#cccccc;' value=\"$titre_groupe\" size='20' $jscript />"; else - $res .= "<input type='text' name='cherche_mot' id='cherche_mot' class='fondl' style='width: 180px; ' value=\"$titre_groupe\" size='20' $jscript />"; + $res .= "<input type='text' name='cherche_mot' id='cherche_mot$id_groupe' class='fondl' style='width: 180px; ' value=\"$titre_groupe\" size='20' $jscript />"; $res .= "<input type='hidden' name='select_groupe' value='$id_groupe' /> "; return array($res, _T('bouton_chercher')); @@ -373,11 +373,11 @@ function menu_mots($row, $id_groupes_vus, $les_mots) $jscript = "onchange=\"$jscript1\""; if ($obligatoire) - $res .= "<select name='nouv_mot' id='nouv_mot' size='1' style='width: 180px; background-color:#E86519;' class='fondl' $jscript>"; + $res .= "<select name='nouv_mot' id='nouv_mot$id_groupe' size='1' style='width: 180px; background-color:#E86519;' class='fondl' $jscript>"; else if ($unseul) - $res .= "<select name='nouv_mot' id='nouv_mot' size='1' style='width: 180px; background-color:#cccccc;' class='fondl' $jscript>"; + $res .= "<select name='nouv_mot' id='nouv_mot$id_groupe' size='1' style='width: 180px; background-color:#cccccc;' class='fondl' $jscript>"; else - $res .= "<select name='nouv_mot' id='nouv_mot' size='1' style='width: 180px; ' class='fondl' $jscript>"; + $res .= "<select name='nouv_mot' id='nouv_mot$id_groupe' size='1' style='width: 180px; ' class='fondl' $jscript>"; $res .= "\n<option value='x' style='font-variant: small-caps;'>$titre</option>"; diff --git a/ecrire/inc/lang.php b/ecrire/inc/lang.php index 3af1eed6412ede295f600468dfbe254e9b60078e..e43bc2d4e7bfd9911fdc5b82c1a7fa769636c504 100644 --- a/ecrire/inc/lang.php +++ b/ecrire/inc/lang.php @@ -130,9 +130,10 @@ function menu_langues($nom_select) { // http://doc.spip.org/@select_langues function select_langues($nom_select, $change, $options) { - return "<select name='$nom_select' id='menu_langues' " + static $cpt = 0; + return "<select name='$nom_select' id='menu_langues" . $cpt++ . "' " . ((!test_espace_prive()) ? - ("class='forml'") : + ("class='forml menu_langues'") : (($nom_select == 'var_lang_ecrire') ? ("class='lang_ecrire'") : "class='fondl'")) diff --git a/ecrire/inc/presentation.php b/ecrire/inc/presentation.php index 2c16c6f8de9e8808f03f4f005db73dfa3734ffdc..28b7550e984d4dc97ee99619b7dd4c191d643838 100644 --- a/ecrire/inc/presentation.php +++ b/ecrire/inc/presentation.php @@ -1049,7 +1049,7 @@ function icone_horizontale($texte, $lien, $fond = "", $fonction = "", $af = true if ($fonction == "supprimer.gif") $retour = "\n<div class='danger'>$retour</div>"; } else { - $retour = "\n<li><a$lien>$texte</a></li>"; + $retour = "\n<a$lien>$texte</a>"; } if ($af) echo_log('icone_horizontale',$retour); else return $retour; @@ -1127,7 +1127,7 @@ function formulaire_recherche($page, $complement=""){ } else $onfocus = ''; $form = '<input type="text" size="10" value="'.$recherche_aff.'" name="recherche" class="recherche" accesskey="r"' . $onfocus . ' />'; - $form .= "<input type='image' width='26' height='20' src='"._DIR_IMG_PACK."loupe.png' name='submit' class='submit' alt='"._T('info_rechercher')."' />"; + $form .= "<input type='image' src='"._DIR_IMG_PACK."loupe.png' name='submit' class='submit' alt='"._T('info_rechercher')."' />"; return "<div class='spip_recherche'>".generer_form_ecrire($page, $form . $complement, " method='get'")."</div>"; }