forked from mrlan/LRR
Visitors.php: indent code
parent
fb72ee5a63
commit
6083fa3a6c
62
Visitors.php
62
Visitors.php
|
@ -1,67 +1,63 @@
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$page='Submit LAB+';
|
$page = 'Submit LAB+';
|
||||||
include 'Header.php';
|
include 'Header.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<div class='row' style='width:80%;margin:auto;'>
|
<div class='row' style='width:80%;margin:auto;'>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
echo " <div class='alert' style='margin-left:20px;border-bottom:2px solid #1D91EF;'> <a href='~\..\Courses.php?course=$url'>
|
echo " <div class='alert' style='margin-left:20px;border-bottom:2px solid #1D91EF;'> <a href='~\..\Courses.php?course=$url'>
|
||||||
LRRS > Visitor Portal > Public Lab Reports
|
LRRS > Visitor Portal > Public Lab Reports
|
||||||
<br> <span style='font-size:8pt'> </span>
|
<br> <span style='font-size:8pt'> </span>
|
||||||
</a></div>
|
</a></div>
|
||||||
";
|
";
|
||||||
|
|
||||||
$result = mysqli_query($con,"SELECT `Submission_ID`, `Submission_Date`, lab_report_submissions.Student_id,
|
$result = mysqli_query($con, "SELECT `Submission_ID`, `Submission_Date`, lab_report_submissions.Student_id,
|
||||||
`Attachment1`, `Notes`, `Attachment2`, `Attachment3`, `Attachment4`, `Marks`, `Title`, `Visibility` ,
|
`Attachment1`, `Notes`, `Attachment2`, `Attachment3`, `Attachment4`, `Marks`, `Title`, `Visibility` ,
|
||||||
users_table.Full_Name,course_groups_table.Group_Name
|
users_table.Full_Name,course_groups_table.Group_Name
|
||||||
FROM `lab_report_submissions`
|
FROM `lab_report_submissions`
|
||||||
left join users_table on users_table.Student_ID=lab_report_submissions.Student_id
|
left join users_table on users_table.Student_ID=lab_report_submissions.Student_id
|
||||||
left JOIN course_groups_table on course_groups_table.Course_Group_id=lab_report_submissions.Course_Group_id
|
left JOIN course_groups_table on course_groups_table.Course_Group_id=lab_report_submissions.Course_Group_id
|
||||||
WHERE Visibility='Public' ");
|
WHERE Visibility='Public' ");
|
||||||
if(mysqli_num_rows($result)==0)
|
if (mysqli_num_rows($result) == 0) {
|
||||||
{} else { while($row = mysqli_fetch_assoc($result)) {
|
} else {
|
||||||
$att1=$row['Attachment1'];
|
while ($row = mysqli_fetch_assoc($result)) {
|
||||||
$att2=$row['Attachment2'];
|
$att1 = $row['Attachment1'];
|
||||||
|
$att2 = $row['Attachment2'];
|
||||||
|
|
||||||
$sdate=$row['Submission_Date'];
|
$sdate = $row['Submission_Date'];
|
||||||
$att3=$row['Attachment3'];
|
$att3 = $row['Attachment3'];
|
||||||
$att4=$row['Attachment4'];
|
$att4 = $row['Attachment4'];
|
||||||
$labid=$row['Lab_Report_ID'];
|
$labid = $row['Lab_Report_ID'];
|
||||||
$title=$row['Title'];
|
$title = $row['Title'];
|
||||||
|
|
||||||
$submitted_std=$row['Student_id'];
|
$submitted_std = $row['Student_id'];
|
||||||
$submitted_group=$row['Course_Group_id'];
|
$submitted_group = $row['Course_Group_id'];
|
||||||
$Submission_ID=$row['Submission_ID'];
|
$Submission_ID = $row['Submission_ID'];
|
||||||
$sname=$row['Full_Name'];
|
$sname = $row['Full_Name'];
|
||||||
$gname=$row['Group_Name'];
|
$gname = $row['Group_Name'];
|
||||||
$Visibility=$row['Visibility'];
|
$Visibility = $row['Visibility'];
|
||||||
|
|
||||||
$full_link="<a href='~\..\Lab_Report_Submisions\\$att1'>$att1</a>";
|
$full_link = "<a href='~\..\Lab_Report_Submisions\\$att1'>$att1</a>";
|
||||||
|
|
||||||
if($att2!=""){
|
if ($att2 != "") {
|
||||||
$full_link= $full_link."| <a href='~\..\Lab_Report_Submisions\\$att2'>$att2</a>";
|
$full_link = $full_link . "| <a href='~\..\Lab_Report_Submisions\\$att2'>$att2</a>";
|
||||||
}
|
}
|
||||||
if($att3!=""){
|
if ($att3 != "") {
|
||||||
$full_link= $full_link."| <a href='~\..\Lab_Report_Submisions\\$att3'>$att3</a>";
|
$full_link = $full_link . "| <a href='~\..\Lab_Report_Submisions\\$att3'>$att3</a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if($att4!=""){
|
if ($att4 != "") {
|
||||||
$full_link= $full_link."| <a href='~\..\Lab_Report_Submisions\\$att4'>$att4</a>";
|
$full_link = $full_link . "| <a href='~\..\Lab_Report_Submisions\\$att4'>$att4</a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo "
|
||||||
echo"
|
|
||||||
|
|
||||||
<div class='btn btn-default'>
|
<div class='btn btn-default'>
|
||||||
$title <small>by $gname $sname </small>
|
$title <small>by $gname $sname </small>
|
||||||
<br> <span style='font-size:8pt'>Submission Date :$sdate Files : $full_link </span>
|
<br> <span style='font-size:8pt'>Submission Date :$sdate Files : $full_link </span>
|
||||||
</div>
|
</div>
|
||||||
";
|
";
|
||||||
|
}
|
||||||
}}?>
|
} ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue