libdir.'/adminlib.php'); $adminroot = admin_get_root(); admin_externalpage_setup('enrolment', $adminroot); $CFG->pagepath = 'enrol/mnet'; require_once("$CFG->dirroot/enrol/enrol.class.php"); /// Open the factory class $enrolment = enrolment_factory::factory('mnet'); /// If data submitted, then process and store. if ($frm = data_submitted()) { } /// Otherwise fill and print the form. /// get language strings $str = get_strings(array('enrolmentplugins', 'configuration', 'users', 'administration')); admin_externalpage_print_header($adminroot); /// Print current enrolment type description print_simple_box_start("center", "80%"); print_heading($options[$enrol]); print_simple_box_start("center", "60%", '', 5, 'informationbox'); print_string("description", "enrol_$enrol"); print_simple_box_end(); echo "
"; print ('' . '' . '' . '' . '' . '' . ''); $hosts = $enrolment->list_remote_servers(); foreach ($hosts as $host) { print ('' . "" . '' . "" . '' . ''); } print ('
Name Enrolments Available Courses Activity
wwwroot}/enrol/mnet/remote_courses.php?host={$host->id}\">{$host->name} - (View) - (wwwroot}/enrol/mnet/remote_courses.php?host={$host->id}\">Enrol) Logs
'); print_simple_box_end(); admin_externalpage_print_footer($adminroot); ?>