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 ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; foreach ( $enrols as $enrol ) { echo ''; echo ''; echo ''; echo ''; echo ''; } echo '
 ' . get_string ( 'coursename', 'enrol_apply' ) . '' . get_string ( 'applyuser', 'enrol_apply' ) . '' . get_string ( 'applyusermail', 'enrol_apply' ) . '' . get_string ( 'applydate', 'enrol_apply' ) . '
' . format_string($enrol->course) . '' . $enrol->firstname . ' ' . $enrol->lastname . '' . $enrol->email . '' . date ( "Y-m-d", $enrol->timecreated ) . '
'; echo '

  

'; echo '
'; echo ''; echo $OUTPUT->footer ();