//Autres auteurs : *@author Aucun *@copyright Tela-Botanica 2000-2004 *@version $Revision: 1.7 $ // +------------------------------------------------------------------------------------------------------+ */ // +------------------------------------------------------------------------------------------------------+ // | ENTETE du PROGRAMME | // +------------------------------------------------------------------------------------------------------+ // La constante suivante est dans le fichier de conf //define ('PROJET_LISTE_RESUME', false) ; if (PROJET_UTILISE_TYPE && $this->_type != '') { $projetListe = projet::getProjetDuType($this->_type, $this->_db) ; if ($this->_presentation == 'arbre')array_push ($projetListe, projet::getProjetRacine($this->_db)) ; } else { // Un tableau de tous les projets dans $projetListe //$projetListe = projet::getTousLesProjets($this->_db, $this->_projet_exclu) ; } // requete pour recuperer la liste des projets $requete = 'select p_id, p_titre, p_wikini, pl_id_liste, plle_id_liste, p_avoir_document from'. ' projet left join projet_lien_liste on p_id=pl_id_projet'. ' left join projet_lien_liste_externe on p_id=plle_id_projet'. ' group by p_id order by p_titre' ; $resultat = $this->_db->query($requete) ; if (DB::isError($resultat)) { return ("Echec de la requete
".$resultat->getMessage()."
".$resultat->getDebugInfo()) ; } $res = '

Liste des projets et forums de Tela Botanica

'."\n" ; // Ajout du cartouche resumant la creation d'un projet. $res .= '

Créez votre projet...

Toute personne inscrite au réseau Tela Botanica peut demander à créer un forum de discussion ou monter un projet collaboratif.
Voir la démarche en détail

'; // On inclue un fichier local if (file_exists(PROJET_CHEMIN_APPLI.'langues/pro_langues_fr.local.inc.php')) include_once PROJET_CHEMIN_APPLI.'langues/pro_langues_fr.local.inc.php' ; // On v�rifie si l'utilisateur participe � des projets $projetNonParticipantListe = & $projetListe ; include_once PROJET_CHEMIN_CLASSES.'HTML_listeProjet.class.php' ; $HTML_projetNonParticipantListe = new HTML_listeProjet(true) ; $entete_liste = array ('Titre des projets et des forums', 'Forums', 'Wiki','RSS', 'Documents', 'Participants',) ; $HTML_projetNonParticipantListe->construitEntete($entete_liste) ; $liste_projet = array() ; // La liste while ($ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT)) { $this->_url->addQueryString(PROJET_VARIABLE_ID_PROJET, $ligne->p_id) ; // Recherche du forum if ($ligne->pl_id_liste != null) { $this->_url->addQueryString('act', PROJET_ACTION_VOIR_FORUM); $forum = 'Tela Botanica'; } else { include_once PROJET_CHEMIN_CLASSES.'liste_externe.class.php' ; $listes_ext = new liste_externe ($this->_db) ; if ($ligne->plle_id_liste != null) { $info_liste = $listes_ext->getInfoListe($ligne->plle_id_liste) ; $forum = 'Yahoo'; } else { $forum = '-'; } } if ($ligne->p_wikini) { $this->_url->addQueryString ('act',PROJET_ACTION_VOIR_WIKINI); $link=$this->_url->getURL(); $wiki_res = 'voir' ; $this->_url->removeQueryString ('act'); } else { $wiki_res = '-' ; } $titre= ''.$ligne->p_titre.''; if ($ligne->p_avoir_document != 0) { $this->_url->addQueryString('act', PROJET_ACTION_VOIR_DOCUMENT) ; $document = 'voir' ; } else { $document = '-' ; } if ($ligne->p_wikini) { $this->_url->addQueryString ('act',PROJET_ACTION_VOIR_WIKINI); $link=$this->_url->getURL(); $wiki_rss = 'rss' ; $this->_url->removeQueryString ('act'); } else { $wiki_rss = '-' ; } $this->_url->addQueryString ('act', PROJET_ACTION_VOIR_PARTICIPANT); $participant = 'voir' ; $ligne_projet = array ( '', $titre, $forum, // le nom du projet $wiki_res, $wiki_rss,$document, $participant) ; $this->_url->removeQueryString(PROJET_VARIABLE_ACTION); array_push ($liste_projet, $ligne_projet) ; } $this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ; $HTML_projetNonParticipantListe->construitListe($liste_projet) ; if ($HTML_projetNonParticipantListe->getRowCount() > 1) { ///$res .= '

'.PROJET_TOUS_LES_PROJETS.'

' ; $res .= $HTML_projetNonParticipantListe->toHTML() ; } // Nettoyage de l'url $this->_url->removeQueryString (PROJET_VARIABLE_ID_PROJET); return $res ; /* +--Fin du code ----------------------------------------------------------------------------------------+ * * $Log: not supported by cvs2svn $ * Revision 1.6 2007-04-19 15:34:35 neiluj * pr�parration release (livraison) "Narmer" - v0.25 * * Revision 1.5.2.1 2007/04/11 14:24:39 alexandre_tb * am�lioration des performances par l'appel d'une requete directe * * Revision 1.5 2006/10/30 11:26:11 jp_milcent * Modification du cartouche concernant la cr�ation d'un projet sur Tela. * * Revision 1.4 2006/01/09 21:55:19 ddelon * flux rss dans liste des projets * * Revision 1.3 2005/12/07 11:02:35 jp_milcent * Ajout d'attribut alt aux images. * * Revision 1.2 2005/11/28 11:15:22 alexandre_tb * nettoyage URL en sortie de programme * * Revision 1.1 2005/11/25 14:47:51 alexandre_tb * version initiale * * * * +-- Fin du code ----------------------------------------------------------------------------------------+ */ ?>