aboutsummaryrefslogtreecommitdiff
path: root/show-user.php
diff options
context:
space:
mode:
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>2026-01-30 18:31:38 +0100
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>2026-01-30 18:31:38 +0100
commitbe637b6c9912434ff086f30a17769676a0f79a71 (patch)
treecfee18217a9d71fe043296b66a2d521c2ca616f9 /show-user.php
parentf50d216c29b57e12ff979d95b6ac5ea2bb92cfd0 (diff)
added admin menu to show-user. moved menu to top for adduser and admin-show
Diffstat (limited to 'show-user.php')
-rw-r--r--show-user.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/show-user.php b/show-user.php
index f0441c7..5d9a1f4 100644
--- a/show-user.php
+++ b/show-user.php
@@ -16,12 +16,29 @@ if ($login !== "admin" and $login !== "user") {
<!DOCTYPE html>
<html>
<body>
-
<table>
<tr>
+<?php
+if ($login === "admin") {
+?>
+<td>
+ <a href="admin-addusers.php">Add students</a>
+</td>
+<td>
+ <a href="admin-show.php">Show students</a>
+</td>
<td>
<a href="logout.php">Logout</a>
</td>
+<?php
+} elseif ($login === "user") {
+?>
+<td>
+ <a href="logout.php">Logout</a>
+</td>
+<?php
+}
+?>
</tr>
</table>