From da6ffcf3063ddcbe7a23ea01e738de6cfc9a4b36 Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Fri, 4 Aug 2023 18:14:05 +0800 Subject: [PATCH] If a user has already logged in, he will not see the login page again after he clicks the LRR logo. --- Courses.php | 11 ++--------- Header.php | 2 +- index.php | 2 ++ 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/Courses.php b/Courses.php index e3401b7..33df546 100644 --- a/Courses.php +++ b/Courses.php @@ -358,12 +358,7 @@ WHERE Course_ID=$course_id"); - Course Portal > $user_name (Lecturer) > Course Listing -
-
- "; - + echo "
My courses
"; $result = mysqli_query($con,"SELECT `Course_ID`, `Course_Name`, `Academic_Year`, `Faculty`, " . "`Lecturer_User_ID`, `TA_User_ID`, `Course_Code`, `URL`, `Verify_New_Members` , users_table.Full_Name FROM `courses_table` INNER JOIN users_table ON users_table.User_ID=courses_table.Lecturer_User_ID where courses_table.Lecturer_User_ID=$user_d ORDER BY Academic_Year DESC, URL ASC"); @@ -376,8 +371,6 @@ INNER JOIN course_ta ON course_ta.Course_ID=courses_table.Course_ID where course_ta.TA=$user_d"); } - // $result = mysqli_query($con,"SELECT `Course_ID`, `Course_Name`, `Academic_Year`, `Faculty`, `Lecturer_User_ID`, `TA_User_ID`, `Course_Code`, `URL`, `Verify_New_Members` , users_table.Full_Name FROM `courses_table` INNER JOIN users_table ON users_table.User_ID=courses_table.Lecturer_User_ID"); - if(mysqli_num_rows($result)==0) {} else { while($row = mysqli_fetch_assoc($result)) { @@ -464,7 +457,7 @@ WHERE Lecturer_User_ID=$lecturer_id and course_students_table.Status='Pending'" Course code - URL (Leave blank to use Course Code & Year) + URL (leave blank to use course code & year) Academic year diff --git a/Header.php b/Header.php index d29f199..4cfa46f 100644 --- a/Header.php +++ b/Header.php @@ -18,7 +18,7 @@ if (mysqli_connect_errno()) { - LRR - Lab Report Repository + Lab Report Repository