From a64a4e1053c4588bc7864b5b33fd99c1db563b61 Mon Sep 17 00:00:00 2001 From: Ibrahim <1525200991@qq.com> Date: Sat, 27 Nov 2021 23:02:44 +0800 Subject: [PATCH] Update 1: test cases 00-04 --- Admin.php | 20 +++++----- Header.php | 2 +- index.php | 8 ++-- signup.php | 14 +++---- test/SeleniumIbrahim/test_kit/admin.py | 26 ++++++------- test/SeleniumIbrahim/test_kit/utility.py | 49 ++++++++++++++++-------- 6 files changed, 69 insertions(+), 50 deletions(-) diff --git a/Admin.php b/Admin.php index 563dcdf..ea0bfac 100644 --- a/Admin.php +++ b/Admin.php @@ -51,11 +51,11 @@ if ($_SESSION['user_type'] != "Lecturer") { @@ -66,7 +66,7 @@ if ($_SESSION['user_type'] != "Lecturer") {

Create Lecturer/TA Accounts -
+ Full_Name @@ -76,9 +76,9 @@ if ($_SESSION['user_type'] != "Lecturer") { Passport_Number / ID (Used as Intial Password)
User Type : - Lecturer - T/A -
+ Lecturer + T/A +
Reset"; if ($row['Status'] == "Active") { $newstatus = "Blocked"; - $btnBlock = ""; + $btnBlock = ""; } else { $newstatus = "Active"; - $btnBlock = ""; + $btnBlock = ""; } echo "" . $row['User_ID'] . "" . $row['Full_Name'] . "" . $row['Email'] . " " . $row['Passport_Number'] . "$btn$btnBlock"; @@ -138,11 +138,11 @@ if ($_SESSION['user_type'] != "Lecturer") {
diff --git a/Header.php b/Header.php index 86ac5ce..cc5d2d5 100644 --- a/Header.php +++ b/Header.php @@ -64,7 +64,7 @@ if (mysqli_connect_errno()) {  Admin "; + echo "     Admin "; } ?> diff --git a/index.php b/index.php index 9d4a499..d5fed03 100644 --- a/index.php +++ b/index.php @@ -33,18 +33,18 @@ if (isset($_SESSION["user_fullname"])) {
Student ID / Instructor Email - +
Password - +
-
+

Reset my password

Don't have an account? - Sign Up + Sign Up
diff --git a/signup.php b/signup.php index 95bdfe3..b4dcd34 100644 --- a/signup.php +++ b/signup.php @@ -17,24 +17,24 @@ include 'Header.php';
- + Full Name - + Student ID - + Email - + Password (must include uppercase and lowercase letters, digits and special characters) - + Confirm Password - +
- +