user managment now shows to which station users with the user group station are binded
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="col">Name</th>
|
<th scope="col">Name</th>
|
||||||
<th scope="col">Benutzergruppe</th>
|
<th scope="col">Benutzergruppe</th>
|
||||||
|
<th scope="col">Gebunden an Station</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ function write_team($con, $team_name, $fire_department) {
|
|||||||
|
|
||||||
function get_users($con) {
|
function get_users($con) {
|
||||||
try {
|
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->execute();
|
||||||
$stmt->setFetchMode(PDO::FETCH_ASSOC);
|
$stmt->setFetchMode(PDO::FETCH_ASSOC);
|
||||||
return $stmt;
|
return $stmt;
|
||||||
|
|||||||
@@ -146,6 +146,7 @@ function load_users($con) {
|
|||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td>" . $row['user_name'] . "</td>\n";
|
echo "<td>" . $row['user_name'] . "</td>\n";
|
||||||
echo "<td>" . $row['user_group'] . "</td>\n";
|
echo "<td>" . $row['user_group'] . "</td>\n";
|
||||||
|
echo "<td>" . $row['s_id'] . "</td>\n";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user