| 431 | 
           mathias | 
           1 | 
           <?php
  | 
        
        
            | 
            | 
           2 | 
           // declare(encoding='UTF-8');
  | 
        
        
            | 
            | 
           3 | 
           /**
  | 
        
        
            | 
            | 
           4 | 
           * Description :
  | 
        
        
            | 
            | 
           5 | 
           *
  | 
        
        
            | 
            | 
           6 | 
           * @package projet
  | 
        
        
            | 
            | 
           7 | 
           // Auteur principal :
  | 
        
        
            | 
            | 
           8 | 
           * @author Grégoire Duché <gregoire@tela-botanica.org>
  | 
        
        
            | 
            | 
           9 | 
           * @license GPL v3 <http://www.gnu.org/licenses/gpl.txt>
  | 
        
        
            | 
            | 
           10 | 
           * @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
  | 
        
        
            | 
            | 
           11 | 
           * @version $$Id$$
  | 
        
        
            | 
            | 
           12 | 
           * @copyright 1999-2010 Tela Botanica (accueil@tela-botanica.org)
  | 
        
        
            | 
            | 
           13 | 
           */
  | 
        
        
            | 
            | 
           14 | 
              | 
        
        
            | 
            | 
           15 | 
           // +------------------------------------------------------------------------------------------------------+
  | 
        
        
            | 
            | 
           16 | 
           // |                                            ENTETE du PROGRAMME                                       |
  | 
        
        
            | 
            | 
           17 | 
           // +------------------------------------------------------------------------------------------------------+
  | 
        
        
            | 
            | 
           18 | 
              | 
        
        
            | 
            | 
           19 | 
           // inclure les fichiers de configuration de projet pour obtenir la connextion a la BDD
  | 
        
        
            | 
            | 
           20 | 
           include_once 'configuration/projet.config.inc.php';
  | 
        
        
            | 
            | 
           21 | 
              | 
        
        
            | 
            | 
           22 | 
           // +------------------------------------------------------------------------------------------------------+
  | 
        
        
            | 
            | 
           23 | 
           // |                                            CORPS DU PROGRAMME                                        |
  | 
        
        
            | 
            | 
           24 | 
           // +------------------------------------------------------------------------------------------------------+
  | 
        
        
            | 
            | 
           25 | 
              | 
        
        
            | 
            | 
           26 | 
           function afficherContenuCorps() {
  | 
        
        
            | 
            | 
           27 | 
              | 
        
        
            | 
            | 
           28 | 
           	// Sélection de la page projet
  | 
        
        
            | 
            | 
           29 | 
           	$requete_projets =  'select p_id, p_titre, p_resume, pl_id_liste, plle_id_liste, p_avoir_document, ps_nombre_inscrit, ps_pourcent,'.
  | 
        
        
            | 
            | 
           30 | 
           						' p_wikini, ps_doc_derniere_semaine, p_avoir_document, ps_nombre_inscrit_derniere_semaine, '.
  | 
        
        
            | 
            | 
           31 | 
           						'  ps_nombre_membre_yahoo, ps_msg_derniere_semaine, ps_modifwiki_derniere_semaine, p_en_dormance from'.
  | 
        
        
            | 
            | 
           32 | 
           						' projet left join projet_lien_liste on p_id=pl_id_projet'.
  | 
        
        
            | 
            | 
           33 | 
           						' left join projet_lien_liste_externe on p_id=plle_id_projet'.
  | 
        
        
            | 
            | 
           34 | 
           						' left join projet_statistiques on p_id=ps_ce_projet and ps_dernier=1'.
  | 
        
        
            | 
            | 
           35 | 
           						' group by p_id order by p_titre desc' ;
  | 
        
        
            | 
            | 
           36 | 
           	$resultat_type = $GLOBALS['projet_db']->query($requete_type) or die('ERREUR BDD');
  | 
        
        
            | 
            | 
           37 | 
              | 
        
        
            | 
            | 
           38 | 
           	ob_start();
  | 
        
        
            | 
            | 
           39 | 
           	include_once('squelettes/rss.tpl.html');
  | 
        
        
            | 
            | 
           40 | 
           	$res = ob_get_contents();
  | 
        
        
            | 
            | 
           41 | 
           	ob_end_clean();
  | 
        
        
            | 
            | 
           42 | 
              | 
        
        
            | 
            | 
           43 | 
           	return $res;
  | 
        
        
            | 
            | 
           44 | 
           }
  | 
        
        
            | 
            | 
           45 | 
              | 
        
        
            | 
            | 
           46 | 
              | 
        
        
            | 
            | 
           47 | 
           ?>
  |