From f5f5a570652c195fc3a42ec9e7950ecdd1d06210 Mon Sep 17 00:00:00 2001 From: tabithakipanga <62544435+tabithakipanga@users.noreply.github.com> Date: Fri, 12 Jun 2020 22:58:13 -0700 Subject: [PATCH 1/2] Course.php:the resubmit button is added to allow student to resubmit their homework --- Course.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Course.php b/Course.php index 9354062..3fadb2f 100644 --- a/Course.php +++ b/Course.php @@ -224,9 +224,10 @@ } ; - echo "
+ echo "
$title
$ins -
Posted : $posted       Deadline : $deadline       ($marks Marks)     Missed !
Attachments : $full_link
+
Posted : $posted       Deadline : $deadline       ($marks Marks)     Missed !         Re-Submit +
Attachments : $full_link
"; }} From 7a11cb691223e5db12e884d71fb911660002e6e3 Mon Sep 17 00:00:00 2001 From: tabithakipanga <62544435+tabithakipanga@users.noreply.github.com> Date: Fri, 12 Jun 2020 23:58:27 -0700 Subject: [PATCH 2/2] Course.php: the lab report was not appearing when groupid is empty, so I corrected that --- Course.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Course.php b/Course.php index 3fadb2f..f6d5f27 100644 --- a/Course.php +++ b/Course.php @@ -105,10 +105,10 @@ while($row = mysqli_fetch_assoc($resultx1)) {$_SESSION['group_id']=$row['Course_Group_id'];} -if($group_id==""){$group_id=-1;} - $group_id=$_SESSION['group_id']; +if($group_id==""){$group_id=-1;} + $var="SELECT Type,Lab_Report_ID,Marks, `Course_ID`, `Posted_Date`, `Deadline`, `Instructions`, lab_reports_table.Title, `Attachment_link_1`, `Attachment_link_2`, `Attachment_link_3`, `Attachment_link_4` FROM `lab_reports_table` WHERE Course_ID=$course_id " @@ -170,6 +170,9 @@