Subversion Repositories Applications.projet

Rev

Rev 84 | Rev 145 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 84 Rev 93
Line 17... Line 17...
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU General Public                                            |
18
// | You should have received a copy of the GNU General Public                                            |
19
// | License along with this library; if not, write to the Free Software                                  |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: tela.php,v 1.3 2005-12-07 11:02:35 jp_milcent Exp $
22
// CVS : $Id: tela.php,v 1.4 2006-01-09 21:55:19 ddelon Exp $
23
/**
23
/**
24
* Application projet
24
* Application projet
25
*
25
*
26
* Fichier de présentation de la liste des projets pour Tela Botanica
26
* Fichier de présentation de la liste des projets pour Tela Botanica
27
*
27
*
Line 29... Line 29...
29
//Auteur original :
29
//Auteur original :
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
//Autres auteurs :
31
//Autres auteurs :
32
*@author        Aucun
32
*@author        Aucun
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.3 $
34
*@version       $Revision: 1.4 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 51... Line 51...
51
	include_once PROJET_CHEMIN_APPLI.'langues/pro_langues_fr.local.inc.php' ;
51
	include_once PROJET_CHEMIN_APPLI.'langues/pro_langues_fr.local.inc.php' ;
52
// On vérifie si l'utilisateur participe à des projets
52
// On vérifie si l'utilisateur participe à des projets
Line 53... Line 53...
53
 
53
 
54
$projetNonParticipantListe = & $projetListe ;
54
$projetNonParticipantListe = & $projetListe ;
55
$HTML_projetNonParticipantListe = new HTML_listeProjet(true) ;
55
$HTML_projetNonParticipantListe = new HTML_listeProjet(true) ;
56
$entete_liste = array ('Titre des projets et des forums', 'Forums', 'Wikini', 'Documents', 'Participants') ;
56
$entete_liste = array ('Titre des projets et des forums', 'Forums', 'Wiki','RSS', 'Documents', 'Participants',) ;
Line 57... Line 57...
57
$HTML_projetNonParticipantListe->construitEntete($entete_liste) ;
57
$HTML_projetNonParticipantListe->construitEntete($entete_liste) ;
58
 
58
 
59
$liste_projet = array() ;
59
$liste_projet = array() ;
Line 94... Line 94...
94
    	$this->_url->addQueryString('act', PROJET_ACTION_VOIR_DOCUMENT) ;
94
    	$this->_url->addQueryString('act', PROJET_ACTION_VOIR_DOCUMENT) ;
95
    	$document = '<a href="'.$this->_url->getURL().'">voir</a>' ;	
95
    	$document = '<a href="'.$this->_url->getURL().'">voir</a>' ;	
96
    } else {
96
    } else {
97
    	$document = '-' ;
97
    	$document = '-' ;
98
    }
98
    }
-
 
99
    
-
 
100
                            
-
 
101
   if ($projet->getWikini()) {
-
 
102
		$this->_url->addQueryString ('act',PROJET_ACTION_VOIR_WIKINI);
-
 
103
		$link=$this->_url->getURL();
-
 
104
	    $wiki_rss = '<a href="'.$link.'&wiki=DerniersChangementsRSS/xml'.'"><img src="sites/commun/generique/images/rss.gif" alt="rss"/></a>' ;
-
 
105
	    $this->_url->removeQueryString ('act');
-
 
106
	} else {
-
 
107
	    $wiki_rss = '-' ;
-
 
108
	}
-
 
109
    
-
 
110
    
99
    $this->_url->addQueryString ('act', PROJET_ACTION_VOIR_PARTICIPANT);
111
    $this->_url->addQueryString ('act', PROJET_ACTION_VOIR_PARTICIPANT);
100
    $participant = '<a href="'.$this->_url->getURL().'">voir</a>' ;
112
    $participant = '<a href="'.$this->_url->getURL().'">voir</a>' ;
101
    $ligne_projet = array ( '', $titre, $forum,  // le nom du projet
113
    $ligne_projet = array ( '', $titre, $forum,  // le nom du projet
102
                        $wiki_res, $document, $participant) ;
114
                        $wiki_res, $wiki_rss,$document, $participant) ;
Line 103... Line 115...
103
 
115
 
104
    $this->_url->removeQueryString(PROJET_VARIABLE_ACTION);
116
    $this->_url->removeQueryString(PROJET_VARIABLE_ACTION);
105
    array_push ($liste_projet, $ligne_projet) ;
117
    array_push ($liste_projet, $ligne_projet) ;
106
}
118
}
Line 116... Line 128...
116
return $res ;
128
return $res ;
Line 117... Line 129...
117
 
129
 
118
/* +--Fin du code ----------------------------------------------------------------------------------------+
130
/* +--Fin du code ----------------------------------------------------------------------------------------+
119
*
131
*
-
 
132
* $Log: not supported by cvs2svn $
-
 
133
* Revision 1.3  2005/12/07 11:02:35  jp_milcent
-
 
134
* Ajout d'attribut alt aux images.
120
* $Log: not supported by cvs2svn $
135
*
121
* Revision 1.2  2005/11/28 11:15:22  alexandre_tb
136
* Revision 1.2  2005/11/28 11:15:22  alexandre_tb
122
* nettoyage URL en sortie de programme
137
* nettoyage URL en sortie de programme
123
*
138
*
124
* Revision 1.1  2005/11/25 14:47:51  alexandre_tb
139
* Revision 1.1  2005/11/25 14:47:51  alexandre_tb