Update UI
Bug34-Lamashevskyi
Dmytro Lamashevski 2022-06-16 13:24:24 +02:00
parent b5bdfa4b03
commit 62c708e12f
1 changed files with 8 additions and 4 deletions

View File

@ -370,12 +370,13 @@ WHERE Course_id=$c_id");
if (mysqli_num_rows($result) == 0) {
echo "You have no Group in this Course";
} else {
echo "<div class=\"container\">";
while ($row = mysqli_fetch_assoc($result)) {
$name = $row['Group_Name'];
$leader = $row['Full_Name'] . "(" . $row['Group_Leader'] . ")";
$id = $row['Course_Group_id'];
echo "<div class='btn-default'><small> $name - Leader : $leader </small></div>";
echo "<div class=\"card\" ><div class=\"card-body\">
<h5 class=\"card-title\">$name - Leader : $leader </h5> <ul class=\"list-group list-group-flush\">";
$rs2 = mysqli_query($con, "SELECT `ID`, `Course_Group_id`, course_group_members_table.Student_ID,
course_group_members_table.`Status`,users_table.Full_Name FROM `course_group_members_table`
@ -388,9 +389,12 @@ where course_group_members_table.Course_Group_id=$id");
$status = $row['Status'];
$Student_ID = $row['Student_ID'];
echo "<li><small> $name-$Student_ID ($status)</small></li>";
echo "<li class=\"list-group-item\">$name-$Student_ID ($status)</li>";
}
echo " </ul></div></div>";
}
echo "</div>";
}
?>