}
$title = str_replace('"', '"', $title);
+ $title = strip_tags($title);
include ("$CFG->dirroot/theme/$CFG->theme/header.html");
}
function print_group_menu($groups, $groupmode, $currentgroup, $urlroot) {
/// Prints an appropriate group selection menu
- echo '<table align="center"><tr><td>';
+/// Add an "All groups" to the start of the menu
+ $groupsmenu[0] = get_string("allgroups");
+ foreach ($groups as $key => $groupname) {
+ $groupsmenu[$key] = $groupname;
+ }
+
+ echo '<table><tr><td>';
if ($groupmode == VISIBLEGROUPS) {
print_string('groupsvisible');
} else {
}
echo ':';
echo '</td><td nowrap="nowrap" align="left" width="50%">';
- popup_form($urlroot.'&group=', $groups, 'selectgroup', $currentgroup, "", "", "", false, "self");
+ popup_form($urlroot.'&group=', $groupsmenu, 'selectgroup', $currentgroup, "", "", "", false, "self");
echo '</tr></table>';
}