diff --git a/ecrire/exec/mots_edit.php b/ecrire/exec/mots_edit.php index 9e76f2306c91de1d91bf4d3ab4ffe2430c721799..e5aa01d3b31c40060085d80e4570decebd21901c 100644 --- a/ecrire/exec/mots_edit.php +++ b/ecrire/exec/mots_edit.php @@ -163,16 +163,16 @@ debut_droite(); debut_cadre_relief("mot-cle-24.gif"); -echo "\n<table cellpadding=0 cellspacing=0 border=0 width='100%'>"; +echo "\n<table cellpadding='0' cellspacing='0' border='0' width='100%'>"; echo "<tr width='100%'>"; echo "<td width='100%' valign='top'>"; gros_titre($titre_mot); if ($descriptif) { - echo "<p><div align='left' border: 1px dashed #aaaaaa;'>"; - echo "<font size=2 face='Verdana,Arial,Sans,sans-serif'>"; - echo "<b>"._T('info_descriptif')."</b> "; + echo "<p><div style='border: 1px dashed #aaaaaa;'>"; + echo "<font size='2' face='Verdana,Arial,Sans,sans-serif'>"; + echo "<b>",_T('info_descriptif'),"</b> "; echo propre($descriptif); echo " "; echo "</font>"; diff --git a/ecrire/exec/mots_tous.php b/ecrire/exec/mots_tous.php index 07c0bf64e8480a84309c2305c1dd75438a237a08..594e5f4ffb6a4a7585185387a3923a5cc3e5c8cc 100644 --- a/ecrire/exec/mots_tous.php +++ b/ecrire/exec/mots_tous.php @@ -171,9 +171,9 @@ while ($row_groupes = spip_fetch_array($result_groupes)) { echo "</font>"; if ($descriptif) { - echo "<p><div align='left' border: 1px dashed #aaaaaa;'>"; - echo "<font size=2 face='Verdana,Arial,Sans,sans-serif'>"; - echo "<b>"._T('info_descriptif')."</b> "; + echo "<p><div style='border: 1px dashed #aaaaaa;'>"; + echo "<font size='2' face='Verdana,Arial,Sans,sans-serif'>"; + echo "<b>",_T('info_descriptif'),"</b> "; echo propre($descriptif); echo " "; echo "</font>"; @@ -192,7 +192,7 @@ while ($row_groupes = spip_fetch_array($result_groupes)) { $supprimer_groupe = afficher_groupe_mots($id_groupe); if ($connect_statut =="0minirezo" AND $connect_toutes_rubriques AND !$conf_mot){ - echo "\n<table cellpadding=0 cellspacing=0 border=0 width=100%>"; + echo "\n<table cellpadding='0' cellspacing='0' border='0' width='100%'>"; echo "<tr>"; echo "<td>"; icone(_T('icone_modif_groupe_mots'), generer_url_ecrire("mots_type","id_groupe=$id_groupe"), "groupe-mot-24.gif", "edit.gif"); diff --git a/ecrire/inc/mots.php b/ecrire/inc/mots.php index 415ed4e7839ae2e8f1c9b58bb7310dcdfad8f8e6..fe9b93402665e287149831fa76f6cd24b93870de 100644 --- a/ecrire/inc/mots.php +++ b/ecrire/inc/mots.php @@ -541,7 +541,7 @@ function afficher_groupe_mots($id_groupe) { $hash = "0x".substr(md5($connect_id_auteur.$jjscript), 0, 16); $tmp_var = substr($hash, 2, 6); - $javascript = "charger_id_url('" . generer_url_ecrire("ajax_page", "fonction=sql&id_ajax_fonc=::id_ajax_fonc::::deb::", true) . "','$tmp_var')"; + $javascript = "charger_id_url('" . generer_url_ecrire("ajax_page", "fonction=sql&id_ajax_fonc=::id_ajax_fonc::::deb::", true) . "','$tmp_var')"; $select = 'id_mot, titre, ' . creer_objet_multi ("titre", $spip_lang); $from = 'spip_mots'; diff --git a/ecrire/inc/presentation.php b/ecrire/inc/presentation.php index f0439538e35e9de8d7aba0b83b8489e92c279282..c01530885d452377f9ae8a2746fc832385df7cc5 100644 --- a/ecrire/inc/presentation.php +++ b/ecrire/inc/presentation.php @@ -413,12 +413,12 @@ function afficher_liste($largeurs, $table, $styles = '') { list(, $largeur) = each($largeurs); if ($styles) list(, $style) = each($styles); if (!trim($texte)) $texte .= " "; - $res .= "<td" . + $res .= "\n<td" . ($largeur ? " width=\"$largeur\"" : '') . ($style ? " class=\"$style\"" : '') . - ">$texte</td>"; + ">$texte\n</td>"; } - $res .= "</tr>\n"; + $res .= "\n</tr>"; } } else { $res = "\n<ul style='text-align: $spip_lang_left;'>"; @@ -436,7 +436,7 @@ function afficher_liste($largeurs, $table, $styles = '') { } $res .= "</li>\n"; } - $res .= "</ul>\n"; + $res .= "\n</ul>"; } return $res; } @@ -449,8 +449,9 @@ function afficher_tranches_requete($num_rows, $colspan, $tmp_var, $javascript=fa $deb_aff = intval(_request($tmp_var)); $ancre++; $self = self(); - $texte = "\n<a name='a$ancre'></a>"; - if ($spip_display != 4) $texte .= "<tr style='background-color: #dddddd;'><td class=\"arial1\" style='border-bottom: 1px solid #444444;' colspan=\"".($colspan - 1)."\">"; + + $texte = ($spip_display == 4) ? '' : "<tr style='background-color: #dddddd;'><td class=\"arial1\" style='border-bottom: 1px solid #444444;' colspan=\"".($colspan - 1)."\">"; + $texte .= "\n<a name='a$ancre'></a>"; for ($i = 0; $i < $num_rows; $i += $nb_aff){ $deb = $i + 1;