[ 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 17 // http://doc.spip.org/@exec_menu_navigation_dist 18 function exec_menu_navigation_dist() { 19 global $connect_id_auteur, $connect_statut, $couleur_claire,$couleur_foncee, $spip_lang_left, $spip_lang_right, $spip_ecran; 20 21 $id_rubrique = intval(_request('id_rubrique')); 22 23 $gadget = '<div style="width: 300px;">'; 24 25 $vos_articles = spip_query("SELECT articles.id_article, articles.id_rubrique, articles.titre, articles.statut FROM spip_articles AS articles, spip_auteurs_articles AS lien WHERE articles.id_article=lien.id_article AND lien.id_auteur=$connect_id_auteur AND articles.statut='prepa' ORDER BY articles.date DESC LIMIT 5"); 26 if (spip_num_rows($vos_articles) > 0) { 27 $gadget .= "<div> </div>"; 28 $gadget .= "<div class='bandeau_rubriques' style='z-index: 1;'>"; 29 $gadget .= bandeau_titre_boite2(afficher_plus(generer_url_ecrire("articles_page","")) . '<b>' ._T('info_en_cours_validation') . '</b>', "article-24.gif", $couleur_foncee, 'white', false); 30 $gadget .= "\n<div class='plan-articles'>\n"; 31 while($row = spip_fetch_array($vos_articles)) { 32 $id_article = $row['id_article']; 33 $titre = typo(sinon($row['titre'], _T('ecrire:info_sans_titre'))); 34 $statut = $row['statut']; 35 $gadget .= "<a class='$statut spip_xx-small' href='" . generer_url_ecrire("articles","id_article=$id_article") . "'>$titre</a>\n"; 36 } 37 $gadget .= "</div>"; 38 $gadget .= "</div>"; 39 } 40 41 $vos_articles = spip_query("SELECT id_article, id_rubrique, titre, statut FROM spip_articles WHERE statut='prop' ORDER BY date DESC LIMIT 5"); 42 if (spip_num_rows($vos_articles) > 0) { 43 $gadget .= "<div> </div>"; 44 $gadget .= "<div class='bandeau_rubriques' style='z-index: 1;'>"; 45 $gadget .= bandeau_titre_boite2(afficher_plus('./') . '<b>' . _T('info_articles_proposes') . '</b>', "article-24.gif", $couleur_foncee, 'white', false); 46 $gadget .= "<div class='plan-articles'>"; 47 while($row = spip_fetch_array($vos_articles)) { 48 $id_article = $row['id_article']; 49 $titre = sinon($row['titre'], _T('ecrire:info_sans_titre')); 50 $statut = $row['statut']; 51 52 $gadget .= "<a class='$statut spip_xx-small' href='" . generer_url_ecrire("articles","id_article=$id_article") . "'>$titre</a>"; 53 } 54 $gadget .= "</div>"; 55 $gadget .= "</div>"; 56 } 57 58 $vos_articles = spip_query("SELECT * FROM spip_breves WHERE statut='prop' ORDER BY date_heure DESC LIMIT 5"); 59 if (spip_num_rows($vos_articles) > 0) { 60 $gadget .= "<div> </div>"; 61 $gadget .= "<div class='bandeau_rubriques' style='z-index: 1;'>"; 62 $gadget .= bandeau_titre_boite2(afficher_plus(generer_url_ecrire("breves")).'<b>' . _T('info_breves_valider') . '</b>', "breve-24.gif", "$couleur_foncee", "white", false); 63 $gadget .= "<div class='plan-articles'>"; 64 while($row = spip_fetch_array($vos_articles)) { 65 $id_breve = $row['id_breve']; 66 $titre = typo(sinon($row['titre'], _T('ecrire:info_sans_titre'))); 67 $statut = $row['statut']; 68 69 $gadget .= "<a class='$statut spip_xx-small' href='" . generer_url_ecrire("breves_voir","id_breve=$id_breve") . "'>$titre</a>"; 70 } 71 $gadget .= "</div>"; 72 $gadget .= "</div>"; 73 } 74 75 $result = spip_query("SELECT id_rubrique FROM spip_rubriques LIMIT 1"); 76 77 if (spip_num_rows($result) > 0) { 78 $gadget .= "<div> </div>"; 79 if ($id_rubrique > 0) { 80 $dans_rub = "&id_rubrique=$id_rubrique"; 81 $dans_parent = "&id_parent=$id_rubrique"; 82 } else $dans_rub = $dans_parent = ''; 83 if ($connect_statut == "0minirezo") { 84 $gadget .= "<div style='width: 140px; float: $spip_lang_left;'>"; 85 if ($id_rubrique > 0) 86 $gadget .= icone_horizontale(_T('icone_creer_sous_rubrique'), generer_url_ecrire("rubriques_edit","new=oui$dans_parent"), "rubrique-24.gif", "creer.gif", false); 87 else 88 $gadget .= icone_horizontale(_T('icone_creer_rubrique'), generer_url_ecrire("rubriques_edit","new=oui"), "rubrique-24.gif", "creer.gif", false); 89 $gadget .= "</div>"; 90 } 91 $gadget .= "<div style='width: 140px; float: $spip_lang_left;'>"; 92 $gadget .= icone_horizontale(_T('icone_ecrire_article'), generer_url_ecrire("articles_edit","new=oui$dans_rub"), "article-24.gif","creer.gif", false); 93 $gadget .= "</div>"; 94 95 if ($GLOBALS['meta']["activer_breves"] != "non") { 96 $gadget .= "<div style='width: 140px; float: $spip_lang_left;'>"; 97 $gadget .= icone_horizontale(_T('icone_nouvelle_breve'), generer_url_ecrire("breves_edit","new=oui$dans_rub"), "breve-24.gif","creer.gif", false); 98 $gadget .= "</div>"; 99 } 100 101 if ($GLOBALS['meta']["activer_sites"] == 'oui') { 102 if ($connect_statut == '0minirezo' OR $GLOBALS['meta']["proposer_sites"] > 0) { 103 $gadget .= "<div style='width: 140px; float: $spip_lang_left;'>"; 104 $gadget .= icone_horizontale(_T('info_sites_referencer'), generer_url_ecrire("sites_edit","new=oui$dans_parent"), "site-24.gif","creer.gif", false); 105 $gadget .= "</div>"; 106 } 107 } 108 109 } 110 111 $gadget .="</div>"; 112 113 ajax_retour($gadget); 114 } 115 ?>
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 |
![]() |