From a4a413f70099595607a782e075ef7ed358593fc0 Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Wed, 9 Aug 2023 14:18:05 +0800 Subject: [PATCH] Use card class while displaying assignments in New and Marked tabs. --- Course.php | 21 ++++++++++----------- Courses.php | 4 ++-- index.php | 2 +- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/Course.php b/Course.php index e8329fa..eecf2a3 100644 --- a/Course.php +++ b/Course.php @@ -171,11 +171,13 @@ if( $_SESSION['user_type'] == "Student") if($att4!=""){ $full_link= $full_link."| $att4"; } - echo "
-
Time left: $days_remaining
- $title ($Marks Marks, $type)
$ins -
Posted:$posted   Deadline:$deadline        Submit
Attachments : $full_link
-
"; + echo "
+
$title
($Marks Marks, $type)

$ins

+

Attachments: $full_link

+

Posted: $posted    Deadline: $deadline

+
Time left: $days_remaining
+

Submit

+
"; }} echo ""; @@ -417,9 +419,8 @@ where Lab_Report_ID=$lab_repo_id and (lab_report_submissions.Student_id='$studen } - echo "
- $title ($marks marks out of $Originalmarks)
Lecturer feedback: $notes   $remarking
Submitted files :"; - + echo "
+
$title
($marks marks out of $Originalmarks)

Lecturer feedback $notes    $remarking

Submitted files: "; $Sub_result = mysqli_query($con,"SELECT `Submission_ID`, `Submission_Date`, lab_report_submissions.Lab_Report_ID, lab_report_submissions.Student_id sub_std, lab_report_submissions.Course_Group_id, `Attachment1`, `Notes`, `Attachment2`, `Attachment3`, `Attachment4`, `Marks`, lab_report_submissions.Status, @@ -458,7 +459,7 @@ where Lab_Report_ID=$lab_repo_id and (lab_report_submissions.Student_id='$studen } }} - echo "
"; + echo "
"; ?> @@ -550,8 +551,6 @@ where course_group_members_table.Course_Group_id=$id"); } ?> - - diff --git a/Courses.php b/Courses.php index fcf3d81..18e0fda 100644 --- a/Courses.php +++ b/Courses.php @@ -354,7 +354,7 @@ WHERE Course_ID=$course_id"); My courses"; + 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"); @@ -572,7 +572,7 @@ if( $_SESSION['user_type']=="Student") } } // Otherwise, list the student's joined courses (already done), in reverse chronological order - echo "

My courses

"; + echo "

My courses

"; $result = mysqli_query($con,"SELECT users_table.Full_Name, course_students_table.Status, courses_table.Course_ID, `Course_Name`, `Academic_Year`, `Faculty`, `Lecturer_User_ID`, `TA_User_ID`, `Course_Code`, `URL`, `Verify_New_Members` FROM `courses_table` INNER JOIN users_table ON users_table.User_ID=courses_table.Lecturer_User_ID diff --git a/index.php b/index.php index 16d97f6..1fc6da5 100644 --- a/index.php +++ b/index.php @@ -71,7 +71,7 @@ if (isset($_SESSION["user_fullname"])) {