Commit 27b3e334 authored by Hamza Arfaoui's avatar Hamza Arfaoui

profile DA

parent 4e4f6b91
...@@ -28,7 +28,7 @@ while($o = $r->fetchObject()) { ...@@ -28,7 +28,7 @@ while($o = $r->fetchObject()) {
} }
$q = "SELECT profil, nom FROM ca_profils ORDER BY id_profil ASC"; $q = "SELECT profil, nom FROM ca_profils WHERE profil IN (1, 100) ORDER BY id_profil ASC";
$result = excuteQuery($q); $result = excuteQuery($q);
$r = $result['stmt']; $r = $result['stmt'];
while($o = $r->fetchObject()) { while($o = $r->fetchObject()) {
......
...@@ -37,7 +37,7 @@ if($r->rowCount()== 0) { ...@@ -37,7 +37,7 @@ if($r->rowCount()== 0) {
} }
$q1 = "SELECT profil, nom FROM ca_profils ORDER BY id_profil ASC"; $q1 = "SELECT profil, nom FROM ca_profils WHERE profil IN (1, 100) ORDER BY id_profil ASC";
$r1 = $GLOBALS['cnx']->query($q1); $r1 = $GLOBALS['cnx']->query($q1);
while($o1 = $r1->fetchObject()) { 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($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)){
......
...@@ -7,7 +7,7 @@ if(!isset($_SESSION['auth'])) { ...@@ -7,7 +7,7 @@ if(!isset($_SESSION['auth'])) {
require_once("../../inc/confNetisse.php"); require_once("../../inc/confNetisse.php");
$profile_header = ""; $profile_header = "";
$phq = "SELECT * from ca_profils"; $phq = "SELECT * from ca_profils WHERE profil IN (1, 100)";
$phr = $GLOBALS['cnx']->query($phq); $phr = $GLOBALS['cnx']->query($phq);
$nb_profiles = $phr->rowCount(); $nb_profiles = $phr->rowCount();
$profiles = array(); $profiles = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment