set_url ( '/enrol/manage.php'); $PAGE->set_context($systemcontext); $PAGE->set_pagelayout ( 'admin' ); //$PAGE->set_heading ( $course->fullname ); $PAGE->navbar->add ( get_string ( 'confirmusers', 'enrol_apply' ) ); $PAGE->set_title ( "$site->shortname: " . get_string ( 'confirmusers', 'enrol_apply' ) ); if (isset ( $_POST ['enrolid'] )) { if ($_POST ['enrolid']) { if ($_POST ['type'] == 'confirm') { confirmEnrolment ( $_POST ['enrolid'] ); } elseif ($_POST ['type'] == 'cancel') { cancelEnrolment ( $_POST ['enrolid'] ); } redirect ( "$CFG->wwwroot/enrol/apply/manage.php" ); } } $enrols = getAllEnrolment(); echo $OUTPUT->header (); echo $OUTPUT->heading ( get_string ( 'confirmusers', 'enrol_apply' ) ); echo '
'; echo ''; echo $OUTPUT->footer ();