Update of /home/spip-cvs/spip/ecrire
In directory alan:/tmp/cvs-serv22922
Modified Files:
articles_edit.php3 rubriques_edit.php3 spip_style.php3
Log Message:
Alleger (un peu) le menu deroulant "Dans la rubrique"
Index: spip_style.php3
RCS file: /home/spip-cvs/spip/ecrire/spip_style.php3,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -d -r1.89 -r1.90
--- spip_style.php3 8 Oct 2004 11:02:33 -0000 1.89
+++ spip_style.php3 8 Oct 2004 11:30:56 -0000 1.90
@@ -197,6 +197,13 @@
position: relative;
}
+option.selec_rub {
+ background-position: <?php echo $left; ?> center;
+ background-image: url(img_pack/rubrique-12.gif);
+ background-repeat: no-repeat;
+ padding-<?php echo $left; ?>: 16px;
+}
+
div.messages {
padding: 5px;
Index: rubriques_edit.php3
RCS file: /home/spip-cvs/spip/ecrire/rubriques_edit.php3,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- rubriques_edit.php3 23 Sep 2004 15:05:23 -0000 1.42
+++ rubriques_edit.php3 8 Oct 2004 11:30:56 -0000 1.43
@@ -4,10 +4,10 @@
function mySel($varaut,$variable){
- $retour= " VALUE=\"$varaut\"";
+ $retour= " value=\"$varaut\"";
if ($variable==$varaut){
- $retour.= " SELECTED";
+ $retour.= " selected";
}
return $retour;
@@ -37,7 +37,7 @@
if ($my_rubrique != $id_rubrique){
if (eregi("mozilla", $browser_name)) {
- $style .= "padding-$spip_lang_left: 16px; ";
+ //$style .= "padding-$spip_lang_left: 16px; ";
$style .= "margin-$spip_lang_left: ".($i*16)."px;";
} else {
for ($count = 0; $count <= $i; $count ++) $espace .= " ";
@@ -47,17 +47,17 @@
if ($i > 4) $style .= "font-style: italic;";
if ($i < 3) $style .= "font-weight:bold; ";
if ($i==1) {
- $style .= "background: url(img_pack/secteur-12.gif) $spip_lang_left no-repeat;";
+ $style .= "background-image: url(img_pack/secteur-12.gif);";
$style .= "background-color: $couleur_claire;";
$style .= "font-weight: bold;";
}
else if ($i==2) {
- $style .= "background: url(img_pack/rubrique-12.gif) $spip_lang_left no-repeat;";
+ // $style .= "background: url(img_pack/rubrique-12.gif) $spip_lang_left no-repeat;";
$style .= "border-bottom: 1px solid $couleur_claire;";
$style .= "font-weight: bold;";
}
else {
- $style .= "background: url(img_pack/rubrique-12.gif) $spip_lang_left no-repeat;";
+ // $style .= "background: url(img_pack/rubrique-12.gif) $spip_lang_left no-repeat;";
}
if ($statut_rubrique!='publie') $titre = "($titre)";
@@ -65,7 +65,7 @@
if (acces_rubrique($my_rubrique)) {
- echo "<OPTION".mySel($my_rubrique,$id_parent)." style=\"$style\">$espace".supprimer_tags($titre)."\n";
+ echo "<option".mySel($my_rubrique,$id_parent)." class='selec_rub' style=\"$style\">$espace".supprimer_tags($titre)."\n";
}
enfant($my_rubrique);
}
Index: articles_edit.php3
RCS file: /home/spip-cvs/spip/ecrire/articles_edit.php3,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -d -r1.95 -r1.96
--- articles_edit.php3 3 Oct 2004 15:15:23 -0000 1.95
+++ articles_edit.php3 8 Oct 2004 11:30:56 -0000 1.96
@@ -222,9 +222,9 @@
function my_sel($num,$tex,$comp){
if ($num==$comp){
- echo "<OPTION VALUE='$num' SELECTED>$tex\n";
+ echo "<option value='$num' selected>$tex\n";
}else{
- echo "<OPTION VALUE='$num'>$tex\n";
+ echo "<option value='$num'>$tex\n";
}
}
@@ -312,24 +312,24 @@
break;
}
if ($i==1) {
- $style .= "background: url(img_pack/secteur-12.gif) $spip_lang_left no-repeat;";
+ $style .= "background-image: url(img_pack/secteur-12.gif);";
$style .= "background-color: $couleur_claire;";
$style .= "font-weight: bold;";
}
else if ($i==2) {
- $style .= "background: url(img_pack/rubrique-12.gif) $spip_lang_left no-repeat;";
+ //$style .= "background: url(img_pack/rubrique-12.gif) $spip_lang_left no-repeat;";
$style .= "border-bottom: 1px solid $couleur_claire;";
$style .= "font-weight: bold;";
}
else {
- $style .= "background: url(img_pack/rubrique-12.gif) $spip_lang_left no-repeat;";
+ //$style .= "background: url(img_pack/rubrique-12.gif) $spip_lang_left no-repeat;";
}
if ($rubrique_acceptable) {
- if ($i == 1 && !$premier) echo "<OPTION VALUE='$my_rubrique'>\n"; // sert a separer les secteurs
+ if ($i == 1 && !$premier) echo "<option value='$my_rubrique'>\n"; // sert a separer les secteurs
$titre = couper($titre." ", 50); // largeur maxi
if (lire_meta('multi_rubriques') == 'oui' AND ($langue_choisie_rub == "oui" OR $leparent == 0)) $titre = $titre." [".traduire_nom_langue($lang_rub)."]";
- echo "<option".mySel($my_rubrique,$id_rubrique)." style=\"$style\">$espace".supprimer_tags($titre)."</option>\n";
+ echo "<option".mySel($my_rubrique,$id_rubrique)." class='selec_rub' style=\"$style\">$espace".supprimer_tags($titre)."</option>\n";
}
$premier = 0;
enfant($my_rubrique);