Skip to content
Extraits de code Groupes Projets
Valider bcfbb798 rédigé par Antoine Pitrou's avatar Antoine Pitrou
Parcourir les fichiers

simplification menu langues

parent 895f0bbd
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -391,26 +391,15 @@ function menu_langues($nom_select = 'var_lang', $default = '', $texte = '', $her ...@@ -391,26 +391,15 @@ function menu_langues($nom_select = 'var_lang', $default = '', $texte = '', $her
while (list(, $l) = each ($langues)) { while (list(, $l) = each ($langues)) {
if ($l == $default) { if ($l == $default) {
$selected = ' selected'; $selected = ' selected';
$style = "background-color: $couleur_foncee; color: white; font-style: bold;"; }
} else { else {
$selected = ''; $selected = '';
$style = "background-color: $couleur_claire;";
} }
//$selected = ($l == $default) ? ' selected' : '';
if ($l == $herit) { if ($l == $herit) {
//$selected = ($herit == $default) ? ' selected' : ''; $ret .= "<option style='font-weight: bold;' value='herit'$selected>"
if ($herit == $default) {
$selected = 'selected';
$style = "background-color: $couleur_foncee; color: white; font-style: bold;";
} else {
$selected = '';
$style = "background-color: white;";
}
$ret .= "<option style='$style' value='herit'$selected>"
.traduire_nom_langue($herit)." ("._T('info_multi_herit').")</option>\n"; .traduire_nom_langue($herit)." ("._T('info_multi_herit').")</option>\n";
if ($selected) $default = '';
} }
else $ret .= "<option style='$style' value='$l'$selected>".traduire_nom_langue($l)."</option>\n"; else $ret .= "<option value='$l'$selected>".traduire_nom_langue($l)."</option>\n";
} }
$ret .= "</select>\n"; $ret .= "</select>\n";
if ($nom_select == 'var_lang') $ret .= "<noscript><INPUT TYPE='submit' NAME='Valider' VALUE='>>' class='verdana1' style='background-color: $couleur_foncee; color: white; height: 19px;'></noscript>"; if ($nom_select == 'var_lang') $ret .= "<noscript><INPUT TYPE='submit' NAME='Valider' VALUE='>>' class='verdana1' style='background-color: $couleur_foncee; color: white; height: 19px;'></noscript>";
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter