[ Index ]
 

Code source de SPIP Agora 1.4

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/Agora1-4/ecrire/ -> articles_forum.php (source)

   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  
  21  include_ecrire  ("inc_index.php");
  22  include_ecrire  ("inc_logos.php");
  23  
  24  /* Ajout Clever Age / Antoine Angénieux / Couche métier */
  25  require_once ("PEAR.php");
  26  require_once (dirname(__FILE__). "/include/bd/inc_article_factory.php");
  27  
  28  require_once (dirname(__FILE__). "/include/bd/inc_forum_list_factory.php");
  29  /* fin zone de modification Clever Age */
  30  
  31  //-------------MODIFICATION CLEVER AGE
  32  
  33  $articleMetier = &recuperer_instance_article();
  34  $articleMetier->loadLightWeight($id_article);
  35  $titre = $articleMetier->getTitre();
  36  $id_rubrique = $articleMetier->getRubriqueId();
  37  
  38  debut_page($titre, "documents", "articles");
  39  
  40  debut_grand_cadre();
  41  
  42  afficher_parents ($id_rubrique);
  43  $parents = "~ <img src='img_pack/racine-site-24.gif' width=24 height=24 align='middle'> <A HREF='naviguer.php?coll=0'><B>" . _T('lien_racine_site'). "</B></A> " . aide("rubhier"). "<BR>" . $parents;
  44  
  45  $parents = ereg_replace("~", "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", $parents);
  46  $parents = ereg_replace("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ", "", $parents);
  47  
  48  echo "$parents";
  49  
  50  fin_grand_cadre();
  51  
  52  debut_gauche();
  53  
  54  debut_boite_info();
  55  
  56  echo "<FONT FACE='Verdana,Arial,Helvetica,sans-serif' SIZE=2>";
  57  echo "<P align=left>" . _T('info_gauche_suivi_forum');
  58  
  59  echo aide("suiviforum");
  60  echo "</FONT>";
  61  
  62  fin_boite_info();
  63  
  64  debut_droite();
  65  
  66  echo "\n<table cellpadding=0 cellspacing=0 border=0 width='100%'>";
  67  echo "<tr width='100%'>";
  68  echo "<td>";
  69  icone(_T('icone_retour'), "articles.php?id_article=$id_article", "article-24.gif", "rien.gif");
  70  
  71  echo "</td>";
  72  echo "<td><img src='img_pack/rien.gif' width=10></td>\n";
  73  echo "<td width='100%'>";
  74  echo _T('texte_messages_publics');
  75  gros_titre ($titre);
  76  echo "</td></tr></table>";
  77  echo "<p>";
  78  
  79  $mots_cles_forums = lire_meta("mots_cles_forums");
  80  
  81  $articleMetier = &recuperer_instance_article();
  82  $loadOK = $articleMetier->load($id_article);
  83  
  84  if (!PEAR::isError($loadOK)) {
  85      $authorization = &recuperer_instance_authorization('isManagedRubriqueByAuteurId', $GLOBALS['connect_id_auteur'], array('rubriqueId' => $articleMetier->getRubriqueId()));
  86      if ($authorization->isAuthorizedAction()) {
  87          $forumList = &recuperer_instance_list_forum();
  88          $queryParams = array();
  89          $queryParams[] = $id_article;
  90          $forumList->displayHTMLList(FORUM_BY_ARTICLEID, $queryParams, $forum_retour, 'oui');
  91      }
  92      else {
  93          echo _T('avis_acces_interdit');
  94      }
  95  }
  96  
  97  echo "</FONT>";
  98  
  99  fin_page();
 100  ?>


Généré le : Sat Feb 24 14:40:03 2007 par Balluche grâce à PHPXref 0.7