Courses.php: better spacing

Bug430-Eden2
Lan Hui 2023-09-08 19:42:49 +08:00
parent 849009e624
commit 33e454e3da
1 changed files with 22 additions and 23 deletions

View File

@ -571,29 +571,28 @@ include 'Header.php';
echo "<i class='fa fa-exclamation-circle'></i> You are not enrolled in any Course"; echo "<i class='fa fa-exclamation-circle'></i> You are not enrolled in any Course";
} else { } else {
while($row = mysqli_fetch_assoc($result)) { while($row = mysqli_fetch_assoc($result)) {
$name = $row['Course_Name']; $name = $row['Course_Name'];
$code = $row['Course_Code']; $code = $row['Course_Code'];
$faculty = $row['Faculty']; $faculty = $row['Faculty'];
$lecturer = $row['Full_Name']; $lecturer = $row['Full_Name'];
$academic_year = $row['Academic_Year']; $academic_year = $row['Academic_Year'];
$url = $row['URL']; $url = $row['URL'];
$id = $row['Course_ID']; $id = $row['Course_ID'];
$status = $row['Status']; $status = $row['Status'];
if($status == "Joined") {
if($status=="Joined") echo "<a href='~\..\Course.php?url=$url'>
{ <div class='btn btn-default' style='word-wrap:break-word'>
echo "<a href='~\..\Course.php?url=$url'> <div class='btn btn-default' style='word-wrap:break-word'> ($code) $name <br>
($code) - $name <br>($url) &nbsp;&nbsp;&nbsp; <i class='fa fa-check-circle'></i> $status &nbsp;&nbsp;&nbsp;&nbsp; ($url) &nbsp;&nbsp;&nbsp; <i class='fa fa-check-circle'></i> $status &nbsp;&nbsp;&nbsp;&nbsp; <br>
<br> <span style='font-size:8pt'>Faculty: $faculty &nbsp; Year: $academic_year &nbsp; Lecturer: $lecturer </span></div></a> <span style='font-size:8pt'>Faculty: $faculty &nbsp; Year: $academic_year &nbsp; Lecturer: $lecturer </span>
"; </div>
} </a>";
else } else {
{ echo "<div class='btn btn-default'>
echo "<div class='btn btn-default'> ($code) $name <i class='btn btn-sm btn-danger'> $status</i> <br>
($code) - $name <i class='btn btn-sm btn-danger'> $status</i> <span style='font-size:8pt'>Faculty: $faculty &nbsp; Year: $academic_year &nbsp; Lecturer: $lecturer </span>
<br> <span style='font-size:8pt'>Faculty: $faculty &nbsp; Year: $academic_year &nbsp; Lecturer: $lecturer </span></div> </div>";
"; }
}
} }
} }