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

Ancre inexact pour le retour de forum interne. Et encore un peu de conformité XHTML.

parent 010014c0
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -177,7 +177,7 @@ function ajax_action_auteur($action, $id, $script, $args='', $corps=false, $args ...@@ -177,7 +177,7 @@ function ajax_action_auteur($action, $id, $script, $args='', $corps=false, $args
$action, $action,
"var_ajaxcharset=utf-8&script=$script$args_ajax"); "var_ajaxcharset=utf-8&script=$script$args_ajax");
if ($att) $clic = "\n<div$att>$clic</div>"; if ($att) $clic = "\n<span$att>$clic</span>";
return "<a href='$href'\nonclick=" return "<a href='$href'\nonclick="
. ajax_action_declencheur($ajax, $ancre, $fct_ajax) . ajax_action_declencheur($ajax, $ancre, $fct_ajax)
. ">$clic</a>"; . ">$clic</a>";
......
...@@ -76,9 +76,10 @@ function editer_auteurs_article($id_article, $flag, $cherche_auteur, $ids, $les_ ...@@ -76,9 +76,10 @@ function editer_auteurs_article($id_article, $flag, $cherche_auteur, $ids, $les_
$legender = redirige_action_auteur("legender_auteur","0/$id_article", "articles","id_article=$id_article"); $legender = redirige_action_auteur("legender_auteur","0/$id_article", "articles","id_article=$id_article");
$res = "<div style='width:170px;'><span class='verdana1'><b>" $clic = "<span class='verdana1'><b>$clic</b></span>";
$res = "<div style='width:170px;'>"
. icone_horizontale($clic, $legender, "redacteurs-24.gif", "creer.gif", false) . icone_horizontale($clic, $legender, "redacteurs-24.gif", "creer.gif", false)
. "</b></span></div>\n"; . "</div>\n";
} }
$res = "<div style='float:$spip_lang_right; width:280px;position:relative;display:inline;'>" $res = "<div style='float:$spip_lang_right; width:280px;position:relative;display:inline;'>"
...@@ -187,7 +188,7 @@ function afficher_auteurs_articles($id_article, $flag_editable, $les_auteurs) ...@@ -187,7 +188,7 @@ function afficher_auteurs_articles($id_article, $flag_editable, $les_auteurs)
$largeurs = array('14', '', '', '', '', ''); $largeurs = array('14', '', '', '', '', '');
$styles = array('arial11', 'arial2', 'arial11', 'arial11', 'arial11', 'arial1'); $styles = array('arial11', 'arial2', 'arial11', 'arial11', 'arial11', 'arial1');
return "<div class='liste'><table width='100%' cellpadding='3' cellspacing='0' border='0' background=''>" return "<div class='liste'><table width='100%' cellpadding='3' cellspacing='0' border='0'>"
. afficher_liste($largeurs, $table, $styles) . afficher_liste($largeurs, $table, $styles)
. "</table></div>\n"; . "</table></div>\n";
} }
......
...@@ -133,9 +133,9 @@ function recherche_mot_cle($cherche_mots, $id_groupe, $objet, $id_objet, $table, ...@@ -133,9 +133,9 @@ function recherche_mot_cle($cherche_mots, $id_groupe, $objet, $id_objet, $table,
foreach (split(" *[,;] *", $cherche_mots) as $cherche_mot) { foreach (split(" *[,;] *", $cherche_mots) as $cherche_mot) {
if ($cherche_mot) { if ($cherche_mot) {
$resultat = mots_ressemblants($cherche_mot, $table_mots, $table_ids); $resultat = mots_ressemblants($cherche_mot, $table_mots, $table_ids);
$res .= "<P>" . debut_boite_info(true); $res .= "<p>" . debut_boite_info(true);
if (!$resultat) { if (!$resultat) {
$res .= "<B>"._T('info_non_resultat', array('cherche_mot' => $cherche_mot))."</B><BR>"; $res .= "<b>"._T('info_non_resultat', array('cherche_mot' => $cherche_mot))."</b><br /></p>";
} }
else if (count($resultat) == 1) { else if (count($resultat) == 1) {
$nouveaux_mots[] = $resultat[0]; $nouveaux_mots[] = $resultat[0];
...@@ -224,7 +224,7 @@ function afficher_mots_cles($flag_editable, $objet, $id_objet, $table, $table_id ...@@ -224,7 +224,7 @@ function afficher_mots_cles($flag_editable, $objet, $id_objet, $table, $table_id
$styles = array('arial11', 'arial2', 'arial2', 'arial1'); $styles = array('arial11', 'arial2', 'arial2', 'arial1');
$res = "\n<div class='liste'>" $res = "\n<div class='liste'>"
. "\n<table width='100%' cellpadding='3' cellspacing='0' border='0' background=''>" . "\n<table width='100%' cellpadding='3' cellspacing='0' border='0'>"
. afficher_liste($largeurs, $tableau, $styles) . afficher_liste($largeurs, $tableau, $styles)
. "</table></div>"; . "</table></div>";
} else $res =''; } else $res ='';
......
...@@ -99,7 +99,7 @@ function boutons_controle_forum($id_forum, $forum_stat, $forum_id_auteur=0, $ref ...@@ -99,7 +99,7 @@ function boutons_controle_forum($id_forum, $forum_stat, $forum_id_auteur=0, $ref
$valider = 'publie'; $valider = 'publie';
$valider_repondre = false; $valider_repondre = false;
$supprimer = false; $supprimer = false;
$controle = "<br /><FONT COLOR='red'><B>"._T('info_message_supprime')." $forum_ip</B></FONT>"; $controle = "<br /><font color='red'><b>"._T('info_message_supprime')." $forum_ip</b></font>";
if($forum_id_auteur) if($forum_id_auteur)
$controle .= " - <a href='" . generer_url_ecrire('auteurs_edit', "id_auteur=$forum_id_auteur") . $controle .= " - <a href='" . generer_url_ecrire('auteurs_edit', "id_auteur=$forum_id_auteur") .
"'>" ._T('lien_voir_auteur'). "</a>"; "'>" ._T('lien_voir_auteur'). "</a>";
......
...@@ -152,7 +152,7 @@ else { ...@@ -152,7 +152,7 @@ else {
. "<font color='red'>("._T('texte_plus_trois_car').")</font> :<br />\n" . "<font color='red'>("._T('texte_plus_trois_car').")</font> :<br />\n"
. "<input type='text' name='new_login' class='formo' value=\"".entites_html($auteur['login'])."\" size='40' /><p>\n"; . "<input type='text' name='new_login' class='formo' value=\"".entites_html($auteur['login'])."\" size='40' /><p>\n";
} else { } else {
$corps .= "<fieldset style='padding:5'><legend><B>"._T('item_login')."</B><br />\n</legend><br><b>".$auteur['login']."</b> " $corps .= "<fieldset style='padding:5'><legend><b>"._T('item_login')."</b><br />\n</legend><br /><b>".$auteur['login']."</b> "
. "<i> ("._T('info_non_modifiable').")</i>\n<p>"; . "<i> ("._T('info_non_modifiable').")</i>\n<p>";
} }
......
...@@ -122,7 +122,7 @@ function affiche_mots_ressemblant($cherche_mot, $objet, $id_objet, $resultat, $t ...@@ -122,7 +122,7 @@ function affiche_mots_ressemblant($cherche_mot, $objet, $id_objet, $resultat, $t
$res .="<li>" $res .="<li>"
. ajax_action_auteur('editer_mot', "$id_objet,,$table,$table_id,$objet,$id_mot", $url_base, "$table_id=$id_objet", array(typo($titre_mot),' title="' . _T('info_ajouter_mot') .'"'),"&id_objet=$id_objet&objet=$objet") ; . ajax_action_auteur('editer_mot', "$id_objet,,$table,$table_id,$objet,$id_mot", $url_base, "$table_id=$id_objet", array(typo($titre_mot),' title="' . _T('info_ajouter_mot') .'"'),"&id_objet=$id_objet&objet=$objet") ;
if (strlen($descriptif_mot) > 1) { if (strlen($descriptif_mot) > 1) {
$res .= "<FONT SIZE=1>".propre(couper($descriptif_mot, 100))."</FONT><br />\n"; $res .= "<font size='1'>".propre(couper($descriptif_mot, 100))."</font><br />\n";
} }
$res .="</li>\n"; $res .="</li>\n";
} }
......
...@@ -310,17 +310,17 @@ function bandeau_titre_boite($titre, $afficher_auteurs, $boite_importante = true ...@@ -310,17 +310,17 @@ function bandeau_titre_boite($titre, $afficher_auteurs, $boite_importante = true
$couleur_fond = '#EEEECC'; $couleur_fond = '#EEEECC';
$couleur_texte = '#000000'; $couleur_texte = '#000000';
} }
echo "<tr bgcolor='$couleur_fond'><td width=\"100%\"><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3 COLOR='$couleur_texte'>"; echo "<tr bgcolor='$couleur_fond'><td width=\"100%\"><font face='Verdana,Arial,Sans,sans-serif' size='3' color='$couleur_texte'>";
echo "<B>$titre</B></FONT></TD>"; echo "<b>$titre</b></font></td>";
if ($afficher_auteurs){ if ($afficher_auteurs){
echo "<TD WIDTH='100'>"; echo "<td width='100'>";
echo http_img_pack("rien.gif", " ", "width='100' height='12'"); echo http_img_pack("rien.gif", " ", "width='100' height='12'");
echo "</TD>"; echo "</td>";
} }
echo "<TD WIDTH='90'>"; echo "<td width='90'>";
echo http_img_pack("rien.gif", " ", "width='90' height='12'"); echo http_img_pack("rien.gif", " ", "width='90' height='12'");
echo "</TD>"; echo "</td>";
echo "</TR>"; echo "</tr>";
} }
// //
// une autre boite // une autre boite
...@@ -476,7 +476,7 @@ function afficher_tranches_requete($num_rows, $colspan, $tmp_var, $url='', $nb_a ...@@ -476,7 +476,7 @@ function afficher_tranches_requete($num_rows, $colspan, $tmp_var, $url='', $nb_a
} }
if ($deb_aff == -1) { if ($deb_aff == -1) {
//$texte .= "<B>"._T('info_tout_afficher')."</B>"; //$texte .= "<b>"._T('info_tout_afficher')."</b>";
} else { } else {
$script = parametre_url($self, $tmp_var, -1); $script = parametre_url($self, $tmp_var, -1);
if ($url) { if ($url) {
...@@ -1199,7 +1199,7 @@ function afficher_forum_thread($row, $controle_id_article, $compteur_forum, $nb_ ...@@ -1199,7 +1199,7 @@ function afficher_forum_thread($row, $controle_id_article, $compteur_forum, $nb_
$ip=$row["ip"]; $ip=$row["ip"];
$id_auteur=$row["id_auteur"]; $id_auteur=$row["id_auteur"];
$res = "<a id='$id_forum'></a>"; $res = "<a id='id$id_forum'></a>";
if ($spip_display == 4) { if ($spip_display == 4) {
$res .= "<li>".typo($titre)."<br />"; $res .= "<li>".typo($titre)."<br />";
...@@ -1789,7 +1789,7 @@ function icone_horizontale($texte, $lien, $fond = "", $fonction = "", $echo = tr ...@@ -1789,7 +1789,7 @@ function icone_horizontale($texte, $lien, $fond = "", $fonction = "", $echo = tr
. "</a></td></tr></table>\n"; . "</a></td></tr></table>\n";
} }
else { else {
$retour .= "<a class='cellule-h-texte' $javascript$lien><div>$texte</div></a>\n"; $retour .= "<div><a class='cellule-h-texte' $javascript$lien>$texte</a></div>\n";
} }
if ($fonction == "supprimer.gif") if ($fonction == "supprimer.gif")
$retour = "\n<div class='danger'>$retour</div>"; $retour = "\n<div class='danger'>$retour</div>";
...@@ -1898,11 +1898,11 @@ function init_body($rubrique='accueil', $sous_rubrique='accueil', $load='', $id_ ...@@ -1898,11 +1898,11 @@ function init_body($rubrique='accueil', $sous_rubrique='accueil', $load='', $id_
if ($spip_display == "4") { if ($spip_display == "4") {
echo "<ul>"; echo "<ul>";
echo "<li><a href='./'>"._T('icone_a_suivre')."</a>"; echo "<li><a href='./'>"._T('icone_a_suivre')."</a></li>";
echo "<li><a href='" . generer_url_ecrire("naviguer") . "'>"._T('icone_edition_site')."</a>"; echo "<li><a href='" . generer_url_ecrire("naviguer") . "'>"._T('icone_edition_site')."</a></li>";
echo "<li><a href='" . generer_url_ecrire("forum"). "'>"._T('titre_forum')."</a>"; echo "<li><a href='" . generer_url_ecrire("forum"). "'>"._T('titre_forum')."</a></li>";
echo "<li><a href='" . generer_url_ecrire("auteurs") . "'>"._T('icone_auteurs')."</a>"; echo "<li><a href='" . generer_url_ecrire("auteurs") . "'>"._T('icone_auteurs')."</a></li>";
echo "<li><a href=\"".url_de_base()."\">"._T('icone_visiter_site')."</a>"; echo "<li><a href=\"".url_de_base()."\">"._T('icone_visiter_site')."</a></li>";
echo "</ul>"; echo "</ul>";
return; return;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter