groups->addGroup($_POST['course-id'],$_POST['group-name']);
}
if(isSet($_GET['remove'])) {
$this->groups->removeGroup($_GET['remove']);
}
if(isSet($_GET['manage'])) {
require_once('manage-group.php');
} else {
?>
My groups
Name |
Course |
Participants |
Actions |
|
groups->getGroups()) {
foreach($groups as $group) {
$count = $this->groups->getGroupParticipantsCount($group->id);
echo ''.$group->group_name.' | '.$group->course_name.' | '.$count.' | ';
echo 'Delete |
';
}
}
else {
echo 'No groups. |
';
}
?>
I belong to groups
Name |
Course |
Participants |
Actions |
groups->getGroups($owner = false)) {
foreach($groups as $group) {
$count = $this->groups->getGroupParticipantsCount($group->id);
echo ''.$group->group_name.' | kursus | '.$count.' | ';
echo 'Delete |
';
}
}
else {
echo 'No groups. |
';
}
?>