Update of /home/spip-cvs/spip/ecrire
In directory alan:/tmp/cvs-serv21228
Modified Files:
articles.php3 inc_mots.php3
Log Message:
Modif presentation des articles
Index: articles.php3
RCS file: /home/spip-cvs/spip/ecrire/articles.php3,v
retrieving revision 1.168
retrieving revision 1.169
diff -u -d -r1.168 -r1.169
--- a/articles.php3 2 Jun 2004 20:46:34 -0000 1.168
+++ b/articles.php3 3 Jun 2004 12:24:08 -0000 1.169
@@ -670,26 +670,6 @@
}
-
-
-//
-// Afficher les raccourcis
-//
-
-debut_raccourcis();
-
-icone_horizontale(_T('icone_tous_articles'), "articles_page.php3", "article-24.gif");
-if ($connect_statut == '0minirezo' AND acces_rubrique($rubrique_article) AND $options == "avancees") {
- $retour = urlencode($clean_link->getUrl());
- icone_horizontale(_T('icone_creer_auteur'), "auteur_infos.php3?new=oui&ajouter_id_article=$id_article&redirect=$retour", "redacteurs-24.gif", "creer.gif");
- $articles_mots = lire_meta('articles_mots');
- if ($articles_mots != "non")
- icone_horizontale(_T('icone_creer_mot_cle'), "mots_edit.php3?new=oui&ajouter_id_article=$id_article&redirect=$retour", "mot-cle-24.gif", "creer.gif");
-}
-
-fin_raccourcis();
-
-
//////////////////////////////////////////////////////
// Affichage de la colonne de droite
//
@@ -844,7 +824,7 @@
echo "</tr></table>\n";
-
+echo "<div> </div>";
echo "<div class='serif' align='left'>";
//
@@ -852,17 +832,20 @@
//
if ($flag_editable AND $options == 'avancees') {
- debut_cadre_enfonce();
+ debut_cadre_couleur();
- echo "<FORM ACTION='articles.php3' METHOD='GET'>";
+ echo "<FORM ACTION='articles.php3' METHOD='GET' style='margin: 0px; padding: 0px;'>";
echo "<INPUT TYPE='hidden' NAME='id_article' VALUE='$id_article'>";
if ($statut_article == 'publie') {
- echo "<TABLE CELLPADDING=5 CELLSPACING=0 BORDER=0 WIDTH=100% BACKGROUND=''>";
- echo "<TR><TD BGCOLOR='$couleur_foncee' COLSPAN=2><FONT SIZE=1 COLOR='#FFFFFF'><B>"._T('texte_date_publication_article');
- echo aide ("artdate");
- echo "</B></FONT></TD></TR>";
- echo "<TR><TD ALIGN='center'>";
+
+ echo "<div><b>";
+ echo bouton_block_invisible("datepub");
+ echo "<span class='verdana1'>"._T('texte_date_publication_article').'</span> ';
+ echo majuscules(affdate($date))."</b>".aide('artdate')."</div>";
+
+ echo debut_block_invisible("datepub");
+ echo "<div style='margin: 5px; margin-$spip_lang_left: 20px;'>";
echo "<SELECT NAME='jour' SIZE=1 CLASS='fondl'>";
afficher_jour($jour);
echo "</SELECT> ";
@@ -872,26 +855,27 @@
echo "<SELECT NAME='annee' SIZE=1 CLASS='fondl'>";
afficher_annee($annee);
echo "</SELECT>";
-
- echo "</TD><TD ALIGN='right'>";
- echo "<INPUT TYPE='submit' NAME='Changer' CLASS='fondo' VALUE='"._T('bouton_changer')."'>";
- echo "</TD></TR></TABLE>";
+ echo " <INPUT TYPE='submit' NAME='Changer' CLASS='fondo' VALUE='"._T('bouton_changer')."'>";
+ echo "</div>";
+ echo fin_block();
}
else {
- echo "<TABLE CELLPADDING=5 CELLSPACING=0 BORDER=0 WIDTH=100% BACKGROUND=''>";
- echo "<TR><TD BGCOLOR='$couleur_foncee'><FONT SIZE=1 COLOR='#FFFFFF' face='Verdana,Arial,Sans,sans-serif'><b>"._T('texte_date_creation_article').' ';
- echo majuscules(affdate($date))."</font></B></FONT>".aide('artdate')."</TD></TR>";
- echo "</TABLE>";
+ echo "<div><b> <span class='verdana1'>"._T('texte_date_creation_article').'</span> ';
+ echo majuscules(affdate($date))."</b>".aide('artdate')."</div>";
}
if (($options == 'avancees' AND $articles_redac != 'non') OR ($annee_redac.'-'.$mois_redac.'-'.$jour_redac != '0000-00-00')) {
- echo '<p><table cellpadding="5" cellspacing="0" border="0" width="100%">';
- echo '<tr><td bgcolor="#cccccc" colspan="2"><font size="1" color="#000000" face="Verdana,Arial,Sans,sans-serif">';
- if ($annee_redac.'-'.$mois_redac.'-'.$jour_redac != '0000-00-00') $date_affichee = ' : '.majuscules(affdate($date_redac));
+ if ($annee_redac.'-'.$mois_redac.'-'.$jour_redac != '0000-00-00') $date_affichee = affdate($date_redac);
+ else $date_affichee = _T('jour_non_connu_nc');
+
+ echo "<div><b>";
echo bouton_block_invisible('dateredac');
- echo "<b>"._T('texte_date_publication_anterieure').$date_affichee."</b></font></td></tr></table>";
+ echo "<span class='verdana1'>"._T('texte_date_publication_anterieure').'</span> '.majuscules($date_affichee)." ".aide('artdate_redac')."</b></div>";
+
+
echo debut_block_invisible('dateredac');
- echo '<table cellpadding="5" cellspacing="0" border="0" width="100%">';
+ echo "<div style='margin: 5px; margin-$spip_lang_left: 20px;'>";
+ echo '<table cellpadding="0" cellspacing="0" border="0" width="100%">';
echo '<tr><td align="left">';
echo '<input type="radio" name="avec_redac" value="non" id="avec_redac_on"';
if ($annee_redac.'-'.$mois_redac.'-'.$jour_redac == '0000-00-00') echo ' checked="checked"';
@@ -910,18 +894,31 @@
echo '</td><td align="right">';
echo '<input type="submit" name="Changer" class="fondo" value="'._T('bouton_changer').'" />';
- echo aide('artdate_redac');
echo '</td></tr>';
echo '</table>';
+ echo "</div>";
echo fin_block();
}
echo "</FORM>";
- fin_cadre_enfonce();
+ fin_cadre_couleur();
}
+else {
+ if ($statut_article == 'publie') $texte_date = _T('texte_date_publication_article');
+ else $texte_date = _T('texte_date_creation_article');
-else if ($statut_article == 'publie') {
- echo "<CENTER>".affdate($date)."</CENTER><P>";
+ debut_cadre_couleur();
+ echo "<div style='text-align:center;'><b> <span class='verdana1'>$texte_date</span> ";
+ echo majuscules(affdate($date))."</b>".aide('artdate')."</div>";
+
+
+ if ($annee_redac.'-'.$mois_redac.'-'.$jour_redac != '0000-00-00') {
+ $date_affichee = ' : '.majuscules(affdate($date_redac));
+ echo "<div style='text-align:center;'><b> <span class='verdana1'>"._T(texte_date_publication_anterieure)."</span> ";
+ echo $date_affichee."</b>".aide('artdate_redac')."</div>";
+ }
+
+ fin_cadre_couleur();
}
@@ -931,15 +928,13 @@
//
echo "<a name='auteurs'></a>";
-debut_cadre_enfonce("redacteurs-24.gif");
-echo "<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=3 WIDTH=100% BACKGROUND=''><TR><TD BGCOLOR='#EEEECC' class='serif2'>";
if ($flag_editable AND $options == 'avancees') {
- echo bouton_block_invisible("auteursarticle");
+ $bouton = bouton_block_invisible("auteursarticle");
}
-echo "<B>"._T('texte_auteurs')."</B>";
-echo aide ("artauteurs");
-echo "</TD></TR></TABLE>";
+
+debut_cadre_enfonce("redacteurs-24.gif", false, "", $bouton._T('texte_auteurs').aide ("artauteurs"));
+
////////////////////////////////////////////////////
@@ -1066,10 +1061,11 @@
$result = spip_query($query);
if (spip_num_rows($result)) {
- $ifond = 0;
-
- echo "\n<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=3 WIDTH=100% BACKGROUND=''>\n";
+ echo "<div class='liste'>";
+ echo "<table width='100%' cellpadding='3' cellspacing='0' border='0' background=''>";
+ $table = '';
while ($row = spip_fetch_array($result)) {
+ $vals = '';
$id_auteur = $row["id_auteur"];
$nom_auteur = $row["nom"];
$email_auteur = $row["email"];
@@ -1092,50 +1088,42 @@
if ($result2) list($nombre_articles) = spip_fetch_row($result2);
else $nombre_articles = 0;
- $ifond = $ifond ^ 1;
- $couleur = ($ifond) ? '#FFFFFF' : $couleur_claire;
-
$url_auteur = "auteurs_edit.php3?id_auteur=$id_auteur";
- echo "<TR BGCOLOR='$couleur' WIDTH=\"100%\">";
- echo "<TD WIDTH='20'>";
- echo bonhomme_statut($row);
- echo "</TD>\n";
+ $vals[] = bonhomme_statut($row);
- echo "<TD CLASS='arial2'>";
- echo "<A HREF=\"$url_auteur\"$bio_auteur>".typo($nom_auteur)."</A>";
- echo "</TD>\n";
+ $vals[] = "<A HREF=\"$url_auteur\"$bio_auteur>".typo($nom_auteur)."</A>";
- echo "<TD CLASS='arial2'>";
- echo bouton_imessage($id_auteur)." ";
- echo "</TD>\n";
+ $vals[] = bouton_imessage($id_auteur);
- echo « <TD CLASS=‹ arial2 ›> »;
- if ($email_auteur) echo « <A HREF=‹ mailto:$email_auteur ›> »._T(‹ email ›)."</A>";
- else echo « »;
- echo « </TD>\n »;
+
+
+ if ($email_auteur) $vals[] = « <A HREF=‹ mailto:$email_auteur ›> »._T(‹ email ›)."</A>";
+ else $vals[] = « »;
- echo "<TD CLASS='arial2'>";
- if ($url_site_auteur) echo "<A HREF='$url_site_auteur'>"._T('info_site_min')."</A>";
- else echo " ";
- echo "</TD>\n";
+ if ($url_site_auteur) $vals[] = "<A HREF='$url_site_auteur'>"._T('info_site_min')."</A>";
+ else $vals[] = " ";
- echo "<TD CLASS='arial2' ALIGN='right'>";
- if ($nombre_articles > 1) echo $nombre_articles.' '._T('info_article_2');
- else if ($nombre_articles == 1) echo _T('info_1_article');
- else echo " ";
- echo "</TD>\n";
+ if ($nombre_articles > 1) $vals[] = $nombre_articles.' '._T('info_article_2');
+ else if ($nombre_articles == 1) $vals[] = _T('info_1_article');
+ else $vals[] = " ";
- echo "<TD CLASS='arial1' align='right'>";
if ($flag_editable AND ($connect_id_auteur != $id_auteur OR $connect_statut == '0minirezo') AND $options == 'avancees') {
- echo "<A HREF='articles.php3?id_article=$id_article&supp_auteur=$id_auteur#auteurs'>"._T('lien_retirer_auteur')." <img src='img_pack/croix-rouge.gif' alt='X' width='7' height='7' border='0' align='middle'></A>";
+ $vals[] = "<A HREF='articles.php3?id_article=$id_article&supp_auteur=$id_auteur#auteurs'>"._T('lien_retirer_auteur')." <img src='img_pack/croix-rouge.gif' alt='X' width='7' height='7' border='0' align='middle'></A>";
+ } else {
+ $vals[] = "";
}
- else echo " ";
- echo "</TD>\n";
-
- echo "</TR>\n";
+
+ $table[] = $vals;
}
- echo "</TABLE>\n";
+
+
+ $largeurs = array('14', '', '', '', '', '', '');
+ $styles = array('arial11', 'arial2', 'arial11', 'arial11', 'arial11', 'arial11', 'arial1');
+ afficher_liste($largeurs, $table, $styles);
+
+
+ echo "</table></div>\n";
$les_auteurs = join(',', $les_auteurs);
}
@@ -1152,11 +1140,23 @@
if ($les_auteurs) $query .= "id_auteur NOT IN ($les_auteurs) AND ";
$query .= "statut!='5poubelle' AND statut!='6forum' AND statut!='nouveau' ORDER BY statut, nom";
$result = spip_query($query);
-
+
+ echo "<table width='100%'>";
+ echo "<tr>";
+ if ($connect_statut == '0minirezo' AND acces_rubrique($rubrique_article) AND $options == "avancees") {
+ echo "<td width='200'>";
+ $retour = urlencode($clean_link->getUrl());
+ icone_horizontale(_T('icone_creer_auteur'), "auteur_infos.php3?new=oui&ajouter_id_article=$id_article&redirect=$retour", "redacteurs-24.gif", "creer.gif");
+ echo "</td>";
+ }
+
+ echo "<td>";
+
+
if (spip_num_rows($result) > 0) {
echo "<FORM ACTION='articles.php3?id_article=$id_article#auteurs' METHOD='post'>";
- echo "<DIV align=right><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=2><B>"._T('titre_cadre_ajouter_auteur')." </B></FONT>\n";
- echo "<INPUT TYPE='Hidden' NAME='id_article' VALUE=\"$id_article\">";
+ echo "<span class='verdana1'><B>"._T('titre_cadre_ajouter_auteur')." </B></span>\n";
+ echo "<DIV><INPUT TYPE='Hidden' NAME='id_article' VALUE=\"$id_article\">";
if (spip_num_rows($result) > 80 AND $flag_mots_ressemblants) {
echo "<INPUT TYPE='text' NAME='cherche_auteur' CLASS='fondl' VALUE='' SIZE='20'>";
@@ -1206,6 +1206,8 @@
}
echo "</div></FORM>";
}
+
+ echo "</td></tr></table>";
echo fin_block();
Index: inc_mots.php3
RCS file: /home/spip-cvs/spip/ecrire/inc_mots.php3,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- a/inc_mots.php3 11 Apr 2004 00:40:14 -0000 1.30
+++ b/inc_mots.php3 3 Jun 2004 12:24:10 -0000 1.31
@@ -75,8 +75,8 @@
function formulaire_mots($table, $id_objet, $nouv_mot, $supp_mot, $cherche_mot, $flag_editable) {
global $flag_mots_ressemblants;
- global $connect_statut;
- global $spip_lang_rtl;
+ global $connect_statut, $options;
+ global $spip_lang_rtl, $spip_lang_right;
$select_groupe = $GLOBALS['select_groupe'];
if ($table == 'articles') {
@@ -106,18 +106,13 @@
if (!$nombre_mots AND (!$nombre_groupes OR !$flag_editable)) return;
echo "<a name='mots'></a>";
- debut_cadre_enfonce("mot-cle-24.gif");
-
- echo "<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=3 WIDTH=100% BACKGROUND=''><TR><TD BGCOLOR='#EEEECC' class='serif2'>";
if ($flag_editable){
if ($nouv_mot.$cherche_mot.$supp_mot)
- echo bouton_block_visible("lesmots");
+ $bouton = bouton_block_visible("lesmots");
else
- echo bouton_block_invisible("lesmots");
+ $bouton = bouton_block_invisible("lesmots");
}
- echo "<B>"._T('titre_mots_cles')."</B>";
- echo aide ("artmots");
- echo "</td></tr></TABLE>";
+ debut_cadre_enfonce("mot-cle-24.gif", false, "", $bouton._T('titre_mots_cles').aide ("artmots"));
//////////////////////////////////////////////////////
// Recherche de mot-cle
@@ -240,98 +235,106 @@
$query = "SELECT mots.* FROM spip_mots AS mots, spip_mots_$table AS lien WHERE lien.$id_table=$id_objet AND mots.id_mot=lien.id_mot ORDER BY mots.type, mots.titre";
$result = spip_query($query);
- echo "<table border=0 cellspacing=0 cellpadding=2 width=100% background=''>";
-
- $ifond=0;
-
- while ($row = spip_fetch_array($result)) {
- $id_mot = $row['id_mot'];
- $titre_mot = $row['titre'];
- $type_mot = $row['type'];
- $descriptif_mot = $row['descriptif'];
- $id_groupe = $row['id_groupe'];
-
- $query_groupe = "SELECT * FROM spip_groupes_mots WHERE id_groupe = $id_groupe";
- $result_groupe = spip_query($query_groupe);
- while($row_groupe = spip_fetch_array($result_groupe)) {
- $id_groupe = $row_groupe['id_groupe'];
- $titre_groupe = entites_html($row_groupe['titre']);
- $unseul = $row_groupe['unseul'];
- $obligatoire = $row_groupe['obligatoire'];
- $acces_admin = $row_groupe['0minirezo'];
- $acces_redacteur = $row_groupe['1comite'];
-
- $flag_groupe = ($flag_editable AND (($connect_statut == '1comite' AND $acces_redacteur == 'oui') OR ($connect_statut == '0minirezo' AND $acces_admin == 'oui')));
- }
-
- $groupes_vus[$id_groupe] = true;
- $id_groupes_vus[] = $id_groupe;
-
- if ($ifond==0){
- $ifond=1;
- $couleur="#FFFFFF";
- }else{
- $ifond=0;
- $couleur="#EDF3FE";
- }
-
- $url = "mots_edit.php3?id_mot=$id_mot&redirect=".rawurlencode($url_base.'#mots');
-
- echo "<TR WIDTH=\"100%\">";
- echo "<TD BGCOLOR='$couleur'>";
- echo "<A HREF='$url'><img src='img_pack/petite-cle.gif' alt='' width='23' height='12' border='0'></A>";
- echo "</TD>";
- echo "<TD BGCOLOR='$couleur' width='100%' CLASS='arial2'>";
-
-
- // Changer
- if ($unseul == "oui" AND $flag_groupe) {
- echo "<form action='$url_base#mots' method='post' style='margin:0px; padding: 0px'>";
- echo "<INPUT TYPE='Hidden' NAME='$id_table' VALUE='$id_objet'>";
- if ($table == 'rubriques') echo "<INPUT TYPE='Hidden' NAME='coll' VALUE='$id_objet'>";
- echo "<select name='nouv_mot' CLASS='fondl' STYLE='font-size:10px; width:90px;'>";
-
- $query_autres_mots = "SELECT * FROM spip_mots WHERE id_groupe = $id_groupe";
- $result_autres_mots = spip_query($query_autres_mots);
- while ($row_autres = spip_fetch_array($result_autres_mots)) {
- $le_mot = $row_autres['id_mot'];
- $le_titre_mot = supprimer_tags(typo($row_autres['titre']));
-
- if ($le_mot == $id_mot) $selected = "SELECTED";
- else $selected = "";
- echo "<option value='$le_mot' $selected> $le_titre_mot";
+ if (spip_num_rows($result) > 0) {
+ echo "<div class='liste'>";
+ echo "<table width='100%' cellpadding='3' cellspacing='0' border='0' background=''>";
+
+ $ifond=0;
+
+ $tableau= '';
+ while ($row = spip_fetch_array($result)) {
+ $vals = '';
+
+ $id_mot = $row['id_mot'];
+ $titre_mot = $row['titre'];
+ $type_mot = $row['type'];
+ $descriptif_mot = $row['descriptif'];
+ $id_groupe = $row['id_groupe'];
+
+ $query_groupe = "SELECT * FROM spip_groupes_mots WHERE id_groupe = $id_groupe";
+ $result_groupe = spip_query($query_groupe);
+ while($row_groupe = spip_fetch_array($result_groupe)) {
+ $id_groupe = $row_groupe['id_groupe'];
+ $titre_groupe = entites_html($row_groupe['titre']);
+ $unseul = $row_groupe['unseul'];
+ $obligatoire = $row_groupe['obligatoire'];
+ $acces_admin = $row_groupe['0minirezo'];
+ $acces_redacteur = $row_groupe['1comite'];
+
+ $flag_groupe = ($flag_editable AND (($connect_statut == '1comite' AND $acces_redacteur == 'oui') OR ($connect_statut == '0minirezo' AND $acces_admin == 'oui')));
}
- echo "</select>";
- echo "<INPUT TYPE='Hidden' NAME='supp_mot' VALUE='$id_mot'>";
- echo " <INPUT TYPE='submit' NAME='Choisir' VALUE='"._T('bouton_changer')."' CLASS='fondo' style='font-size: 10px';>";
- echo "</form>";
-
- } else {
- echo "<A HREF='$url'>".typo($titre_mot)."</A>";
- }
- echo "</TD>";
-
- echo "<TD ALIGN='right' BGCOLOR='$couleur' ALIGN='right' CLASS='arial2'>";
- echo "$type_mot";
- echo "</TD>";
-
- if ($flag_editable){
- echo "<TD BGCOLOR='$couleur' ALIGN='right' CLASS='arial1'>";
- if ($flag_groupe)
- echo "<A HREF=\"$url_base&supp_mot=$id_mot#mots\">"._T('info_retirer_mot')." <img src='img_pack/croix-rouge.gif' alt='X' width='7' height='7' border='0' align='middle'></A>";
- else echo " ";
- echo "</TD>";
+
+ $groupes_vus[$id_groupe] = true;
+ $id_groupes_vus[] = $id_groupe;
+
+ if ($ifond==0){
+ $ifond=1;
+ $couleur="#FFFFFF";
+ }else{
+ $ifond=0;
+ $couleur="#EDF3FE";
+ }
+
+ $url = "mots_edit.php3?id_mot=$id_mot&redirect=".rawurlencode($url_base.'#mots');
+
+ $vals[] = "<A HREF='$url'><img src='img_pack/petite-cle.gif' alt='' width='23' height='12' border='0'></A>";
+
+
+ // Changer
+ if ($unseul == "oui" AND $flag_groupe) {
+ $s = "<form action='$url_base#mots' method='post' style='margin:0px; padding: 0px'>";
+ $s .= "<INPUT TYPE='Hidden' NAME='$id_table' VALUE='$id_objet'>";
+ if ($table == 'rubriques') $s .= "<INPUT TYPE='Hidden' NAME='coll' VALUE='$id_objet'>";
+ $s .= "<select name='nouv_mot' CLASS='fondl' STYLE='font-size:10px; width:90px;'>";
+
+ $query_autres_mots = "SELECT * FROM spip_mots WHERE id_groupe = $id_groupe";
+ $result_autres_mots = spip_query($query_autres_mots);
+ while ($row_autres = spip_fetch_array($result_autres_mots)) {
+ $le_mot = $row_autres['id_mot'];
+ $le_titre_mot = supprimer_tags(typo($row_autres['titre']));
+
+ if ($le_mot == $id_mot) $selected = "SELECTED";
+ else $selected = "";
+ $s .= "<option value='$le_mot' $selected> $le_titre_mot";
+ }
+ $s .= "</select>";
+ $s .= "<INPUT TYPE='Hidden' NAME='supp_mot' VALUE='$id_mot'>";
+ $s .= " <INPUT TYPE='submit' NAME='Choisir' VALUE='"._T('bouton_changer')."' CLASS='fondo' style='font-size: 10px';>";
+ $s .= "</form>";
+
+ } else {
+ $s = "<A HREF='$url'>".typo($titre_mot)."</A>";
+ }
+ $vals[] = $s;
+
+ $vals[] = "$type_mot";
+
+ if ($flag_editable){
+ $s = "";
+ if ($flag_groupe)
+ $s .= "<A HREF=\"$url_base&supp_mot=$id_mot#mots\">"._T('info_retirer_mot')." <img src='img_pack/croix-rouge.gif' alt='X' width='7' height='7' border='0' align='middle'></A>";
+ else $s .= " ";
+ }
+ $vals[] = $s;
+
+ $tableau[] = $vals;
+
+ $les_mots[] = $id_mot;
}
- echo "</TR>\n";
-
- $les_mots[] = $id_mot;
+
+ $largeurs = array('25', '', '', '');
+ $styles = array('arial11', 'arial2', 'arial2', 'arial1');
+ afficher_liste($largeurs, $tableau, $styles);
+
+
+ echo "</table></div>";
}
- echo "<tr><td></td><td></td><td><img src='img_pack/rien.gif' width=100 height=1></td><td><img src='img_pack/rien.gif' width=90 height=1></td></tr>";
- echo "</TABLE>";
if ($les_mots) {
$nombre_mots_associes = count($les_mots);
$les_mots = join($les_mots, ",");
+ } else {
+ $les_mots = "0";
}
if ($id_groupes_vus) $id_groupes_vus = join($id_groupes_vus, ",");
else $id_groupes_vus = "0";
@@ -364,19 +367,22 @@
echo "</div><br />\n";
}
+
$form_mot = "<FORM ACTION='$url_base#mots' METHOD='post' STYLE='margin:1px;'>"
."<INPUT TYPE='Hidden' NAME='$id_table' VALUE='$id_objet'>";
if ($table == 'rubriques') $form_mot .= "<INPUT TYPE='Hidden' NAME='coll' VALUE='$id_objet'>";
- $message_ajouter_mot = "<FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=2><B>"._T('titre_ajouter_mot_cle')."</B></FONT> \n";
- echo "<table border='0' align='right' style='white-space: nowrap'>";
+ $message_ajouter_mot = "<span class='verdana1'><B>"._T('titre_ajouter_mot_cle')."</B></span> \n";
+
+ echo "<table border='0' width='100%' style='text-align: $spip_lang_right'>";
$query_groupes = "SELECT * FROM spip_groupes_mots WHERE $table = 'oui' AND $connect_statut = 'oui' AND (unseul != 'oui' OR (unseul = 'oui' AND id_groupe NOT IN ($id_groupes_vus))) ORDER BY titre";
$result_groupes = spip_query($query_groupes);
// Afficher un menu par groupe de mots
+
while ($row_groupes = spip_fetch_array($result_groupes)) {
$id_groupe = $row_groupes['id_groupe'];
$titre_groupe = entites_html($row_groupes['titre']);
@@ -389,7 +395,7 @@
$acces_minirezo = $row_groupes['0minirezo'];
$acces_comite = $row_groupes['1comite'];
$acces_forum = $row_groupes['6forum'];
-
+
$query = "SELECT * FROM spip_mots WHERE id_groupe = '$id_groupe' ";
if ($les_mots) $query .= "AND id_mot NOT IN ($les_mots) ";
$query .= "ORDER BY type, titre";
@@ -450,6 +456,17 @@
}
}
}
+
+ if ($table == 'articles' AND $connect_statut == '0minirezo' AND $flag_editable AND $options == "avancees") {
+ echo "<tr><td></td><td colspan='2'>";
+ echo "<div style='width: 200px;'>";
+ icone_horizontale(_T('icone_creer_mot_cle'), "mots_edit.php3?new=oui&ajouter_id_article=$id_article&redirect=$retour", "mot-cle-24.gif", "creer.gif");
+ echo "</div> ";
+ echo "</td></tr>";
+ }
+
+
+
echo "</table>";
echo fin_block();
}