wwwroot}/course/mod.php" ?>">
: id)){ $query = " SELECT c.id, CONCAT(c.shortname, ' - ', c.fullname) as name FROM {$CFG->prefix}course as c, {$CFG->prefix}context as co, {$CFG->prefix}role_assignments as ra WHERE ra.contextid = co.id AND co.instanceid = c.id AND co.contextlevel = ".CONTEXT_COURSE." AND ra.roleid IN ('$managerroleslist') AND c.id != $COURSE->id ORDER BY c.shortname "; } else{ // admin can move everything !! $query = " SELECT id, CONCAT(shortname, ' ', fullname) as name FROM {$CFG->prefix}course WHERE id != $COURSE->id ORDER BY shortname "; } $availablecoursesmenu = get_records_sql_menu($query); $ajaxSectionUpdater = (@$CFG->enableajax) ? 'ajaxSectionUpdater(this);' : '' ; choose_from_menu($availablecoursesmenu, 'course', '', 'choose', $ajaxSectionUpdater); $cancontinue = 1; } */ $cancontinue = 0; $mycourses = get_my_courses($USER->id, 'shortname ASC'); $availablecoursesmenu = array(); foreach($mycourses as $aCourse){ if (isteacheredit($aCourse->id, $USER->id)){ $availablecoursesmenu[$aCourse->id] = shorten_text($aCourse->shortname . ' - ' . $aCourse->fullname, 50); } } if (count($availablecoursesmenu)){ $ajaxSectionUpdater = (@$CFG->enableajax) ? 'ajaxSectionUpdater(this);' : '' ; choose_from_menu($availablecoursesmenu, 'course', '', 'choose', $ajaxSectionUpdater); $cancontinue = 1; } else{ print_string('noothercoursestoedit', 'coursexfers'); } ?>
: enableajax){ ?> -
:
: visible) ? "checked=\"checked\"" : '' ; ?> />
:
:
"; } ?>