From 3c613cca33c8d4a65f6bd4f35418880df288e614 Mon Sep 17 00:00:00 2001 From: Grisu Date: Thu, 9 Jun 2022 22:23:10 +0200 Subject: [PATCH] user managment now shows to which station users with the user group station are binded --- app/public/manage_user.php | 1 + app/scripts/database_queries.php | 2 +- app/scripts/functions.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/public/manage_user.php b/app/public/manage_user.php index 81a34a5..ee9976f 100644 --- a/app/public/manage_user.php +++ b/app/public/manage_user.php @@ -22,6 +22,7 @@ Name Benutzergruppe + Gebunden an Station diff --git a/app/scripts/database_queries.php b/app/scripts/database_queries.php index f7cfdf9..b384558 100644 --- a/app/scripts/database_queries.php +++ b/app/scripts/database_queries.php @@ -191,7 +191,7 @@ function write_team($con, $team_name, $fire_department) { function get_users($con) { try { - $stmt = $con->prepare("SELECT user_name, user_group FROM users"); + $stmt = $con->prepare("SELECT user_name, user_group, s_id FROM users"); $stmt->execute(); $stmt->setFetchMode(PDO::FETCH_ASSOC); return $stmt; diff --git a/app/scripts/functions.php b/app/scripts/functions.php index 2c0da52..dccd485 100644 --- a/app/scripts/functions.php +++ b/app/scripts/functions.php @@ -146,6 +146,7 @@ function load_users($con) { echo "\n"; echo "" . $row['user_name'] . "\n"; echo "" . $row['user_group'] . "\n"; + echo "" . $row['s_id'] . "\n"; echo "\n"; } } \ No newline at end of file