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

Scories

parent 1b391b37
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -20,7 +20,7 @@ include_spip('inc/date'); ...@@ -20,7 +20,7 @@ include_spip('inc/date');
include_spip('inc/documents'); include_spip('inc/documents');
include_spip('inc/forum'); include_spip('inc/forum');
include_spip('inc/petition'); include_spip('inc/petition');
include_spip('inc/virtualite'); include_spip('inc/ajax_virtualiser');
include_spip('base/abstract_sql'); include_spip('base/abstract_sql');
function exec_articles_dist() function exec_articles_dist()
...@@ -115,8 +115,6 @@ function exec_articles_dist() ...@@ -115,8 +115,6 @@ function exec_articles_dist()
fin_grand_cadre(); fin_grand_cadre();
if (!$row) {echo $titre; exit;}
// //
// Affichage de la colonne de gauche // Affichage de la colonne de gauche
// //
...@@ -407,6 +405,7 @@ function boites_de_config_articles($id_article) ...@@ -407,6 +405,7 @@ function boites_de_config_articles($id_article)
function boite_article_virtuel($id_article, $virtuel) function boite_article_virtuel($id_article, $virtuel)
{ {
debut_cadre_relief("site-24.gif"); debut_cadre_relief("site-24.gif");
echo "\n<div class='verdana1' style='text-align: center;'>"; echo "\n<div class='verdana1' style='text-align: center;'>";
......
...@@ -284,7 +284,6 @@ function afficher_mots_cles($flag_editable, $id_objet, $table, $table_id, $url_b ...@@ -284,7 +284,6 @@ function afficher_mots_cles($flag_editable, $id_objet, $table, $table_id, $url_b
$descriptif_mot = $row['descriptif']; $descriptif_mot = $row['descriptif'];
$id_groupe = $row['id_groupe']; $id_groupe = $row['id_groupe'];
$groupes_vus[$id_groupe] = true;
$id_groupes_vus[] = $id_groupe; $id_groupes_vus[] = $id_groupe;
$url = generer_url_ecrire('mots_edit', "id_mot=$id_mot&redirect=$ret"); $url = generer_url_ecrire('mots_edit', "id_mot=$id_mot&redirect=$ret");
$vals= array("<A href='$url'>$cle</A>"); $vals= array("<A href='$url'>$cle</A>");
...@@ -408,7 +407,7 @@ function formulaire_mots_cles($id_groupes_vus, $id_objet, $les_mots, $table, $ta ...@@ -408,7 +407,7 @@ function formulaire_mots_cles($id_groupes_vus, $id_objet, $les_mots, $table, $ta
$res .= "<table border='0' width='100%' style='text-align: $spip_lang_right'>"; $res .= "<table border='0' width='100%' style='text-align: $spip_lang_right'>";
while ($row_groupes = spip_fetch_array($result_groupes)) { while ($row_groupes = spip_fetch_array($result_groupes)) {
$g = menu_mots($row_groupes, $groupes_vus, $les_mots); $g = menu_mots($row_groupes, $id_groupes_vus, $les_mots);
if ($g) { if ($g) {
$res .= "$form_mot\n<tr><td>$message</td>\n<td>$g</td></tr></form>\n"; $res .= "$form_mot\n<tr><td>$message</td>\n<td>$g</td></tr></form>\n";
$message = ""; $message = "";
...@@ -426,7 +425,7 @@ function formulaire_mots_cles($id_groupes_vus, $id_objet, $les_mots, $table, $ta ...@@ -426,7 +425,7 @@ function formulaire_mots_cles($id_groupes_vus, $id_objet, $les_mots, $table, $ta
return $res . "</table>" . fin_block(); return $res . "</table>" . fin_block();
} }
function menu_mots($row, $groupes_vus, $les_mots) function menu_mots($row, $id_groupes_vus, $les_mots)
{ {
$id_groupe = $row['id_groupe']; $id_groupe = $row['id_groupe'];
...@@ -438,7 +437,7 @@ function menu_mots($row, $groupes_vus, $les_mots) ...@@ -438,7 +437,7 @@ function menu_mots($row, $groupes_vus, $les_mots)
$titre = textebrut(typo($row['titre'])); $titre = textebrut(typo($row['titre']));
$titre_groupe = entites_html($titre_groupe); $titre_groupe = entites_html($titre_groupe);
$unseul = $row['unseul'] == 'oui'; $unseul = $row['unseul'] == 'oui';
$obligatoire = $row['obligatoire']=='oui' AND !$groupes_vus[$id_groupe]; $obligatoire = $row['obligatoire']=='oui' AND !in_array($id_groupe, $id_groupes_vus);
// faudrait rendre ca validable quand meme // faudrait rendre ca validable quand meme
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter