" . sql_error());} else {$msg=$vocab["add_user_succeed"];} } } } } if ($action=='del_user') { if(authGetUserLevel(getUserName(),$area,'area') < 4) { showAccessDenied($day, $month, $year, $area,$back); exit(); } unset($login_user); $login_user = $_GET["login_user"]; $sql = "DELETE FROM grr_j_user_area WHERE (login='$login_user' and id_area = '$area')"; if (sql_command($sql) < 0) {fatal_error(1, "

" . sql_error());} else {$msg=$vocab["del_user_succeed"];} } if (empty($area)) $area = -1; echo "

".$vocab['admin_access_area.php']."

"; echo ""; if ($msg) { echo ""; } echo ""; $this_area_name = ""; # Show all areas $existe_domaine = 'no'; echo "\n"; echo "

".$vocab['areas']."

"; $out_html = "
"; if ($existe_domaine == 'yes') echo $out_html; $this_area_name = sql_query1("select area_name from grr_area where id=$area"); echo "
\n"; # Show area : if ($area != -1) { echo "
"; $sql = "SELECT u.login, u.nom, u.prenom FROM grr_utilisateurs u, grr_j_user_area j WHERE (j.id_area='$area' and u.login=j.login) order by u.nom, u.prenom"; $res = sql_query($sql); $nombre = sql_count($res); if ($nombre!=0) echo "

".$vocab["user_area_list"]."

"; if ($res) for ($i = 0; ($row = sql_row($res, $i)); $i++) { $login_user = $row[0]; $nom_admin = $row[1]; $prenom_admin = $row[2]; echo ""; echo "$nom_admin $prenom_admin | ".$vocab["delete"]."
"; } if ($nombre == 0) { echo "

".$vocab["no_user_area"]."

"; } ?>

".$vocab["no_restricted_area"].""; } else { echo "

".$vocab["no_area"]."

"; } } // fin de l'affichage de la colonne de droite echo ""; ?>