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) { if (mysqli_num_rows($result) == 0) {
echo "You have no Group in this Course"; echo "You have no Group in this Course";
} else { } else {
echo "<div class=\"container\">";
while ($row = mysqli_fetch_assoc($result)) { while ($row = mysqli_fetch_assoc($result)) {
$name = $row['Group_Name']; $name = $row['Group_Name'];
$leader = $row['Full_Name'] . "(" . $row['Group_Leader'] . ")"; $leader = $row['Full_Name'] . "(" . $row['Group_Leader'] . ")";
$id = $row['Course_Group_id']; $id = $row['Course_Group_id'];
echo "<div class=\"card\" ><div class=\"card-body\">
echo "<div class='btn-default'><small> $name - Leader : $leader </small></div>"; <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, $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` course_group_members_table.`Status`,users_table.Full_Name FROM `course_group_members_table`
@ -387,10 +388,13 @@ where course_group_members_table.Course_Group_id=$id");
$id = $row['Course_Group_id']; $id = $row['Course_Group_id'];
$status = $row['Status']; $status = $row['Status'];
$Student_ID = $row['Student_ID']; $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>";
} }
?> ?>