From ef87c1248f28ac9cd99a2bca7c8a699a9944d7b9 Mon Sep 17 00:00:00 2001 From: newtechAI Date: Wed, 6 Dec 2023 02:34:46 +0100 Subject: [PATCH] Fix Bug352 --- Admin.php | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/Admin.php b/Admin.php index 6accee9..3234bf3 100644 --- a/Admin.php +++ b/Admin.php @@ -9,7 +9,7 @@ include 'Header.php'; -
+ Full name
Email -
- Passport No. (used as the initial password) -
+
+ Initial password + + + Leave it empty to let LRR generate a strong password for you.

User type: - TA (Teaching Assistant) '; - } else if ($_SESSION['user_type'] == "Admin"){ - echo " Lecturer "; - } - ?> + + TA (Teaching Assistant) '; + } else if ($_SESSION['user_type'] == "Admin"){ + echo " Lecturer "; + } + + ?> +

- + ID Name Email - Passport / ID Reset password Block/Activate @@ -130,7 +135,7 @@ if ($_SESSION['user_type'] != "Lecturer" && $_SESSION['user_type'] != "Admin") { } while ($row = mysqli_fetch_assoc($result)) { - $pass = $row['Passport_Number']; + $pass = $row['Password']; $btn = ""; if ($row['Status'] == "Active") { $newstatus = "Blocked"; @@ -140,7 +145,7 @@ if ($_SESSION['user_type'] != "Lecturer" && $_SESSION['user_type'] != "Admin") { $btnBlock = ""; } - echo "" . $row['User_ID'] . "" . $row['Full_Name'] . "" . $row['Email'] . " " . $row['Passport_Number'] . "$btn$btnBlock"; + echo "" . $row['User_ID'] . "" . $row['Full_Name'] . "" . $row['Email'] . "$btn$btnBlock"; } ?>