SubmitLab.php: better spacing
parent
5ff32fae1a
commit
16235b175a
|
@ -30,14 +30,10 @@ include 'Header.php';
|
||||||
$result1 = mysqli_query($con, "SELECT Type, Lab_Report_ID, Course_ID, Posted_Date, Deadline, Instructions, Title, Attachment_link_1, Attachment_link_2, Attachment_link_3, Attachment_link_4
|
$result1 = mysqli_query($con, "SELECT Type, Lab_Report_ID, Course_ID, Posted_Date, Deadline, Instructions, Title, Attachment_link_1, Attachment_link_2, Attachment_link_3, Attachment_link_4
|
||||||
FROM lab_reports_table
|
FROM lab_reports_table
|
||||||
WHERE Lab_Report_ID=$id AND Deadline>'$c_date' ORDER BY Lab_Report_ID DESC");
|
WHERE Lab_Report_ID=$id AND Deadline>'$c_date' ORDER BY Lab_Report_ID DESC");
|
||||||
if(mysqli_num_rows($result1) == 0)
|
if(mysqli_num_rows($result1) == 0) {
|
||||||
{
|
|
||||||
echo "No active assignments for this course so far.";
|
echo "No active assignments for this course so far.";
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
while($row = mysqli_fetch_assoc($result1)) {
|
while($row = mysqli_fetch_assoc($result1)) {
|
||||||
|
|
||||||
$Course_ID = $row['Course_ID'];
|
$Course_ID = $row['Course_ID'];
|
||||||
$title = $row['Title'];
|
$title = $row['Title'];
|
||||||
$ins = $row['Instructions'];
|
$ins = $row['Instructions'];
|
||||||
|
@ -57,8 +53,7 @@ include 'Header.php';
|
||||||
$_SESSION["Group_ID"] = $row['Course_Group_id'];
|
$_SESSION["Group_ID"] = $row['Course_Group_id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if($_SESSION["Group_ID"] < 1)
|
if ($_SESSION["Group_ID"] < 1) {
|
||||||
{
|
|
||||||
echo" <center><h3> This Lab report can only be submitted by Group Admin </h3> </center> ";
|
echo" <center><h3> This Lab report can only be submitted by Group Admin </h3> </center> ";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -70,6 +65,7 @@ include 'Header.php';
|
||||||
if ($att2 != ""){
|
if ($att2 != ""){
|
||||||
$full_link = $full_link."| <a href='~\..\Lab_Report_Assignments\\$att2'>$att2</a>";
|
$full_link = $full_link."| <a href='~\..\Lab_Report_Assignments\\$att2'>$att2</a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($att3 != ""){
|
if ($att3 != ""){
|
||||||
$full_link = $full_link."| <a href='~\..\Lab_Report_Assignments\\$att3'>$att3</a>";
|
$full_link = $full_link."| <a href='~\..\Lab_Report_Assignments\\$att3'>$att3</a>";
|
||||||
}
|
}
|
||||||
|
@ -79,7 +75,6 @@ include 'Header.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<div><a href='~\..\Course.php?url=$url'> Courses > ($url) $course_name > $title </a></div>";
|
echo "<div><a href='~\..\Course.php?url=$url'> Courses > ($url) $course_name > $title </a></div>";
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue