[ Index ] |
|
Code source de SPIP Agora 1.4 |
1 <?php 2 /***************************************************** 3 * This file is part of Agora, web based content management system. 4 * 5 * Agora is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; version 2 of the License. 8 * 9 * Agora is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details (file "COPYING"). 13 * 14 * Copyright © Arnaud Martin, Antoine Pitrou et Philippe Rivière. 15 * List of authors detailed in "copyright_fr.html" file. 16 * E-mail : agora@sig.premier-ministre.gouv.fr 17 * Web site : http://www.agora.gouv.fr 18 *****************************************************/ 19 include ("inc.php"); 20 require_once (dirname(__FILE__). "/include/bd/inc_article_list_factory.php"); 21 22 debut_page(_T('titre_page_articles_page'), "documents", "articles"); 23 debut_gauche(); 24 25 // 26 // Afficher le bouton de creation d'article 27 // 28 29 $rubriqueMetier = &recuperer_instance_rubrique(); 30 $booleanOK = $rubriqueMetier->hasRubriqueId(); 31 32 if (PEAR::isError($booleanOK)) { 33 die ($booleanOK->getMessage()); 34 } 35 36 if ($booleanOK) { 37 debut_raccourcis(); 38 icone_horizontale(_T('icone_ecrire_article'), "articles_edit.php?new=oui", "article-24.gif", "creer.gif"); 39 fin_raccourcis(); 40 } 41 else { 42 $authorization = &recuperer_instance_authorization('creerRubrique', $GLOBALS['connect_id_auteur']); 43 if ($authorization->isAuthorizedAction()) { 44 echo _T('texte_creer_rubrique'); 45 icone_horizontale(_T('icone_creer_rubrique'), "rubriques_edit.php?new=oui&retour=nav", "rubrique-24.gif", 46 "creer.gif"); 47 } 48 } 49 50 debut_droite(); 51 52 // 53 // Vos articles en cours de redaction 54 // 55 56 echo "<P align=left>"; 57 58 $articleList = recuperer_instance_list_articles(); 59 $queryParams = array(); 60 $queryParams[] = $connect_id_auteur; 61 $queryParams[] = 'prepa'; 62 $articleList->displayHTMLList(_T('info_en_cours_validation'), ARTICLES_BY_STATE, $queryParams); 63 64 // 65 // Vos articles soumis au vote 66 // 67 68 echo "<p>"; 69 $articleList = recuperer_instance_list_articles(); 70 $queryParams = array(); 71 $queryParams[] = $connect_id_auteur; 72 $queryParams[] = 'prop'; 73 $articleList->displayHTMLList(_T('info_attente_validation'), ARTICLES_BY_STATE, $queryParams); 74 75 // 76 // Vos articles publies 77 // 78 79 echo "<p>"; 80 /************** Modification elebescond@clever-age.com ************************/ 81 $articleList = recuperer_instance_list_articles(); 82 $queryParams = array(); 83 $queryParams[] = $connect_id_auteur; 84 $queryParams[] = 'publie'; 85 $articleList->displayHTMLList(_T('info_publies'), ARTICLES_BY_STATE, $queryParams, true); 86 87 // 88 // Vos articles refuses 89 // 90 91 echo "<p>"; 92 $articleList = recuperer_instance_list_articles(); 93 $queryParams = array(); 94 $queryParams[] = $connect_id_auteur; 95 $queryParams[] = 'refuse'; 96 $articleList->displayHTMLList(_T('info_refuses'), ARTICLES_BY_STATE, $queryParams); 97 98 fin_page(); 99 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |