Subversion Repositories Applications.projet

Rev

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

Rev 14 Rev 118
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.4 2005-09-28 16:12:15 ddelon Exp $
22
// CVS : $Id: annuaire.class.php,v 1.5 2006-07-04 09:25:38 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.4 $
34
*@version       $Revision: 1.5 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
Line 108... Line 108...
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 = $GLOBALS['projet_db']->query($requete) ;
112
        if (DB::isError($resultat)) {
112
        if (DB::isError($resultat)) {
113
            echo 'erreur '.$resultat->getMessage() ;
113
            echo $requete.' 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]] ;
117
    } // end of member function getInfo
117
    } // end of member function getInfo