user managment now shows to which station users with the user group station are binded

This commit is contained in:
2022-06-09 22:23:10 +02:00
parent 1197c6e07f
commit 3c613cca33
3 changed files with 3 additions and 1 deletions

View File

@@ -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;

View File

@@ -146,6 +146,7 @@ function load_users($con) {
echo "<tr>\n";
echo "<td>" . $row['user_name'] . "</td>\n";
echo "<td>" . $row['user_group'] . "</td>\n";
echo "<td>" . $row['s_id'] . "</td>\n";
echo "</tr>\n";
}
}