From c529c8ceb9ebe47ad8f5dbf92ec6fae26e14e0d3 Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Wed, 3 Jan 2007 14:39:31 +0000
Subject: [PATCH] =?UTF-8?q?Conformit=C3=A9=20XHTML:=20=C3=A9vacuation=20de?=
 =?UTF-8?q?=20l'attribut=20border=20de=20la=20balise=20img.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/exec/aide_index.php               | 26 ++++++++++++------------
 ecrire/exec/articles_tous.php            |  2 +-
 ecrire/exec/forum_envoi.php              |  6 +++---
 ecrire/exec/message.php                  |  4 ++--
 ecrire/exec/messagerie.php               |  8 ++++----
 ecrire/exec/statistiques_lang.php        |  2 +-
 ecrire/exec/statistiques_repartition.php |  9 +++-----
 ecrire/exec/statistiques_visites.php     |  4 ++--
 ecrire/exec/synchro.php                  |  4 ++--
 9 files changed, 31 insertions(+), 34 deletions(-)

diff --git a/ecrire/exec/aide_index.php b/ecrire/exec/aide_index.php
index 015af209de..ade2d80cc7 100644
--- a/ecrire/exec/aide_index.php
+++ b/ecrire/exec/aide_index.php
@@ -148,15 +148,15 @@ function help_body($aide, $html, $lang_aide='') {
 		}
 	} else {
 		// panneau d'accueil
-		$html = '<div align="center">
-			<img src="'._DIR_IMG_PACK.
-			'logo-spip.gif" alt="SPIP" width="267" height="170" border="0" />
+		$html = "<div align='center'>
+			<img src='" . _DIR_IMG_PACK.
+		  "logo-spip.gif' alt='SPIP' style='width: 267px; height: 170px; border: 0px' />
 			<br />
-			<div align="center" style="font-variant: small-caps;">
-			Syst&egrave;me de publication pour l\'Internet
+			<div align='center' style='font-variant: small-caps;'>
+			Syst&egrave;me de publication pour l'Internet
 			</div></div>
-			<div style="position:absolute; bottom: 10px; right:20px;
-			font-size: 12px; ">'.
+			<div style='position:absolute; bottom: 10px; right:20px;
+			font-size: 12px; '>" .
 		preg_replace(",<a ,i", "<a class='target_blank' ",_T('info_copyright_doc')).
 			'</div>';
 	}
@@ -194,12 +194,12 @@ jQuery(function(){
 	echo " lang='$lang_aide'>";
 
 	if ($aide == 'spip') {
-		echo '<table border="0" width="100%" height="60%">
-<tr style="width: 100%" height="60%">
-<td style="width: 100%" height="60%" align="center" valign="middle">
-<img src="', generer_url_ecrire("aide_index", "img=AIDE--logo-spip.gif", false, true),
-		  '" alt="SPIP" width="300" height="170" border="0" />
-</td></tr></table>';
+		echo "<table border='0' width='100%' height='60%'>
+<tr style='width: 100%' height='60%'>
+<td style='width: 100%' height='60%' align='center' valign='middle'>
+<img src='", generer_url_ecrire('aide_index', 'img=AIDE--logo-spip.gif', false, true),
+		  "' alt='SPIP' style='width: 300px; height: 170px; border: 0px;' />
+</td></tr></table>";
 	}
 
 	// Il faut que la langue de typo() soit celle de l'aide en ligne
diff --git a/ecrire/exec/articles_tous.php b/ecrire/exec/articles_tous.php
index 7ab1c62e52..112ae28b2f 100644
--- a/ecrire/exec/articles_tous.php
+++ b/ecrire/exec/articles_tous.php
@@ -179,7 +179,7 @@ function http_label_img($statut, $etat, $var, $img, $texte) {
 			(($etat !== false) ? ' checked="checked" ' : '') .
 			"id='$statut'") .
 		"&nbsp;" . 
-		http_img_pack($img, $texte, "width='8' height='9' border='0'", $texte) .
+		http_img_pack($img, $texte, "style='width: 8px; height: 9px; border: 0px;'", $texte) .
 		" " .
 		$texte .
 		"</label>" .
diff --git a/ecrire/exec/forum_envoi.php b/ecrire/exec/forum_envoi.php
index fdb38153b2..7909e27c7c 100644
--- a/ecrire/exec/forum_envoi.php
+++ b/ecrire/exec/forum_envoi.php
@@ -226,7 +226,7 @@ function forum_envoi_entete($parent, $titre_parent, $texte, $titre_texte, $nom_s
 {
 	global $spip_lang_rtl;
 
-		 
+	spip_log("forum_envoi_entete($parent, $titre_parent, $texte, $titre_texte, $nom_site, $url_site");
 	return "\n<table width='100%' cellpadding='0' cellspacing='0' border='0'>"
 		. (!$parent ? '' : "<tr><td colspan='2'>$parent</td></tr>")
 		. "\n<tr>"
@@ -235,7 +235,7 @@ function forum_envoi_entete($parent, $titre_parent, $texte, $titre_texte, $nom_s
 			   . _DIR_IMG_PACK
 			   . "forum-vert.gif'" 
 			   . ">"
-			   . http_img_pack('rien.gif', ' ', "width='10' height='13' border='0'")
+			   . http_img_pack('rien.gif', ' ', "style='width: 10px; height: 13px border: 0px'")
 			   . "</td>\n<td "))
 		.  " width='100%' valign='top' rowspan='2'>"
 		.  debut_cadre_thread_forum("", true, "", typo($titre_texte))
@@ -251,7 +251,7 @@ function forum_envoi_entete($parent, $titre_parent, $texte, $titre_texte, $nom_s
 			: ("<tr><td style='width: 10px' valign='top' background='"
 			  . _DIR_IMG_PACK
 			  . "rien.gif'>"
-			  .  http_img_pack("forum-droite$spip_lang_rtl.gif", $titre_parent, "width='10' height='13' border='0'")
+			  .  http_img_pack("forum-droite$spip_lang_rtl.gif", $titre_parent, " style='width: 10px; height: 13px border: 0px'")
 		      . "</td>\n</tr>"))
 		. "</table>"
 		. "\n<div>&nbsp;</div>";
diff --git a/ecrire/exec/message.php b/ecrire/exec/message.php
index f2c6f00641..17a2042aa2 100644
--- a/ecrire/exec/message.php
+++ b/ecrire/exec/message.php
@@ -101,10 +101,10 @@ function http_afficher_rendez_vous($date_heure, $date_fin)
 	$dirpuce = _DIR_RACINE . 'dist';
 	if (jour($date_heure) == jour($date_fin) AND mois($date_heure) == mois($date_fin) AND annee($date_heure) == annee($date_fin)) {		
 	  echo "<p class='verdana2' style='text-align: center'>"._T('titre_rendez_vous')." ".majuscules(nom_jour($date_heure))." <b>".majuscules(affdate($date_heure))."</b><br />\n<b>".heures($date_heure)." "._T('date_mot_heures')." ".minutes($date_heure)."</b>";
-	  echo " &nbsp; <img src='$dirpuce/puce$spip_lang_rtl.gif' alt=' ' border='0' /> &nbsp;  ".heures($date_fin)." "._T('date_mot_heures')." ".minutes($date_fin)."</p>";
+	  echo " &nbsp; <img src='$dirpuce/puce$spip_lang_rtl.gif' alt=' ' style='border: 0px;' /> &nbsp;  ".heures($date_fin)." "._T('date_mot_heures')." ".minutes($date_fin)."</p>";
 	} else {
 	  echo "<p class='verdana2' style='text-align: center'>"._T('titre_rendez_vous')."<br />\n".majuscules(nom_jour($date_heure))." <b>".majuscules(affdate($date_heure))."</b>, <b>".heures($date_heure)." "._T('date_mot_heures')." ".minutes($date_heure)."</b>";
-	  echo "<br />\n<img src='$dirpuce/puce$spip_lang_rtl.gif' alt=' ' border='0' /> ".majuscules(nom_jour($date_fin))." ".majuscules(affdate($date_fin)).", <b>".heures($date_fin)." "._T('date_mot_heures')." ".minutes($date_fin)."</b></p>";
+	  echo "<br />\n<img src='$dirpuce/puce$spip_lang_rtl.gif' alt=' ' style='border: 0px;' /> ".majuscules(nom_jour($date_fin))." ".majuscules(affdate($date_fin)).", <b>".heures($date_fin)." "._T('date_mot_heures')." ".minutes($date_fin)."</b></p>";
 	}
 }
 
diff --git a/ecrire/exec/messagerie.php b/ecrire/exec/messagerie.php
index b204b8409d..1d0d2533a2 100644
--- a/ecrire/exec/messagerie.php
+++ b/ecrire/exec/messagerie.php
@@ -45,15 +45,15 @@ debut_boite_info();
 
 echo _T('info_gauche_messagerie');
 
-echo "<p>".http_img_pack("m_envoi$spip_lang_rtl.gif", 'V', "width='14' height='7' border='0'") .' ' . _T('info_symbole_vert'), '</p>';
+echo "<p>".http_img_pack("m_envoi$spip_lang_rtl.gif", 'V', "style='width: 14px; height: 7px; border: 0px'") .' ' . _T('info_symbole_vert'), '</p>';
 
  echo aide ("messut");
 
-echo "<p>".http_img_pack("m_envoi_bleu$spip_lang_rtl.gif", 'B', "width='14' height='7' border='0'") .' ' . _T('info_symbole_bleu'), '</p>';
+echo "<p>".http_img_pack("m_envoi_bleu$spip_lang_rtl.gif", 'B', "style='width: 14px; height: 7px; border: 0px'") .' ' . _T('info_symbole_bleu'), '</p>';
 
 echo aide ("messpense");
 
-echo "<p>".http_img_pack("m_envoi_jaune$spip_lang_rtl.gif", 'J', "width='14' height='7' border='0'") .' ' . _T('info_symbole_jaune'), '</p>';
+echo "<p>".http_img_pack("m_envoi_jaune$spip_lang_rtl.gif", 'J', "style='width: 14px; height: 7px; border: 0px'") .' ' . _T('info_symbole_jaune'), '</p>';
 
 fin_boite_info();
 
@@ -138,7 +138,7 @@ if (spip_num_rows($result) > 0) {
 		$id_auteur = $row['id_auteur'];
 		$nom = typo($row["nom"]);
 		$total = $row["total"];
-		echo "<div class='tr_liste' onmouseover=\"changeclass(this,'tr_liste_over');\" onmouseout=\"changeclass(this,'tr_liste');\" style='padding: 2px; padding-left: 10px; border-bottom: 1px solid #cccccc;'><div class='verdana1'><img src='" . _DIR_IMG_PACK . "redac-12.gif' border='0'> <a href='" . generer_url_ecrire("auteurs_edit","id_auteur=$id_auteur") . "'>$nom</a> ($total)</div></div>";
+		echo "<div class='tr_liste' onmouseover=\"changeclass(this,'tr_liste_over');\" onmouseout=\"changeclass(this,'tr_liste');\" style='padding: 2px; padding-left: 10px; border-bottom: 1px solid #cccccc;'><div class='verdana1'><img src='" . _DIR_IMG_PACK . "redac-12.gif' style='border: 0px'> <a href='" . generer_url_ecrire("auteurs_edit","id_auteur=$id_auteur") . "'>$nom</a> ($total)</div></div>";
 		if ($count == ceil(spip_num_rows($result)/2)) echo "</td><td valign='top' width='50%' style='background-color: #eeeeee;'>";
 	}
 	echo "</td></tr></table>";
diff --git a/ecrire/exec/statistiques_lang.php b/ecrire/exec/statistiques_lang.php
index 65c5060779..534d39802a 100644
--- a/ecrire/exec/statistiques_lang.php
+++ b/ecrire/exec/statistiques_lang.php
@@ -96,7 +96,7 @@ function exec_statistiques_lang_dist()
 				echo "\n<table cellpadding='0' cellspacing='0' border='0' width='".($taille+5)."'>";
 				echo "\n<tr><td style='align:$spip_lang_right; background-color: #eeeeee; border: 1px solid #999999; white-space: nowrap;'>";
 				if ($visites_abs > 0) echo "<img src='" . _DIR_IMG_PACK . "rien.gif' width='$visites_abs' height='8' alt=' ' />";
-				if ($visites>0) echo "<img src='" . _DIR_IMG_PACK . "rien.gif' style='background-color: $couleur_foncee;' width='$visites' height='8' border='0' alt=' ' />";
+				if ($visites>0) echo "<img src='" . _DIR_IMG_PACK . "rien.gif' style='background-color: $couleur_foncee; border: 0px;' width='$visites' height='8' alt=' ' />";
 				echo "</td></tr></table>\n";
 	
 				echo "</td>";
diff --git a/ecrire/exec/statistiques_repartition.php b/ecrire/exec/statistiques_repartition.php
index 0759828a6b..add5fa264d 100644
--- a/ecrire/exec/statistiques_repartition.php
+++ b/ecrire/exec/statistiques_repartition.php
@@ -85,9 +85,6 @@ function enfants_aff($id_parent,$decalage, $critere, $gauche=0) {
 					echo "\n<div class='verdana1' style='float: $spip_lang_right;'>$pourcent%</div>";
 				}
 
-				//echo "<IMG src='" . _DIR_IMG_PACK . "rien.gif' width='".($niveau*20+1)."' height=8 border=0>";
-				
-			
 				if ( $largeur_rouge > 2) echo bouton_block_invisible("stats$id_rubrique");
 				
 				echo "<span class='verdana1'>";	
@@ -102,9 +99,9 @@ function enfants_aff($id_parent,$decalage, $critere, $gauche=0) {
 				echo "\n<tr>";
 				if ($gauche > 0) echo "<td style='width: " .$gauche."px'></td>";
 				echo "\n<td style='background-color: #eeeeee; border: 1px solid #999999; white-space: nowrap;'>";
-				if ($visites_abs > 0) echo "<img src='" . _DIR_IMG_PACK . "rien.gif' width='".$visites_abs."' height='8' border='0' alt= ' '/>";
-				if ($largeur_rouge>0) echo "<img src='" . _DIR_IMG_PACK . "rien.gif' style='background-color: $couleur_foncee;' width='$largeur_rouge' height='8' border='0' alt=' ' />";
-				if ($largeur_vert>0) echo "<img src='" . _DIR_IMG_PACK . "rien.gif' style='background-color: $couleur_claire;' width='$largeur_vert' height='8' border='0' alt=' ' />";
+				if ($visites_abs > 0) echo "<img src='" . _DIR_IMG_PACK . "rien.gif' style='height: 8px; border: 0px; width: ".$visites_abs."px;' alt= ' '/>";
+				if ($largeur_rouge>0) echo "<img src='" . _DIR_IMG_PACK . "rien.gif' style='background-color: $couleur_foncee; height: 8px; border: 0px; width: " . $largeur_rouge . "px;' alt=' ' />";
+				if ($largeur_vert>0) echo "<img src='" . _DIR_IMG_PACK . "rien.gif' style='background-color: $couleur_claire; width: " . $largeur_vert ."px; height: 8px; border: 0px' alt=' ' />";
 				
 				echo "</td></tr></table>\n";
 				echo "</td></tr></table>";
diff --git a/ecrire/exec/statistiques_visites.php b/ecrire/exec/statistiques_visites.php
index a38d55cc86..228a4a8d6f 100644
--- a/ecrire/exec/statistiques_visites.php
+++ b/ecrire/exec/statistiques_visites.php
@@ -357,12 +357,12 @@ if ($connect_statut != '0minirezo') {
 		if ($date_premier < $date_debut)
 		  echo http_href_img(generer_url_ecrire("statistiques_visites","aff_jours=$aff_jours_plus$pour_article"),
 				     'loupe-moins.gif',
-				     "border='0' style='vertical-align:center;'",
+				     "style='border: 0px; vertical-align:center;'",
 				     _T('info_zoom'). '-'), "&nbsp;";
 		if ( (($date_today - $date_debut) / (24*3600)) > 30)
 		  echo http_href_img(generer_url_ecrire("statistiques_visites","aff_jours=$aff_jours_moins$pour_article"), 
 				     'loupe-plus.gif',
-				     "border='0' style='vertical-align:center;'",
+				     "style='border: 0px; vertical-align:center;'",
 				     _T('info_zoom'). '+'), "&nbsp;";
 	
 	
diff --git a/ecrire/exec/synchro.php b/ecrire/exec/synchro.php
index 66fdfb3001..d49df88569 100644
--- a/ecrire/exec/synchro.php
+++ b/ecrire/exec/synchro.php
@@ -127,7 +127,7 @@ if (spip_num_rows($result) > 0) {
 			$titre = htmlspecialchars($titre_rubrique);
 			
 			echo "<li>", http_href( generer_url_public('backend', "id_rubrique=$id_rubrique"), 
-			http_img_pack( 'feed.png', 'RSS', ' border="0" ') .'&nbsp; '.
+			http_img_pack( 'feed.png', 'RSS', '') .'&nbsp; '.
 			$titre_rubrique, $titre),
 			"</li>\n";
 		}
@@ -142,7 +142,7 @@ if (spip_num_rows($result) > 0) {
 		echo "<p>"._T("ical_texte_rss_breves")."</p>";
 		echo '<ul><li>' .
 		http_href( generer_url_public('backend-breves', ""), 
-			http_img_pack( 'feed.png', 'RSS', ' border="0" ') .'&nbsp; '.
+			http_img_pack( 'feed.png', 'RSS', '') .'&nbsp; '.
 			_L('syndication des br&egrave;ves du site'), _L('syndication des br&egrave;ves du site')) .
 		"</li></ul>";
 		
-- 
GitLab