Subversion Repositories Applications.projet

Rev

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

Rev 333 Rev 338
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: mes_projets.php,v 1.1 2008-09-01 14:36:48 alexandre_tb Exp $
22
// CVS : $Id: mes_projets.php,v 1.2 2008-09-16 14:07:08 alexandre_tb Exp $
23
/**
23
/**
24
* Application projet
24
* Application projet
25
*
25
*
26
* Fichier de presentation de la liste des projets pour Tela Botanica nouvelle version
26
* Fichier de presentation de la liste des projets pour Tela Botanica nouvelle version
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.1 $
34
*@version       $Revision: 1.2 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 196... Line 196...
196
	// On recherche les projets auquels l utilisateur participe
196
	// On recherche les projets auquels l utilisateur participe
197
	include_once PROJET_CHEMIN_CLASSES.'participe.class.php';
197
	include_once PROJET_CHEMIN_CLASSES.'participe.class.php';
198
	$participant = new participe ($this->_db);
198
	$participant = new participe ($this->_db);
199
	$tableau_projet = $participant->getInformationsUtilisateurs($this->_auth->getAuthData(PROJET_CHAMPS_ID));
199
	$tableau_projet = $participant->getInformationsUtilisateurs($this->_auth->getAuthData(PROJET_CHAMPS_ID));
200
	$chaine_id_projet = '';
200
	$chaine_id_projet = '';
-
 
201
	if (count ($tableau_projet) == 0) return '<p class="information">Vous n\'&ecirc;tes inscrit &agrave; aucun projet</p>'; 
201
	foreach ($tableau_projet as $projet) $chaine_id_projet .= $projet[3].',';
202
	foreach ($tableau_projet as $projet) $chaine_id_projet .= $projet[3].',';
202
	$chaine_id_projet = substr($chaine_id_projet, 0, -1);
203
	$chaine_id_projet = substr($chaine_id_projet, 0, -1);
203
	$where_recherche .= ' where p_id in ('.$chaine_id_projet.')';
204
	$where_recherche .= ' where p_id in ('.$chaine_id_projet.')';
Line 204... Line 205...
204
	
205
	
Line 475... Line 476...
475
return $res ;
476
return $res ;
Line 476... Line 477...
476
 
477
 
477
/* +--Fin du code ----------------------------------------------------------------------------------------+
478
/* +--Fin du code ----------------------------------------------------------------------------------------+
478
*
479
*
-
 
480
* $Log: not supported by cvs2svn $
-
 
481
* Revision 1.1  2008-09-01 14:36:48  alexandre_tb
-
 
482
* version intiale
-
 
483
* sert a afficher les projets auquels on est inscrit
479
* $Log: not supported by cvs2svn $
484
*
480
* Revision 1.1  2008-08-25 15:00:28  alexandre_tb
485
* Revision 1.1  2008-08-25 15:00:28  alexandre_tb
481
* version initiale
486
* version initiale
482
*
487
*
483
* +-- Fin du code ----------------------------------------------------------------------------------------+
488
* +-- Fin du code ----------------------------------------------------------------------------------------+