[ Index ] |
|
Code source de SPIP 1.9.2c |
1 <?php 2 3 /***************************************************************************\ 4 * SPIP, Systeme de publication pour l'internet * 5 * * 6 * Copyright (c) 2001-2007 * 7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * 8 * * 9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * 10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * 11 \***************************************************************************/ 12 13 if (!defined("_ECRIRE_INC_VERSION")) return; 14 15 include_spip('inc/presentation'); 16 include_spip('inc/suivi_versions'); 17 18 // http://doc.spip.org/@exec_suivi_revisions_dist 19 function exec_suivi_revisions_dist() 20 { 21 global 22 $connect_id_auteur, 23 $connect_statut, 24 $debut, 25 $id_auteur, 26 $id_secteur, 27 $lang_choisie, 28 $uniq_auteur; 29 30 $debut = intval($debut); 31 $id_auteur = ($id_auteur == $connect_id_auteur) ? $id_auteur : false; 32 33 $commencer_page = charger_fonction('commencer_page', 'inc'); 34 echo $commencer_page(_T("icone_suivi_revisions")); 35 36 37 ////////////////////////////////////////////////////// 38 // Affichage de la colonne de gauche 39 // 40 41 debut_gauche(); 42 43 44 if ($connect_statut == "0minirezo") $req_where = " AND articles.statut IN ('prepa','prop','publie')"; 45 else $req_where = " AND articles.statut IN ('prop','publie')"; 46 47 echo "<p>"; 48 49 50 debut_cadre_relief(); 51 52 echo "<div class='arial11'><ul>"; 53 echo "<p>"; 54 55 if (!$id_auteur AND $id_secteur < 1) echo "<li><b>"._T('info_tout_site')."</b>"; 56 else echo "<li><a href='" . generer_url_ecrire("suivi_revisions") . "'>"._T('info_tout_site')."</a>"; 57 58 echo "<p>"; 59 60 $nom_auteur = $GLOBALS['auteur_session']['nom']; 61 62 if ($id_auteur) echo "<li><b>$nom_auteur</b>"; 63 else echo "<li><a href='" . generer_url_ecrire("suivi_revisions","id_auteur=$connect_id_auteur") . "'>$nom_auteur</a>"; 64 65 echo "<p>"; 66 67 $result = spip_query("SELECT * FROM spip_rubriques WHERE id_parent = 0 ORDER BY 0+titre, titre"); 68 69 while ($row = spip_fetch_array($result)) { 70 $id_rubrique = $row['id_rubrique']; 71 $titre = typo($row['titre']); 72 73 $result_rub = spip_query("SELECT versions.*, articles.statut, articles.titre FROM spip_versions AS versions, spip_articles AS articles WHERE versions.id_article = articles.id_article AND versions.id_version > 1 AND articles.id_secteur=$id_rubrique$req_where LIMIT 1"); 74 75 if ($id_rubrique == $id_secteur) echo "<li><b>$titre</b>"; 76 else if (spip_num_rows($result_rub) > 0) echo "<li><a href='" . generer_url_ecrire("suivi_revisions","id_secteur=$id_rubrique") . "'>$titre</a>"; 77 } 78 79 if (($GLOBALS['meta']['multi_rubriques'] == 'oui') OR ($GLOBALS['meta']['multi_articles'] == 'oui')) { 80 echo "<p>"; 81 $langues = explode(',', $GLOBALS['meta']['langues_multilingue']); 82 83 foreach ($langues as $lang) { 84 $titre = traduire_nom_langue($lang); 85 86 $result_lang = spip_query("SELECT versions.* FROM spip_versions AS versions, spip_articles AS articles WHERE versions.id_article = articles.id_article AND versions.id_version > 1 AND articles.lang='$lang' $req_where LIMIT 1"); 87 88 if ($lang == $lang_choisie) echo "<li><b>$titre</b>"; 89 else if (spip_num_rows($result_lang) > 0) echo "<li><a href='" . generer_url_ecrire("suivi_revisions","lang_choisie=$lang") . "'>$titre</a>"; 90 } 91 } 92 93 94 echo "</ul></div>\n"; 95 96 // lien vers le rss 97 98 $op = 'revisions'; 99 $args = array( 100 'id_secteur' => $id_secteur, 101 'id_auteur' => $id_auteur, 102 'lang_choisie' => $lang_choisie 103 ); 104 echo "<div style='text-align: " 105 . $GLOBALS['spip_lang_right'] 106 . ";'>" 107 . bouton_spip_rss($op, $args) 108 ."</div>"; 109 110 111 fin_cadre_relief(); 112 113 114 115 ////////////////////////////////////////////////////// 116 // Affichage de la colonne de droite 117 // 118 119 120 echo debut_droite("", true); 121 122 echo afficher_suivi_versions ($debut, $id_secteur, $id_auteur, $lang_choisie); 123 124 echo fin_gauche(), fin_page(); 125 } 126 127 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Wed Nov 21 10:20:27 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |