Skip to content
Extraits de code Groupes Projets
Valider d6c61d64 rédigé par esj's avatar esj
Parcourir les fichiers

abstraction du répertoire img_pack

parent 3cca4316
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -1455,19 +1455,19 @@ if ((lire_meta('multi_articles') == 'oui') ...@@ -1455,19 +1455,19 @@ if ((lire_meta('multi_articles') == 'oui')
<!-- <!--
function puce_statut(selection){ function puce_statut(selection){
if (selection=="publie"){ if (selection=="publie"){
return "img_pack/puce-verte.gif"; return "puce-verte.gif";
} }
if (selection=="prepa"){ if (selection=="prepa"){
return "img_pack/puce-blanche.gif"; return "puce-blanche.gif";
} }
if (selection=="prop"){ if (selection=="prop"){
return "img_pack/puce-orange.gif"; return "puce-orange.gif";
} }
if (selection=="refuse"){ if (selection=="refuse"){
return "img_pack/puce-rouge.gif"; return "puce-rouge.gif";
} }
if (selection=="poubelle"){ if (selection=="poubelle"){
return "img_pack/puce-poubelle.gif"; return "puce-poubelle.gif";
} }
} }
// --> // -->
...@@ -1484,7 +1484,7 @@ if ($connect_statut == '0minirezo' AND acces_rubrique($rubrique_article)) { ...@@ -1484,7 +1484,7 @@ if ($connect_statut == '0minirezo' AND acces_rubrique($rubrique_article)) {
echo "<B>"._T('texte_article_statut')."</B> "; echo "<B>"._T('texte_article_statut')."</B> ";
// $statut_url_javascript="\"articles.php3?id_article=$id_article&methode=image&alea=\"+Math.random()+\"&statut_nouv=\"+options[selectedIndex].value"; // $statut_url_javascript="\"articles.php3?id_article=$id_article&methode=image&alea=\"+Math.random()+\"&statut_nouv=\"+options[selectedIndex].value";
$statut_url_javascript="puce_statut(options[selectedIndex].value);"; $statut_url_javascript="'" . _DIR_IMG_PACK . "' + puce_statut(options[selectedIndex].value);";
echo "<SELECT NAME='statut_nouv' SIZE='1' CLASS='fondl' onChange=\"document.statut.src=$statut_url_javascript; setvisibility('valider_statut', 'visible');\">"; echo "<SELECT NAME='statut_nouv' SIZE='1' CLASS='fondl' onChange=\"document.statut.src=$statut_url_javascript; setvisibility('valider_statut', 'visible');\">";
echo "<OPTION" . mySel("prepa", $statut_article) ." style='background-color: white'>"._T('texte_statut_en_cours_redaction')."\n"; echo "<OPTION" . mySel("prepa", $statut_article) ." style='background-color: white'>"._T('texte_statut_en_cours_redaction')."\n";
echo "<OPTION" . mySel("prop", $statut_article) . " style='background-color: #FFF1C6'>"._T('texte_statut_propose_evaluation')."\n"; echo "<OPTION" . mySel("prop", $statut_article) . " style='background-color: #FFF1C6'>"._T('texte_statut_propose_evaluation')."\n";
......
...@@ -385,7 +385,8 @@ function formulaire_mots($table, $id_objet, $nouv_mot, $supp_mot, $cherche_mot, ...@@ -385,7 +385,8 @@ function formulaire_mots($table, $id_objet, $nouv_mot, $supp_mot, $cherche_mot,
$couche_a_redresser = $GLOBALS['numero_block']['lesmots']; $couche_a_redresser = $GLOBALS['numero_block']['lesmots'];
if (test_layer()) echo "<script type='text/javascript'><!-- if (test_layer()) echo "<script type='text/javascript'><!--
triangle = findObj('triangle' + $couche_a_redresser); triangle = findObj('triangle' + $couche_a_redresser);
if (triangle) triangle.src = 'img_pack/deplierbas$spip_lang_rtl.gif'; if (triangle) triangle.src = '" .
_DIR_IMG_PACK . "deplierbas$spip_lang_rtl.gif';
//--></script>"; //--></script>";
} }
else else
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter