aboutsummaryrefslogtreecommitdiff
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
parentf50d216c29b57e12ff979d95b6ac5ea2bb92cfd0 (diff)
added admin menu to show-user. moved menu to top for adduser and admin-show
-rw-r--r--admin-addusers.php4
-rw-r--r--admin-show.php3
-rw-r--r--show-user.php19
3 files changed, 22 insertions, 4 deletions
diff --git a/admin-addusers.php b/admin-addusers.php
index 880a535..f00ded0 100644
--- a/admin-addusers.php
+++ b/admin-addusers.php
@@ -13,7 +13,7 @@ if ($login !== "admin") {
<!DOCTYPE html>
<html>
<body>
-<h1>Add Users</h1>
+
<table>
<tr>
<td>
@@ -27,7 +27,7 @@ if ($login !== "admin") {
</td>
</tr>
</table>
-
+<h1>Add Users</h1>
<p> Die Teilnehmer werden aus dem Moodlekurs der Veranstaltung übernommen.
Dazu die Teilnehmer als csv exportieren. Die csv Datei
dann mit den Angaben zum Kurs und zum Semester hier hochladen. Die
diff --git a/admin-show.php b/admin-show.php
index 10394d8..7f6c99b 100644
--- a/admin-show.php
+++ b/admin-show.php
@@ -17,7 +17,6 @@ if ($login !== "admin") {
<!DOCTYPE html>
<html>
<body>
-<h1>Listenansicht</h1>
<table>
<tr>
@@ -33,6 +32,8 @@ if ($login !== "admin") {
</tr>
</table>
+<h1>Listenansicht</h1>
+
<?php
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>