$UID); $result = excuteQuery($q, $values); $r = $result['stmt']; if($r->rowCount()== 0) { header("location:admList.php"); } else { $o = $r->fetchObject(); $STATUT = $o->inactif; if($STATUT==0) { $STATUT1="checked"; $STATUT2=""; } else { $STATUT1=""; $STATUT2="checked"; } $IDS = explode('-',$o->ids); } $q1 = "SELECT profil, nom FROM ca_profils WHERE profil IN (1, 100) ORDER BY id_profil ASC"; $r1 = $GLOBALS['cnx']->query($q1); while($o1 = $r1->fetchObject()) { if($o1->profil == 90 || $o1->profil == 15 || $o1->nom == "Stats BO" || $o1->nom == "Agence" || $o1->nom == "Stats" || $o1->profil == 2 || $o1->nom == "DA" || $o1->nom == "Caisse" || ($o1->nom == "Admin" && $_SESSION["profil"] && $_SESSION["profil"] == 100)){ if ($o->profil == $o1->profil) { $s1 .= ""; } else { $s1 .= ""; } } } $q2 = "SELECT id_agence, nom_agence FROM ca_agences WHERE is_active=:is_active AND supp=:supp ORDER BY nom_agence ASC"; $v2 = array(':is_active' => 1, ':supp' => 0); //echo "