From 071db4eaaddb7173cb4ffa69b4fa55f970e44462 Mon Sep 17 00:00:00 2001
From: ARNO* <arno@rezo.net>
Date: Mon, 14 Jun 2004 01:15:15 +0000
Subject: [PATCH] Remise en place des decalages dans menu deroulant "Dans la
 rubrique:"

---
 ecrire/articles_edit.php3          |  12 +++++++++---
 ecrire/img_pack/tourner-180.gif    | Bin 114 -> 104 bytes
 ecrire/img_pack/tourner-droite.gif | Bin 109 -> 99 bytes
 ecrire/img_pack/tourner-gauche.gif | Bin 109 -> 97 bytes
 ecrire/inc_documents.php3          |   8 ++++----
 ecrire/rubriques_edit.php3         |  14 +++++++++++---
 ecrire/sites_edit.php3             |  10 ++++++++--
 7 files changed, 32 insertions(+), 12 deletions(-)

diff --git a/ecrire/articles_edit.php3 b/ecrire/articles_edit.php3
index ee3ea80aad..5ee49e077d 100644
--- a/ecrire/articles_edit.php3
+++ b/ecrire/articles_edit.php3
@@ -266,6 +266,7 @@ function enfant($leparent){
 	global $connect_toutes_rubriques;
 	global $connect_id_rubriques;
 	global $couleur_claire, $spip_lang_left;
+	global $browser_name;
 
 
 	$i++;
@@ -279,6 +280,7 @@ function enfant($leparent){
 		$lang_rub = $row['lang'];
 		$langue_choisie_rub = $row['langue_choisie'];
 		$style = "";
+		$espace = "";
 
 		// si l'article est publie il faut etre admin pour avoir le menu
 		// sinon le menu est present en entier (proposer un article)
@@ -288,9 +290,13 @@ function enfant($leparent){
 			$rubrique_acceptable = false;
 		}
 
-		$style .= "padding-left: 16px; ";
-		$style .= "margin-left: ".(($i-1)*16)."px;";
 
+		if (eregi("mozilla", $browser_name)) {
+			$style .= "padding-left: 16px; ";
+			$style .= "margin-left: ".(($i-1)*16)."px;";
+		} else {
+			for ($count = 0; $count <= $i; $count ++) $espace .= "&nbsp;&nbsp;&nbsp;&nbsp;";
+		}
 		switch ($i) {
 		case 1:
 			$espace= "";
@@ -324,7 +330,7 @@ function enfant($leparent){
 			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)."\n";
+			echo "<option".mySel($my_rubrique,$id_rubrique)." style=\"$style\">$espace".supprimer_tags($titre)."</option>\n";
 		}
 		$premier = 0;
 		enfant($my_rubrique);
diff --git a/ecrire/img_pack/tourner-180.gif b/ecrire/img_pack/tourner-180.gif
index 0265d0a67330297d5127f66e9328af8e856522be..392a87496a1794edb282a28e30c2c4783eacb4e8 100644
GIT binary patch
literal 104
zcmZ?wbhEHb<YM4rSj5h-Wy_WqFJ2TB6il2r@zkkP*4EZ{?%a9(`nBRu7DfgJb_N{=
zAONXlVAicrK9l@>iYGV6CLV@oX9E->Zn&_tg-0EUFqp)!<O&1ZU2ek(hINezEd~cv
H7#OSp984w9

literal 114
zcmZ?wbhEHb<YC}pSj5h7>C&Z1lP0}<`I48HH#s?Z*|KH(_U(K9`nBRu7DfgJb_N{=
zAONXlU^cH1zas0j((yIJr;s4uWdRPALZKW-fA9uaNjNRp$a^)xI9YJh%f7t_I}e{S
SFlb<8T;AatAmGZxU=09pZYiw*

diff --git a/ecrire/img_pack/tourner-droite.gif b/ecrire/img_pack/tourner-droite.gif
index 0a893cb627ea13d8fd5be179e034f926dc616eae..abcc6c238a702cd8e82d60c7dad473a6be3e4613 100644
GIT binary patch
literal 99
zcmZ?wbhEHb<YM4rSj5io;>C;Q%a^;myWhBR!@|O%prGK;p+m1<zgGOo!pOkD&Y;5p
z1R%8x%o-eA!EDcYoSOw6#wvAuZ!8y`&uru(=<t9s;Nn46L6Pkrd!K%E{oKyNU=0A^
CA0vMN

literal 109
zcmZ?wbhEHb<YC}pSj5h7>(;H8FJES5Wx2Y#va_>Km@wh+;lr<AzgGOo!pOkD&Y;5p
z1R%8x%tjTf)Y!BeIC&KHWDKkJA9>KA64|h*!S4D3#>7MoT>+L)MOTimeXn?;Ura`b
M{gC4M84L{802#L?7ytkO

diff --git a/ecrire/img_pack/tourner-gauche.gif b/ecrire/img_pack/tourner-gauche.gif
index bf0c6df353b178165cdf51d72cea950fea4f308c..24295e3c3ad2e3bfaddeb080d3747736702f1fa6 100644
GIT binary patch
literal 97
zcmZ?wbhEHb<YM4rSj5io{Q2{fCr|F!v19u5>A}IlrlzKijg7BgzgGOo!pOkD&Y;5p
z1R%8x%xV?vMjsMd13NgTPd)qHR7O$ku#$kAK*LfMn>CAE9CXfqi=Axlr^a9n0KB>)
A761SM

literal 109
zcmZ?wbhEHb<YC}pSj5iY?d^T-+O_A;pKsZ+Wy+K(hYlU$;NW=u`nBRu7DfgJb_N{=
zAONXlU^c3da{lGTlHjnzF~h<4X^cZfN~XY}3$=5LJEj(h%&Ycz5#v0|X}-XT^I|e=
N^2Zjxo5H|g4FIQ5DBu79

diff --git a/ecrire/inc_documents.php3 b/ecrire/inc_documents.php3
index ceb7b692fb..1d1c31322e 100644
--- a/ecrire/inc_documents.php3
+++ b/ecrire/inc_documents.php3
@@ -376,9 +376,9 @@ function texte_upload_manuel($dir, $inclus = '') {
 
 
 function texte_vignette_document($largeur_vignette, $hauteur_vignette, $fichier_vignette, $fichier_document) {
-	if ($largeur_vignette > 110) {
-		$rapport = 110.0 / $largeur_vignette;
-		$largeur_vignette = 110;
+	if ($largeur_vignette > 120) {
+		$rapport = 120.0 / $largeur_vignette;
+		$largeur_vignette = 120;
 		$hauteur_vignette = ceil($hauteur_vignette * $rapport);
 	}
 	if ($hauteur_vignette > 110) {
@@ -489,7 +489,7 @@ function afficher_documents_non_inclus($id_article, $type = "article", $flag_mod
 		echo "<a name='portfolio'></a>";
 		echo "<div>&nbsp;</div>";
 		echo "<div style='background-color: $couleur_claire; padding: 4px; color: black; -moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px;' class='verdana2'><b>PORTFOLIO</b></div>";
-		echo "<table width='100%' cellspacing='0' cellpadding='5'>";
+		echo "<table width='100%' cellspacing='0' cellpadding='3'>";
 		reset($images_liees);
 		while (list(, $id_document) = each($images_liees)) {
 			
diff --git a/ecrire/rubriques_edit.php3 b/ecrire/rubriques_edit.php3
index 4590d52db5..282a1e6e05 100644
--- a/ecrire/rubriques_edit.php3
+++ b/ecrire/rubriques_edit.php3
@@ -19,6 +19,7 @@ function enfant($leparent){
 	global $connect_toutes_rubriques;
 	global $i;
 	global $couleur_claire, $spip_lang_left;
+	global $browser_name;
 
 	$i++;
  	$query="SELECT * FROM spip_rubriques WHERE id_parent='$leparent' ORDER BY titre";
@@ -30,11 +31,18 @@ function enfant($leparent){
 		$statut_rubrique = $row['statut'];
 		$lang_rub = $row['lang'];
 		$langue_choisie_rub = $row['langue_choisie'];
+		$style = "";
+		$espace = "";
 
 		if ($my_rubrique != $id_rubrique){
 
-			$style .= "padding-left: 16px; ";
-			$style .= "margin-left: ".($i*16)."px;";
+			if (eregi("mozilla", $browser_name)) {
+				$style .= "padding-$spip_lang_left: 16px; ";
+				$style .= "margin-$spip_lang_left: ".($i*16)."px;";
+			} else {
+				for ($count = 0; $count <= $i; $count ++) $espace .= "&nbsp;&nbsp;&nbsp;&nbsp;";
+			}
+
 			if ($i > 3) $style .= "color: #666666;";
 			if ($i > 4) $style .= "font-style: italic;";
 			if ($i < 3) $style .= "font-weight:bold; ";
@@ -51,7 +59,7 @@ function enfant($leparent){
 
 
 			if (acces_rubrique($my_rubrique)) {
-				echo "<OPTION".mySel($my_rubrique,$id_parent)." style=\"$style\">".supprimer_tags($titre)."\n";
+				echo "<OPTION".mySel($my_rubrique,$id_parent)." style=\"$style\">$espace".supprimer_tags($titre)."\n";
 			}
 			enfant($my_rubrique);
 		}
diff --git a/ecrire/sites_edit.php3 b/ecrire/sites_edit.php3
index 73ba2c2319..44b17a5ae2 100644
--- a/ecrire/sites_edit.php3
+++ b/ecrire/sites_edit.php3
@@ -35,6 +35,7 @@ function enfant($leparent){
 	global $connect_toutes_rubriques;
 	global $connect_id_rubriques;
 	global $couleur_claire, $spip_lang_left;
+	global $browser_name;
 
 
 	$i++;
@@ -48,6 +49,7 @@ function enfant($leparent){
 		$lang_rub = $row['lang'];
 		$langue_choisie_rub = $row['langue_choisie'];
 		$style = "";
+		$espace = "";
 
 		// si l'article est publie il faut etre admin pour avoir le menu
 		// sinon le menu est present en entier (proposer un article)
@@ -57,8 +59,12 @@ function enfant($leparent){
 			$rubrique_acceptable = false;
 		}
 
-		$style .= "padding-left: 16px; ";
-		$style .= "margin-left: ".(($i-1)*16)."px;";
+		if (eregi("mozilla", $browser_name)) {
+			$style .= "padding-left: 16px; ";
+			$style .= "margin-left: ".(($i-1)*16)."px;";
+		} else {
+			for ($count = 0; $count <= $i; $count ++) $espace .= "&nbsp;&nbsp;&nbsp;&nbsp;";
+		}
 
 		switch ($i) {
 		case 1:
-- 
GitLab