Subversion Repositories Applications.projet

Rev

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

Rev 300 Rev 344
Line 14... Line 14...
14
// |                                                                                                      |
14
// |                                                                                                      |
15
// | You should have received a copy of the GNU General Public                                            |
15
// | You should have received a copy of the GNU General Public                                            |
16
// | License along with this library; if not, write to the Free Software                                  |
16
// | License along with this library; if not, write to the Free Software                                  |
17
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
17
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
18
// +------------------------------------------------------------------------------------------------------+
18
// +------------------------------------------------------------------------------------------------------+
19
// CVS : $Id: participe.class.php,v 1.6 2008-08-25 15:11:56 alexandre_tb Exp $
19
// CVS : $Id: participe.class.php,v 1.7 2008-09-16 14:11:31 alexandre_tb Exp $
20
/**
20
/**
21
* Application projet
21
* Application projet
22
*
22
*
23
* La classe partiicpe assure la jointure entre projet et Auth
23
* La classe partiicpe assure la jointure entre projet et Auth
24
* Elle se base sur la table projet_statut_utilisateur
24
* Elle se base sur la table projet_statut_utilisateur
Line 27... Line 27...
27
//Auteur original :
27
//Auteur original :
28
*@author        Alexandre Granier <alexandre@tela-botanica.org>
28
*@author        Alexandre Granier <alexandre@tela-botanica.org>
29
//Autres auteurs :
29
//Autres auteurs :
30
*@author        Aucun
30
*@author        Aucun
31
*@copyright     Tela-Botanica 2000-2004
31
*@copyright     Tela-Botanica 2000-2004
32
*@version       $Revision: 1.6 $
32
*@version       $Revision: 1.7 $
33
// +------------------------------------------------------------------------------------------------------+
33
// +------------------------------------------------------------------------------------------------------+
34
*/
34
*/
Line 35... Line 35...
35
 
35
 
Line 360... Line 360...
360
                    ' from projet_statut_utilisateurs, projet_statut,'.PROJET_ANNUAIRE.
360
                    ' from projet_statut_utilisateurs, projet_statut,'.PROJET_ANNUAIRE.
361
                    ' where psu_id_projet='.$id_projet.' and psu_id_utilisateur='.PROJET_CHAMPS_ID.
361
                    ' where psu_id_projet='.$id_projet.' and psu_id_utilisateur='.PROJET_CHAMPS_ID.
362
                    ' and psu_id_statut=ps_id_statut and psu_id_statut=1 order by ps_id_statut,'.PROJET_CHAMPS_NOM;
362
                    ' and psu_id_statut=ps_id_statut and psu_id_statut=1 order by ps_id_statut,'.PROJET_CHAMPS_NOM;
363
        $resultat = $this->_db->query ($requete) ;
363
        $resultat = $this->_db->query ($requete) ;
364
        if (DB::isError($resultat)) {
364
        if (DB::isError($resultat)) {
365
            die ("Echec de la requete<br />".$resultat->getMessage()."<br />".$resultat->getDebugInfo()) ;
365
            return ("Echec de la requete<br />".$resultat->getMessage()."<br />".$resultat->getDebugInfo()) ;
366
        }
366
        }
367
        while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ORDERED)) {
367
        while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ORDERED)) {
368
            array_push ($tableau_resultat, $ligne) ;
368
            array_push ($tableau_resultat, $ligne) ;
369
        }
369
        }
370
        $resultat->free() ;
370
        $resultat->free() ;
371
        return $tableau_resultat ;
371
        return $tableau_resultat ;
372
    } // end of member function getCoordinateurs
372
    } // end of member function getCoordinateurs
Line -... Line 373...
-
 
373
    
-
 
374
    function getAdministrateurs () {
-
 
375
    	
-
 
376
    	$tableau_resultat = array() ;
-
 
377
    	
-
 
378
    	$requete = 'select psu_id_utilisateur,'.PROJET_CHAMPS_NOM.','.PROJET_CHAMPS_PRENOM.',' ;
-
 
379
        $requete .= PROJET_CHAMPS_MAIL.', ' ;
-
 
380
        $requete .= 'psu_date_inscription,  ps_id_statut '.
-
 
381
                    ' from projet_statut_utilisateurs, projet_statut,'.PROJET_ANNUAIRE.
-
 
382
                    ' where psu_id_utilisateur='.PROJET_CHAMPS_ID.
-
 
383
                    ' and psu_id_statut=ps_id_statut and psu_id_statut=0 order by ps_id_statut,'.PROJET_CHAMPS_NOM;
-
 
384
        $resultat = $this->_db->query ($requete) ;
-
 
385
        if (DB::isError($resultat)) {
-
 
386
            die ("Echec de la requete<br />".$resultat->getMessage()."<br />".$resultat->getDebugInfo()) ;
-
 
387
        }
-
 
388
        while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ORDERED)) {
-
 
389
            array_push ($tableau_resultat, $ligne) ;
-
 
390
        }
-
 
391
        $resultat->free() ;
-
 
392
        return $tableau_resultat ;
373
    
393
    }
374
    /** 
394
    /** 
375
     * Renvoie la constante de statut d un utilisateur
395
     * Renvoie la constante de statut d un utilisateur
376
     * 
396
     * 
377
     * define ('PROJET_DROIT_ADMINISTRATEUR', 1) ;
397
     * define ('PROJET_DROIT_ADMINISTRATEUR', 1) ;