";
$profiles[] = $p->id_profil;
}
$DATA = "";
$currentRessource = "";
$ressources = array("accueil"=>"ACCUEIL","permissions"=>"ADMINISTRATION","performances"=>"SURVEILLANCE","user"=>"GESTION DES UTILISATEURS","agence"=>"GESTION DES AGENCES","orientations"=>"GESTION DES ORIENTATIONS","agent"=>"GESTION DES CONSEILLERS","calendrier"=>"GESTION DES MOBILITES","stats"=>"TABLEAU DE BORD");
$qp = "SELECT * FROM ca_permissions ORDER BY position ASC";
$rp = $GLOBALS['cnx']->query($qp);
while($o = $rp->fetchObject()) {
if($currentRessource != $o->ressource){
$DATA .= "