forked from mrlan/LRR
SubmitLab.php: indent code
parent
6083fa3a6c
commit
4b278fbcd1
|
@ -9,22 +9,18 @@ include 'Header.php';
|
||||||
|
|
||||||
<div class='row' style='width:80%;margin:auto;'>
|
<div class='row' style='width:80%;margin:auto;'>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$c_date = date("Y-m-d H:i");
|
$c_date = date("Y-m-d H:i");
|
||||||
$student_id = $_SESSION["user_student_id"];
|
$student_id = $_SESSION["user_student_id"];
|
||||||
|
|
||||||
if(!empty($_GET["id"]))
|
if (!empty($_GET["id"])) {
|
||||||
{
|
|
||||||
$id = $_GET["id"];
|
$id = $_GET["id"];
|
||||||
$url = $_GET["url"];
|
$url = $_GET["url"];
|
||||||
|
|
||||||
$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` WHERE Lab_Report_ID=$id and Deadline > '$c_date' ORDER by Lab_Report_ID DESC");
|
$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` 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)) {
|
||||||
|
@ -48,14 +44,12 @@ if(!empty($_GET["id"]))
|
||||||
$_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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$full_link = "<a href='~\..\Lab_Report_Assignments\\$att1'>$att1</a>";
|
$full_link = "<a href='~\..\Lab_Report_Assignments\\$att1'>$att1</a>";
|
||||||
|
|
||||||
if ($att2 != "") {
|
if ($att2 != "") {
|
||||||
|
@ -86,9 +80,6 @@ $Group_ID = $_SESSION["Group_ID"];
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div style="width:80%;margin:auto;">
|
<div style="width:80%;margin:auto;">
|
||||||
|
|
||||||
<h3> Submit Lab Report Assignment </h3>
|
<h3> Submit Lab Report Assignment </h3>
|
||||||
|
@ -97,7 +88,6 @@ $Group_ID = $_SESSION["Group_ID"];
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
|
||||||
<form method='post' enctype='multipart/form-data' action='Script.php'>
|
<form method='post' enctype='multipart/form-data' action='Script.php'>
|
||||||
<input type='hidden' name='frm_submitlab' value='true' required='' />
|
<input type='hidden' name='frm_submitlab' value='true' required='' />
|
||||||
<input type='hidden' name='lab_id' value='<?php echo $id; ?>' required='' />
|
<input type='hidden' name='lab_id' value='<?php echo $id; ?>' required='' />
|
||||||
|
|
Loading…
Reference in New Issue