libdir.'/adminlib.php'); $adminroot = admin_get_root(); admin_externalpage_setup('mnetenrol', $adminroot); $CFG->pagepath = 'admin/mnet'; require_once("$CFG->dirroot/enrol/enrol.class.php"); /// Open the factory class $enrolment = enrolment_factory::factory('mnet'); $mnethost = required_param('host', PARAM_INT); $courses = $enrolment->fetch_remote_courses($mnethost); /// Print the page admin_externalpage_print_header($adminroot); print_box(get_string("description", "enrol_mnet")); echo "
"; print (''); $icon = "pixpath/i/course.gif\"". " class=\"icon\" alt=\"".get_string("course")."\" />"; foreach ($courses as $course) { $link = $CFG->wwwroot . '/admin/mnet/enr_course_enrol.php?' . "host={$mnethost}&courseid={$course->id}&sesskey={$USER->sesskey}"; print ('' . "" . "" . '' . '' . "" . ''); } print ('
$icon".s($course->shortname). ' '.s($course->fullname). "
{$course->summary}
'); admin_externalpage_print_footer($adminroot); ?>