diff --git a/dist/style_prive.html b/dist/style_prive.html index f7b135e3947a8c503f0ba0f8b5345c9629861824..f50c1d4afef47c11e134b0cc8aae78010818e73a 100644 --- a/dist/style_prive.html +++ b/dist/style_prive.html @@ -336,12 +336,20 @@ div.pos_r { position: relative; } +/* selecteur de rubriques */ option.selec_rub { - background-position: #GET{left} center; + background-position: [(#GET{left})] center; background-image: url(#EVAL{_DIR_IMG_PACK}wrapper.php?file=rubrique-12.gif); background-repeat: no-repeat; padding-#GET{left}: 16px; } +option.niveau_1 { font-weight: bold; background:#GET{claire}; +background-image: url(#EVAL{_DIR_IMG_PACK}wrapper.php?file=secteur-12.gif) no-repeat;} +option.niveau_2 { color: #202020;border-bottom:1px solid #GET{claire};} +option.niveau_3 { color: #404040;} +option.niveau_4 { color: #606060;} +option.niveau_5 { color: #808080;} +option.niveau_6 { color: #A0A0A0;} div.messages { @@ -1804,4 +1812,4 @@ td.message, a.message { .calendrier-cadreagenda { background:#GET{claire};} /* lang_raccourcis */ -#raccourcis .titrem {background:#GET{claire};} \ No newline at end of file +#raccourcis .titrem {background:#GET{claire};} diff --git a/ecrire/inc/chercher_rubrique.php b/ecrire/inc/chercher_rubrique.php index d11c8a5af97bd0def9b06746f85c62846d8d606c..9f4784ca0d9408a10fa802940cd85c5968f5f3d4 100644 --- a/ecrire/inc/chercher_rubrique.php +++ b/ecrire/inc/chercher_rubrique.php @@ -54,39 +54,9 @@ function style_menu_rubriques($i) { for ($count = 0; $count <= $i; $count ++) $espace .= " "; } - switch ($i) { - case 1: - $espace= ""; - $style .= "font-weight: bold;"; - break; - case 2: - $style .= "color: #202020;"; - break; - case 3: - $style .= "color: #404040;"; - break; - case 4: - $style .= "color: #606060;"; - break; - case 5: - $style .= "color: #808080;"; - break; - default: - $style .= "color: #A0A0A0;"; - break; - } - - if ($i==1) { - $style .= "background-image: url(" . _DIR_IMG_PACK. "secteur-12.gif);"; - $style .= "font-weight: bold;"; - $class = "toile_claire"; - } - else if ($i==2) { - $style .= "font-weight: bold;"; - $style .= "bordure_claire_basse"; - } else $class = ''; - - + if ($i ==1) + $espace= ""; + $class = "niveau_$i"; return array($class,$style,$espace); }