Subversion Repositories Applications.papyrus

Rev

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

Rev 465 Rev 474
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: annuaire.class.php,v 1.2 2005-09-26 20:18:27 ddelon Exp $
22
// CVS : $Id: annuaire.class.php,v 1.3 2005-09-27 16:37:19 alexandre_tb Exp $
23
/**
23
/**
24
* Application annuaire
24
* Application annuaire
25
*
25
*
26
* La classe annuaire
26
* La classe annuaire
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.2 $
34
*@version       $Revision: 1.3 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
Line 106... Line 106...
106
    function getInfo( $parametre )
106
    function getInfo( $parametre )
107
    {
107
    {
108
        $requete = 'select '.$this->_champs_base[$parametre].
108
        $requete = 'select '.$this->_champs_base[$parametre].
109
                    ' from '.$this->_champs_base['table'].
109
                    ' from '.$this->_champs_base['table'].
110
                    ' where '.$this->_champs_base['identifiant'].'='.$this->_id_utilisateur ;
110
                    ' where '.$this->_champs_base['identifiant'].'='.$this->_id_utilisateur ;
111
        $resultat = $GLOBALS['projet_db']->query($requete) ;
111
        $resultat = $this->_db->query ($requete) ;
112
        if (DB::isError($resultat)) {
112
        if (DB::isError($resultat)) {
113
            echo 'erreur '.$resultat->getMessage() ;
113
            echo 'erreur '.$resultat->getMessage() ;
114
        }
114
        }
115
        $ligne = $resultat->fetchRow (DB_FETCHMODE_ASSOC) ;
115
        $ligne = $resultat->fetchRow (DB_FETCHMODE_ASSOC) ;
116
        return $ligne[$this->_champs_base[$parametre]] ;
116
        return $ligne[$this->_champs_base[$parametre]] ;