}
if (isset($data->preview)) {
- $table = new object();
+ $table = new html_table();
if ($data->allocateby == 'no') {
$table->head = array(get_string('groupscount', 'group', $numgrps));
$table->size = array('100%');
$table->data[] = $line;
}
- $preview .= print_table($table, true);
+ $preview .= $OUTPUT->table($table);
} else {
$grouping = null;
}
$message.='</ul>';
}
- notice_yesno($message, 'delete.php', 'index.php', $optionsyes, $optionsno, 'post', 'get');
+ $formcontinue = html_form::make_button('delete.php', $optionsyes, get_string('yes'), 'post');
+ $formcancel = html_form::make_button('index.php', $optionsno, get_string('no'), 'get');
+ echo $OUTPUT->confirm($message, $formcontinue, $formcancel);
echo $OUTPUT->footer();
}
?>
print_header(get_string('deleteselectedgroup', 'group'), get_string('deleteselectedgroup', 'group'));
$optionsyes = array('id'=>$id, 'delete'=>1, 'courseid'=>$courseid, 'sesskey'=>sesskey(), 'confirm'=>1);
$optionsno = array('id'=>$courseid);
- notice_yesno(get_string('deletegroupconfirm', 'group', $group->name), 'group.php', 'index.php', $optionsyes, $optionsno, 'get', 'get');
+ $formcontinue = html_form::make_button('group.php', $optionsyes, get_string('yes'), 'get');
+ $formcancel = html_form::make_button($baseurl, $optionsno, get_string('no'), 'get');
+ echo $OUTPUT->confirm(get_string('deletegroupconfirm', 'group', $group->name), $formcontinue, $formcancel);
echo $OUTPUT->footer();
die;
print_header(get_string('deletegrouping', 'group'), get_string('deletegrouping', 'group'));
$optionsyes = array('id'=>$id, 'delete'=>1, 'courseid'=>$courseid, 'sesskey'=>sesskey(), 'confirm'=>1);
$optionsno = array('id'=>$courseid);
- notice_yesno(get_string('deletegroupingconfirm', 'group', $grouping->name), 'grouping.php', 'groupings.php', $optionsyes, $optionsno, 'get', 'get');
+ $formcontinue = html_form::make_button('grouping.php', $optionsyes, get_string('yes'), 'get');
+ $formcancel = html_form::make_button('groupings.php', $optionsno, get_string('no'), 'get');
+ echo $OUTPUT->confirm(get_string('deletegroupingconfirm', 'group', $grouping->name), $formcontinue, $formcancel);
echo $OUTPUT->footer();
die;
$data[] = $line;
}
}
-$table = new object();
+$table = new html_table();
$table->head = array($strgrouping, $strgroups, $struses, $stredit);
$table->size = array('30%', '50%', '10%', '10%');
$table->align = array('left', 'left', 'center', 'center');
$table->width = '90%';
$table->data = $data;
-print_table($table);
+echo $OUTPUT->table($table);
-echo '<div class="buttons">';
-print_single_button('grouping.php', array('courseid'=>$courseid), $srtnewgrouping);
-echo '</div>';
+echo $OUTPUT->container_start('buttons');
+echo $OUTPUT->button(html_form::make_button('grouping.php', array('courseid'=>$courseid), $srtnewgrouping));
+echo $OUTPUT->container_end();
echo $OUTPUT->footer();
if ($groupingid and $groupingid != $gpgid) {
continue; // do not show
}
- $table = new object();
+ $table = new html_table();
$table->head = array(get_string('groupscount', 'group', count($groupdata)), get_string('groupmembers', 'group'), get_string('usercount', 'group'));
$table->size = array('20%', '70%', '10%');
$table->align = array('left', 'left', 'center');
echo $OUTPUT->box(format_text($groupings[$gpgid]->description), 'generalbox boxwidthnarrow boxaligncenter');
}
}
- print_table($table, false);
+ echo $OUTPUT->table($table);
$printed = true;
}