diff --git a/ecrire/exec/articles.php b/ecrire/exec/articles.php index c290cf5a402941a028398cf2829b344d431f6e64..408c36fff52e6bb08d48b640eb788887604b2c97 100644 --- a/ecrire/exec/articles.php +++ b/ecrire/exec/articles.php @@ -329,11 +329,11 @@ function titres_articles($titre, $statut_article,$surtitre, $soustitre, $descrip $texte_case .= ($nom_site.$url_site) ? "{{"._T('info_urlref')."}} [".$nom_site."->".$url_site."]" : ''; - $res .= "<p>\n<div align='$spip_lang_left' style='padding: 5px; border: 1px dashed #aaaaaa; background-color: #e4e4e4;' $dir_lang>" + $res .= "<br />\n<div align='$spip_lang_left' style='padding: 5px; border: 1px dashed #aaaaaa; background-color: #e4e4e4;' $dir_lang>" . "<font size='2' face='Verdana,Arial,Sans,sans-serif'>" . propre($texte_case) . "</font>" - . "</div></p>"; + . "</div>"; } if ($statut_article == 'prop') diff --git a/ecrire/inc/barre.php b/ecrire/inc/barre.php index 201c8c633809ea49a2af5099505d10973667bef0..8b180625b6c5b50acfbf3f4081ff0ff2f108c92a 100644 --- a/ecrire/inc/barre.php +++ b/ecrire/inc/barre.php @@ -31,7 +31,7 @@ function bouton_barre_racc($action, $img, $help, $champhelp) { ."><img\nsrc='" ._DIR_IMG_ICONES_BARRE .$img - ."' height='16' width='16' align='middle' /></a>"; + ."' height='16' width='16' align='middle' alt=' '/></a>"; } // construit un tableau de raccourcis pour un noeud de DOM diff --git a/ecrire/inc/chercher_rubrique.php b/ecrire/inc/chercher_rubrique.php index 499ec9278c63b93132b2dec8aa11b9587e74a2ea..173fe20282b2a847324c06db5905bc9250399b74 100644 --- a/ecrire/inc/chercher_rubrique.php +++ b/ecrire/inc/chercher_rubrique.php @@ -227,11 +227,11 @@ function construire_selecteur($url, $js, $idom, $name, $init='', $id=0) . "', this.parentNode.parentNode.parentNode.parentNode.nextSibling, this.nextSibling)\"><img src='" . _DIR_IMG_PACK . $icone - . "' style='vertical-align: middle;'/></a><img src='" + . "' style='vertical-align: middle;' alt=' ' /></a><img src='" . _DIR_IMG_PACK . "searching.gif' id='img_" . $idom - . "' style='visibility: hidden;' /></td><td>" + . "' style='visibility: hidden;' alt='*' /></td><td>" . "<input id='titreparent' name='titreparent'" . $init . " />" diff --git a/ecrire/inc/editer_article.php b/ecrire/inc/editer_article.php index 3db5005266edc147edd42179f356863929e17984..51788265d6a2e03395e0d975f551313e2d7b5d8f 100644 --- a/ecrire/inc/editer_article.php +++ b/ecrire/inc/editer_article.php @@ -55,7 +55,7 @@ function inc_editer_article($row, $lier_trad, $new, $champs_article) { else $logo = "rubrique-24.gif"; if ($spip_ecran == "large") $rows = 28; else $rows = 20; - $att_text = " class='formo' ".$GLOBALS['browser_caret']." rows='$rows' COLS='40' wrap='soft'"; + $att_text = " class='formo' ".$GLOBALS['browser_caret']." rows='$rows' cols='40'"; if (strlen($texte)>29*1024) { // texte > 32 ko -> decouper en morceaux list($texte, $sup) = articles_edit_recolle($texte, $att_text); } else $sup=''; @@ -102,7 +102,7 @@ function inc_editer_article($row, $lier_trad, $new, $champs_article) { aide ("arttitre") . "\n<br /><input type='text' name='soustitre' class='forml' value=\"" . $soustitre . - "\" size='40' /><br /><br />\n") : + "\" size='40' /><br /><br /></p>\n") : '') . debut_cadre_couleur($logo, true, "", _T('titre_cadre_interieur_rubrique'). aide("artrub")) . @@ -112,10 +112,10 @@ function inc_editer_article($row, $lier_trad, $new, $champs_article) { fin_cadre_couleur(true) . ((($options == "avancees" AND $articles_descriptif) OR strlen($descriptif))? - ("\n</p><p><b>" ._T('texte_descriptif_rapide') ."</b>" . + ("\n<p><b>" ._T('texte_descriptif_rapide') ."</b>" . aide ("artdesc") . - "</p>\n<br />" ._T('texte_contenu_article') ."<br />\n" . - "<textarea name='descriptif' class='forml' rows='2' cols='40' wrap=soft>" . + "<br />" ._T('texte_contenu_article') ."<br />\n" . + "<textarea name='descriptif' class='forml' rows='2' cols='40'>" . $descriptif . "</textarea>\n") : '') . @@ -129,7 +129,7 @@ function inc_editer_article($row, $lier_trad, $new, $champs_article) { chapo_articles_edit($chapo, $articles_chapeau) . - "<b>" ._T('info_texte') ."</b>" . + "</p><p><b>" ._T('info_texte') ."</b>" . aide ("arttexte") . "<br />\n" . _T('texte_enrichir_mise_a_jour') . aide("raccourcis") . @@ -138,12 +138,12 @@ function inc_editer_article($row, $lier_trad, $new, $champs_article) { "<textarea id='text_area' name='texte'$att_text>$texte</textarea>\n" . ((($articles_ps AND $options == "avancees") OR strlen($ps)) ? - ("\n<p><b>" . _T('info_post_scriptum') ."</b><br />" . "<textarea name='ps' class='forml' rows='5' cols='40' wrap=soft>" . $ps . "</textarea></p><p>\n") : + ("\n</p><p><b>" . _T('info_post_scriptum') ."</b><br />" . "<textarea name='ps' class='forml' rows='5' cols='40'>" . $ps . "</textarea>\n") : '') . (!$champs_extra ? '': extra_saisie($extra, 'articles', $id_secteur)) . - "<div align='right'><input class='fondo' type='submit' value='" . _T('bouton_enregistrer') . "' /></div>"; + "<div align='right'><input class='fondo' type='submit' value='" . _T('bouton_enregistrer') . "' /></div></p>"; return "\n<table cellpadding='0' cellspacing='0' border='0' width='100%'>" . @@ -162,7 +162,7 @@ function inc_editer_article($row, $lier_trad, $new, $champs_article) { "<td width='100%'>" . _T('texte_modifier_article') . gros_titre($gros_titre,'',false) . - "</td></tr></table><p><hr />\n<p>" . + "</td></tr></table><hr />\n<p>" . generer_action_auteur("editer_article", $new ? $new : $id_article, $redirect, $form, " method='post' name='formulaire' onchange='disable_other_forms(this);'"); } @@ -209,7 +209,7 @@ function articles_edit_recolle($texte, $att_text) $textes_supplement .= "<br />" . afficher_barre('document.formulaire.texte'.$nombre) . - "<textarea id='texte$nombre' name='texte_plus[$nombre]'$att_text>$texte1</textarea><p>\n"; + "<textarea id='texte$nombre' name='texte_plus[$nombre]'$att_text>$texte1</textarea></p><p>\n"; } return array($texte,$textes_supplement); } @@ -226,11 +226,11 @@ function chapo_articles_edit($chapo, $articles_chapeau) } if ($virtuel) { - return "<p><div style='border: 1px dashed #666666; background-color: #f0f0f0; padding: 5px;'>" . + return "<div style='border: 1px dashed #666666; background-color: #f0f0f0; padding: 5px;'>" . "<table width=100% cellspacing=0 cellpadding=0 border=0>" . "<tr><td valign='top'>" . "<font face='Verdana,Arial,Sans,sans-serif' size=2>" . - "<B><label for='confirme-virtuel'>"._T('info_redirection')." :</label></B>" . + "<b><label for='confirme-virtuel'>"._T('info_redirection')." :</label></b>" . aide ("artvirt") . "</font>" . "</td>" . @@ -243,7 +243,7 @@ function chapo_articles_edit($chapo, $articles_chapeau) "<font face='Verdana,Arial,Sans,sans-serif' size=2>" . _T('texte_article_virtuel_reference') . "</font>" . - "</div><p>\n"; + "</div>\n"; } else { if (($articles_chapeau) OR strlen($chapo)) { @@ -252,9 +252,9 @@ function chapo_articles_edit($chapo, $articles_chapeau) return "<br /><b>"._T('info_chapeau')."</b>" . aide ("artchap") . "\n<br />"._T('texte_introductif_article')."<br />\n" . - "<textarea name='chapo' class='forml' rows='$rows' COLS='40' wrap=soft>" . + "<textarea name='chapo' class='forml' rows='$rows' cols='40'>" . $chapo . - "</textarea><p>\n"; + "</textarea>\n"; } } } diff --git a/ecrire/inc/editer_auteurs.php b/ecrire/inc/editer_auteurs.php index 8eb5b91a518e36698bf29bb8133ce64df7904a72..759011954b050893171f50f2f63388b5ca5b5583 100644 --- a/ecrire/inc/editer_auteurs.php +++ b/ecrire/inc/editer_auteurs.php @@ -49,7 +49,7 @@ function editer_auteurs_article($id_article, $flag, $cherche_auteur, $ids, $les_ if ($bouton_creer_auteur) { - $legender = redirige_action_auteur("legender_auteur","0/$id_article/" . rawurlencode($cherche_auteur), "articles","id_article=$id_article", array($clic)); + $legender = redirige_action_auteur("legender_auteur","0/$id_article/" . rawurlencode($cherche_auteur), "articles","id_article=$id_article"); $reponse .="<div style='width: 200px;'>" . icone_horizontale($clic, $legender, "redacteurs-24.gif", "creer.gif", false) @@ -74,7 +74,7 @@ function editer_auteurs_article($id_article, $flag, $cherche_auteur, $ids, $les_ if ($bouton_creer_auteur) { - $legender = redirige_action_auteur("legender_auteur","0/$id_article", "articles","id_article=$id_article", array($clic)); + $legender = redirige_action_auteur("legender_auteur","0/$id_article", "articles","id_article=$id_article"); $res = "<div style='width:170px;'><span class='verdana1'><b>" . icone_horizontale($clic, $legender, "redacteurs-24.gif", "creer.gif", false) @@ -206,17 +206,17 @@ function ajouter_auteurs_articles($id_article, $les_auteurs) . "</b></span>\n"; $sel = ($num <= _SPIP_SELECT_AUTEURS - ? ("$text<select name='nouv_auteur' size='1' style='width:150px;' CLASS='fondl' onchange=\"$js\">" . + ? ("$text<select name='nouv_auteur' size='1' style='width:150px;' class='fondl' onchange=\"$js\">" . articles_auteur_select($query) . "</select>" . "<span class='visible_au_chargement' id='valider_ajouter_auteur'>" . - " <input type='submit' value='"._T('bouton_ajouter')."' class='fondo'>" . + " <input type='submit' value='"._T('bouton_ajouter')."' class='fondo' />" . "</span>") : (($_COOKIE['spip_accepte_ajax'] < 1) ? ("$text <input type='text' name='cherche_auteur' onclick=\"$js\" class='fondl' value='' size='20' /><span class='visible_au_chargement' id='valider_ajouter_auteur'>\n<input type='submit' value='"._T('bouton_chercher')."' class='fondo' /></span>") : (selecteur_auteur_ajax($id_article, $js, $text) . "<span class='visible_au_chargement' id='valider_ajouter_auteur'>" - . " <input type='submit' value='"._T('bouton_ajouter')."' class='fondo'>" + . " <input type='submit' value='"._T('bouton_ajouter')."' class='fondo' />" . "</span>"))); return ajax_action_auteur('editer_auteurs', $id_article,'articles', "id_article=$id_article", $sel); diff --git a/ecrire/inc/editer_mot.php b/ecrire/inc/editer_mot.php index 6e1899258ae21f0ec53104350aac1a31857cbafa..5f275d33bc7b0a3f6701c26131f8daf41e08d9a7 100644 --- a/ecrire/inc/editer_mot.php +++ b/ecrire/inc/editer_mot.php @@ -261,7 +261,7 @@ function formulaire_mot_remplace($id_groupe, $id_mot, $url_base, $table, $table_ . "<span class='visible_au_chargement' id='$ancre'>" . "\n <input type='submit' value='" . _T('bouton_changer') - . "' CLASS='fondo' style='font-size: 10px';>" + . "' class='fondo' style='font-size: 10px;' />" . "</span>"),"&id_objet=$id_objet&objet=$objet"); } @@ -366,15 +366,15 @@ function menu_mots($row, $id_groupes_vus, $les_mots) $jscript = "onfocus=\"$jscript1 $jscript2\""; if ($obligatoire) - $res .= "<input type='text' name='cherche_mot' class='fondl' style='width: 180px; background-color:#E86519;' value=\"$titre_groupe\" size='20' $jscript>"; + $res .= "<input type='text' name='cherche_mot' class='fondl' style='width: 180px; background-color:#E86519;' value=\"$titre_groupe\" size='20' $jscript />"; else if ($unseul) - $res .= "<input type='text' name='cherche_mot' class='fondl' style='width: 180px; background-color:#cccccc;' value=\"$titre_groupe\" size='20' $jscript>"; + $res .= "<input type='text' name='cherche_mot' class='fondl' style='width: 180px; background-color:#cccccc;' value=\"$titre_groupe\" size='20' $jscript />"; else - $res .= "<input type='text' name='cherche_mot' class='fondl' style='width: 180px; ' value=\"$titre_groupe\" size='20' $jscript>"; + $res .= "<input type='text' name='cherche_mot' class='fondl' style='width: 180px; ' value=\"$titre_groupe\" size='20' $jscript />"; $res .= "<input type='hidden' name='select_groupe' value='$id_groupe' />"; $res .= "<span class='visible_au_chargement' id='$ancre'>"; - $res .= " <input type='submit' value='"._T('bouton_chercher')."' class='fondo' style='font-size:10px'>"; + $res .= " <input type='submit' value='"._T('bouton_chercher')."' class='fondo' style='font-size:10px' />"; $res .= "</span>"; } else { @@ -396,7 +396,7 @@ function menu_mots($row, $id_groupes_vus, $les_mots) } $res .= "</select>"; $res .= "<span class='visible_au_chargement' id='$ancre'>"; - $res .= "\n <input type='submit' value='"._T('bouton_choisir')."' CLASS='fondo' />"; + $res .= "\n <input type='submit' value='"._T('bouton_choisir')."' class='fondo' />"; $res .= "</span>"; } diff --git a/ecrire/inc/formater_article.php b/ecrire/inc/formater_article.php index 9415147ac3b6df281833e21e15a277e788fa222e..0ba91a1c90c41445cf6b660d7d46d277a652b995 100644 --- a/ecrire/inc/formater_article.php +++ b/ecrire/inc/formater_article.php @@ -14,7 +14,7 @@ if (!defined("_ECRIRE_INC_VERSION")) return; // Fonction appelee dans une boucle, calculer les invariants au premier appel. -function inc_formater_article($row ) +function inc_formater_article_dist($row) { global $dir_lang, $options, $spip_lang_right, $spip_display; static $pret = false; diff --git a/ecrire/inc/iconifier.php b/ecrire/inc/iconifier.php index 46bf45c36907524a57dcde4588599fd3f7fa76ba..566d17c275081822b706c4280856d8203a5feb8d 100644 --- a/ecrire/inc/iconifier.php +++ b/ecrire/inc/iconifier.php @@ -89,12 +89,12 @@ function indiquer_logo($titre, $id_objet, $mode, $id, $script) { _T('info_selectionner_fichier', array('upload' => '<b>' . joli_repertoire($dir_ftp) . '</b>')) . ":</div>" . - "\n<select name='source' CLASS='forml' size='1'>$afficher\n</select>" . + "\n<select name='source' class='forml' size='1'>$afficher\n</select>" . "\n<div align='" . $GLOBALS['spip_lang_right'] . "'><input name='sousaction2' type='submit' value='". _T('bouton_choisir') . - "' CLASS='fondo' style='font-size:9px' /></div>"; + "' class='fondo' style='font-size:9px' /></div>"; } $afficher = "\n" . _T('info_telecharger_nouveau_logo') . @@ -121,7 +121,7 @@ function decrire_logo($id_objet, $mode, $id, $width, $height, $img, $titre="", $ $res = ratio_image($fid, $nom, $format, $width, $height, "alt=''"); if ($res) - $res = "<div><a href='" . $fid . "'>$res</a></div>"; + $res = "<a href='" . $fid . "'>$res</a>"; else $res = "<img src='$fid' width='$width' height='$height' alt=\"" . htmlentities($titre) . '" />'; if ($taille = @getimagesize($fid)) diff --git a/ecrire/inc/instituer_article.php b/ecrire/inc/instituer_article.php index 7e8cb065f2a9a333b6ffd906eb2ac43c8ea628e5..c109371044bc28bc0463431e8bdc993345f1a3a0 100644 --- a/ecrire/inc/instituer_article.php +++ b/ecrire/inc/instituer_article.php @@ -24,7 +24,7 @@ function inc_instituer_article_dist($id_article, $statut=-1) _T('texte_article_statut') . "</b>" . "\n<select name='statut_nouv' size='1' class='fondl'\n" . - "onChange=\"document.statut.src='" . + "onchange=\"document.statut.src='" . _DIR_IMG_PACK . "' + puce_statut(options[selectedIndex].value);" . " setvisibility('valider_statut', 'visible');\">\n" . @@ -36,10 +36,10 @@ function inc_instituer_article_dist($id_article, $statut=-1) "<option" . mySel("refuse", $statut) . " style='background-color: #FFA4A4'>" ._T('texte_statut_refuse') ."</option>\n" . "</select>" . " " . - http_img_pack("puce-".puce_statut($statut).'.gif', "", "border='0' NAME='statut'") . + http_img_pack("puce-".puce_statut($statut).'.gif', "", "border='0'") . " \n" . "<span class='visible_au_chargement' id='valider_statut'>" . - "<input type='submit' value='"._T('bouton_valider')."' CLASS='fondo' />" . + "<input type='submit' value='"._T('bouton_valider')."' class='fondo' />" . "</span>" . aide("artstatut") . "</center>" diff --git a/ecrire/inc/joindre.php b/ecrire/inc/joindre.php index e6e2b1e460b87369ed078c92b498ad6c4ba038c3..095491bbf1a467f97f7031412a40c68d837544ef 100644 --- a/ecrire/inc/joindre.php +++ b/ecrire/inc/joindre.php @@ -56,9 +56,9 @@ function inc_joindre_dist($script, $args, $id=0, $intitule='', $mode='', $type=' "' style='float: $spip_lang_right;' alt=\"\" />\n" . _T('info_referencer_doc_distant') . "<br />\n\t<input name='url' class='fondo' value='http://' />" . - "\n\t<div align='$spip_lang_right'><input name='sousaction2' type='Submit' value='". + "\n\t<div align='$spip_lang_right'><input name='sousaction2' type='submit' value='". _T('bouton_choisir'). - "' class='fondo'></div>" . + "' class='fondo' /></div>" . "\n</div>"; } @@ -77,7 +77,7 @@ function inc_joindre_dist($script, $args, $id=0, $intitule='', $mode='', $type=' (intval($id) .'/' .intval($id_document) . "/$mode/$type"), generer_url_ecrire($script, $args, true), "$debut$intitule$res$dir_ftp$distant$fin", - " method='post' enctype='multipart/form-data' style='border: 0px; margin: 0px;'"); + " method='post' enctype='multipart/form-data'"); } @@ -157,9 +157,9 @@ function afficher_transferer_upload($texte_upload) "\n</select>" . "\n<div align='". $GLOBALS['spip_lang_right'] . - "'><input name='sousaction3' type='Submit' value='" . + "'><input name='sousaction3' type='submit' value='" . _T('bouton_choisir'). - "' class='fondo'></div>" . + "' class='fondo' /></div>" . "</div>\n"; } } diff --git a/ecrire/inc/legender.php b/ecrire/inc/legender.php index f8d24bdc288b291db00597dfbeb0e66bdc731951..503b6764e2ee9d73000b3abbfc3a4aa7e4457d8f 100644 --- a/ecrire/inc/legender.php +++ b/ecrire/inc/legender.php @@ -191,9 +191,9 @@ function date_formulaire_legender($date, $id_document) { $annee = $regs[1]; } return "<b>"._T('info_mise_en_ligne')."</b><br />\n" . - afficher_jour($jour, "name='jour_doc' size='1' CLASS='fondl' style='font-size:9px;'\n\tonChange=\"changeVisible(true, 'valider_doc$id_document', 'block', 'block');\"") . - afficher_mois($mois, "name='mois_doc' size='1' CLASS='fondl' style='font-size:9px;'\n\tonChange=\"changeVisible(true, 'valider_doc$id_document', 'block', 'block');\"") . - afficher_annee($annee, "name='annee_doc' size='1' CLASS='fondl' style='font-size:9px;'\n\tonChange=\"changeVisible(true, 'valider_doc$id_document', 'block', 'block')\"") . + afficher_jour($jour, "name='jour_doc' size='1' class='fondl' style='font-size:9px;'\n\tonchange=\"changeVisible(true, 'valider_doc$id_document', 'block', 'block');\"") . + afficher_mois($mois, "name='mois_doc' size='1' class='fondl' style='font-size:9px;'\n\tonchange=\"changeVisible(true, 'valider_doc$id_document', 'block', 'block');\"") . + afficher_annee($annee, "name='annee_doc' size='1' class='fondl' style='font-size:9px;'\n\tonchange=\"changeVisible(true, 'valider_doc$id_document', 'block', 'block')\"") . "<br />\n"; } diff --git a/ecrire/inc/minipres.php b/ecrire/inc/minipres.php index de88b5b5915d7ed8f1d30a2cc06f0d38f981b3eb..f1a1d25b0596540b143a33b3c6a9cd25575dc342 100644 --- a/ecrire/inc/minipres.php +++ b/ecrire/inc/minipres.php @@ -203,7 +203,7 @@ function info_copyright() { return _T('info_copyright', array('spip' => "<b>SPIP $version</b> ", 'lien_gpl' => - "<a href='". generer_url_ecrire("aide_index", "aide=licence&var_lang=$spip_lang") . "' target='spip_aide' onClick=\"javascript:window.open(this.href, 'aide_spip', 'scrollbars=yes,resizable=yes,width=740,height=580'); return false;\">" . _T('info_copyright_gpl')."</a>")); + "<a href='". generer_url_ecrire("aide_index", "aide=licence&var_lang=$spip_lang") . "' target='spip_aide' onclick=\"javascript:window.open(this.href, 'aide_spip', 'scrollbars=yes,resizable=yes,width=740,height=580'); return false;\">" . _T('info_copyright_gpl')."</a>")); } diff --git a/ecrire/inc/presentation.php b/ecrire/inc/presentation.php index c8fb59543d3ae7c841811847bc9d2ccc23e99a75..fa1b53b7b0be05f1d966952bd97b653105066be2 100644 --- a/ecrire/inc/presentation.php +++ b/ecrire/inc/presentation.php @@ -776,7 +776,7 @@ function afficher_articles_trad($titre_table, $requete, $formater_article, $tmp_ $url= generer_url_ecrire('memoriser',"id_ajax_fonc=$id_ajax&trad=" . (1-$trad)); $texte .= "\n<div style='float: $spip_lang_right;'><a href=\"#\"\nonclick=\"return charger_id_url('$url','$tmp_var');\">" - . "<img\nsrc='". _DIR_IMG_PACK . $icone ."' /></a></div>"; + . "<img\nsrc='". _DIR_IMG_PACK . $icone ."' alt=' ' /></a></div>"; } $texte .= '<b>' . $titre_table . '</b>'; @@ -1101,14 +1101,14 @@ function afficher_auteurs ($titre_table, $requete) { debut_cadre_relief("auteur-24.gif"); if ($titre_table) { - echo "<p><table width='100%' cellpadding='0' cellspacing='0' border='0' background=''>"; - echo "<tr><td width='100%' background=''>"; + echo "<p><table width='100%' cellpadding='0' cellspacing='0' border='0'>"; + echo "<tr><td width='100%'>"; echo "<table width='100%' cellpadding='3' cellspacing='0' border='0'>"; echo "<tr bgcolor='#333333'><td width='100%' colspan='5'><font face='Verdana,Arial,Sans,sans-serif' size=3 color='#FFFFFF'>"; echo "<b>$titre_table</b></font></td></tr>"; } else { - echo "<p><table width='100%' cellpadding='3' cellspacing='0' border='0' background=''>"; + echo "<p><table width='100%' cellpadding='3' cellspacing='0' border='0'>"; } echo $tranches; @@ -1323,11 +1323,13 @@ function afficher_forum_4($compteur_forum, $nb_forum, $thread) if ($j==$compteur_forum){ $fleche="forum-droite$spip_lang_rtl.gif"; } - $res .= "<td width='10' valign='top' background=$fond[$j]>" + $res .= "<td width='10' valign='top' style='background-color: " + . $fond[$j] + . "'>" . http_img_pack($fleche, " ", "width='10' height='13'") . "</td>\n"; } - return $res . "\n<td width=100% valign='top'>"; + return $res . "\n<td width='100%' valign='top'>"; } @@ -1809,7 +1811,7 @@ function bandeau_barre_verticale(){ // http://doc.spip.org/@lien_change_var function lien_change_var($lien, $set, $couleur, $coords, $titre, $mouseOver="") { $lien = parametre_url($lien, $set, $couleur); - return "\n<area shape='rect' href='$lien' coords='$coords' title=\"$titre\" alt=' ' $mouseOver>"; + return "\n<area shape='rect' href='$lien' coords='$coords' title=\"$titre\" alt=' ' $mouseOver />"; } // @@ -1888,7 +1890,7 @@ function init_body($rubrique='accueil', $sous_rubrique='accueil', $load='', $id_ if ($spip_ecran == "large") $largeur = 974; else $largeur = 750; - echo "\n<map name='map_layout'>"; + echo "\n<map id='map_layout'>"; echo lien_change_var (self(), 'set_disp', 1, '1,0,18,15', _T('lien_afficher_texte_seul'), "onmouseover=\"changestyle('bandeauvide','visibility', 'visible');\""); echo lien_change_var (self(), 'set_disp', 2, '19,0,40,15', _T('lien_afficher_texte_icones'), "onmouseover=\"changestyle('bandeauvide','visibility', 'visible');\""); echo lien_change_var (self(), 'set_disp', 3, '41,0,59,15', _T('lien_afficher_icones_seuls'), "onmouseover=\"changestyle('bandeauvide','visibility', 'visible');\""); diff --git a/ecrire/inc/referencer_traduction.php b/ecrire/inc/referencer_traduction.php index 279361af4da2931e94505213f8cd021d972a4ac4..15d42acc3b5042053ebac22cb0a0e9cc32eb36a5 100644 --- a/ecrire/inc/referencer_traduction.php +++ b/ecrire/inc/referencer_traduction.php @@ -86,9 +86,9 @@ function inc_referencer_traduction_dist($id_article, $flag, $id_rubrique, $id_tr (_T('trad_lier') . "\n<input type='text' class='fondl' name='lier_trad' size='5' />\n<input type='submit' value='"._T('bouton_valider')."' class='fondl' />")) . "</td>\n" - . "<td background='' width='10'> </td>" - . "<td background='" . _DIR_IMG_PACK . "tirets-separation.gif' width='2'>". http_img_pack('rien.gif', " ", "width='2' height='2'") . "</td>" - . "<td background='' width='10'> </td>"; + . "<td width='10'> </td>" + . "<td style='background: url(" . _DIR_IMG_PACK . "tirets-separation.gif)' width='2'>". http_img_pack('rien.gif', " ", "width='2' height='2'") . "</td>" + . "<td width='10'> </td>"; } $form .= "<td>" @@ -97,9 +97,9 @@ function inc_referencer_traduction_dist($id_article, $flag, $id_rubrique, $id_tr if ($flag AND $options == "avancees" AND $table) { $clic = _T('trad_delier'); - $form .= "<td background='' width='10'> </td>" - . "<td background='" . _DIR_IMG_PACK . "tirets-separation.gif' width='2'>". http_img_pack('rien.gif', " ", "width='2' height='2'") . "</td>" - . "<td background='' width='10'> </td>" + $form .= "<td width='10'> </td>" + . "<td style='background: url(" . _DIR_IMG_PACK . "tirets-separation.gif)' width='2'>". http_img_pack('rien.gif', " ", "width='2' height='2'") . "</td>" + . "<td width='10'> </td>" . "<td>" // la 1ere occurrence de clic ne sert pas en Ajax . icone_horizontale($clic, ajax_action_auteur("referencer_traduction","$id_article,-$id_trad",'articles', "id_article=$id_article",array($clic)), "traductions-24.gif", "supprimer.gif", false) @@ -163,7 +163,7 @@ function articles_traduction($id_article, $id_trad) changer_typo($lang_trad); $titre_trad = "<span $dir_lang>$titre_trad</span>"; - $vals[] = http_img_pack("puce-".puce_statut($statut_trad).'.gif', "", "width='7' height='7' border='0' NAME='statut'"); + $vals[] = http_img_pack("puce-".puce_statut($statut_trad).'.gif', "", "width='7' height='7' border='0'"); if ($id_article_trad == $id_trad) { $vals[] = http_img_pack('langues-12.gif', "", "width='12' height='12' border='0'"); diff --git a/ecrire/index.php b/ecrire/index.php index a8c06d3a546999204aeb6b235f506091a87ff95d..3c2fd990f581e35da6adc34dcef4b272eb616e70 100644 --- a/ecrire/index.php +++ b/ecrire/index.php @@ -153,8 +153,7 @@ define ('_ATTRIBUTES_BODY', " link='" . $GLOBALS['couleurs_spip'][$choix_couleur]['couleur_lien'] . "' vlink='" . $GLOBALS['couleurs_spip'][$choix_couleur]['couleur_lien_off'] ."' alink='" . $GLOBALS['couleurs_spip'][$choix_couleur]['couleur_lien_off'] ."' -bgcolor='#f8f7f3' text='#000000' -topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'" . +style='margin: 0px; background-color: #f8f7f3; color: #000000'" . ($GLOBALS['spip_lang_rtl'] ? " dir='rtl'" : "")); define('_TRANCHES', 10);