user managment now shows to which station users with the user group station are binded
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user