Visitors.php: indent code

Bug203-Hui
Lan Hui 2021-10-20 23:10:38 +08:00
parent fb72ee5a63
commit 6083fa3a6c
2 changed files with 42 additions and 46 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@ -1,14 +1,11 @@
<?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>
@ -22,8 +19,9 @@ 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 {
while ($row = mysqli_fetch_assoc($result)) {
$att1 = $row['Attachment1']; $att1 = $row['Attachment1'];
$att2 = $row['Attachment2']; $att2 = $row['Attachment2'];
@ -53,7 +51,6 @@ WHERE Visibility='Public' ");
$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'>
@ -61,7 +58,6 @@ WHERE Visibility='Public' ");
<br> <span style='font-size:8pt'>Submission Date :$sdate &nbsp;&nbsp; &nbsp; Files : $full_link </span> <br> <span style='font-size:8pt'>Submission Date :$sdate &nbsp;&nbsp; &nbsp; Files : $full_link </span>
</div> </div>
"; ";
}
}}?> } ?>
</div> </div>