" . 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['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";
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"].""; } ?> |