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