Subversion Repositories Applications.framework

Rev

Rev 83 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 83 Rev 88
Line 15... Line 15...
15
   public function chargerAdmin() {
15
   public function chargerAdmin() {
16
        $requete = 	'SELECT * '.
16
        $requete = 	'SELECT * '.
17
        			'FROM  gen_annuaire '.
17
        			'FROM  gen_annuaire '.
18
        			'ORDER BY ga_id_administrateur';
18
        			'ORDER BY ga_id_administrateur';
19
        $resultat = $this->requete($requete);
19
        $resultat = $this->requete($requete);
20
        
-
 
21
        $admin = array();
20
        $admin = array();
22
        foreach ($resultat->fetchAll() as $ligne) {
21
        foreach ($resultat->fetchAll() as $ligne) {
23
            if ($ligne['ga_id_administrateur'] != 0) { 
22
            if ($ligne['ga_id_administrateur'] != 0) { 
24
                $admin[] = $ligne;
23
                $admin[] = $ligne;
25
            }
24
            }