From d6c61d64a3458f59b253994cb55d5ccf6dd9266e Mon Sep 17 00:00:00 2001 From: "Committo,Ergo:sum" <esj@rezo.net> Date: Thu, 11 Nov 2004 13:14:00 +0000 Subject: [PATCH] =?UTF-8?q?abstraction=20du=20r=C3=A9pertoire=20img=5Fpack?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecrire/articles.php3 | 12 ++++++------ ecrire/inc_mots.php3 | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ecrire/articles.php3 b/ecrire/articles.php3 index 56ad0eedf7..75a3fc3ced 100644 --- a/ecrire/articles.php3 +++ b/ecrire/articles.php3 @@ -1455,19 +1455,19 @@ if ((lire_meta('multi_articles') == 'oui') <!-- function puce_statut(selection){ if (selection=="publie"){ - return "img_pack/puce-verte.gif"; + return "puce-verte.gif"; } if (selection=="prepa"){ - return "img_pack/puce-blanche.gif"; + return "puce-blanche.gif"; } if (selection=="prop"){ - return "img_pack/puce-orange.gif"; + return "puce-orange.gif"; } if (selection=="refuse"){ - return "img_pack/puce-rouge.gif"; + return "puce-rouge.gif"; } 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)) { 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="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 "<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"; diff --git a/ecrire/inc_mots.php3 b/ecrire/inc_mots.php3 index fb416190b4..5103875092 100644 --- a/ecrire/inc_mots.php3 +++ b/ecrire/inc_mots.php3 @@ -385,7 +385,8 @@ function formulaire_mots($table, $id_objet, $nouv_mot, $supp_mot, $cherche_mot, $couche_a_redresser = $GLOBALS['numero_block']['lesmots']; if (test_layer()) echo "<script type='text/javascript'><!-- 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>"; } else -- GitLab