diff --git a/course/category.php b/course/category.php
index 606654e7b54..0f79b1af924 100644
--- a/course/category.php
+++ b/course/category.php
@@ -406,7 +406,12 @@
make_categories_list($movetocategories, $notused, 'moodle/category:manage');
$movetocategories[$category->id] = get_string('moveselectedcoursesto');
echo '
| ';
- choose_from_menu($movetocategories, 'moveto', $category->id, '', "javascript:submitFormById('movecourses')");
+ $selectmenu = new moodle_select_menu();
+ $selectmenu->options = $movetocategories;
+ $selectmenu->name = 'moveto';
+ $selectmenu->selectedvalue = $category->id;
+ $selectmenu->add_action('change', 'submit_form_by_id', array('id' => 'movecourses'));
+ echo $OUTPUT->select_menu($selectmenu);
echo '';
echo ' |
';
}
diff --git a/course/report/participation/index.php b/course/report/participation/index.php
index 6b6d9b8f4e3..f376a08b411 100644
--- a/course/report/participation/index.php
+++ b/course/report/participation/index.php
@@ -13,6 +13,8 @@
$action = optional_param('action', '', PARAM_ALPHA);
$page = optional_param('page', 0, PARAM_INT); // which page to show
$perpage = optional_param('perpage', DEFAULT_PAGE_SIZE, PARAM_INT); // how many per page
+
+ $PAGE->set_url('course/report/participation/index.php', compact('id', 'roleid', 'instanceid', 'timefrom', 'page', 'perpage'));
if ($action != 'view' and $action != 'post') {
$action = ''; // default to all (don't restrict)
@@ -271,7 +273,12 @@
echo ''."\n";
}
$displaylist['messageselect.php'] = get_string('messageselectadd');
- choose_from_menu ($displaylist, "formaction", "", get_string("withselectedusers"), "if(checksubmit(this.form))this.form.submit();", "");
+ $selectmenu = new moodle_select_menu();
+ $selectmenu->options = $displaylist;
+ $selectmenu->name = "formaction";
+ $selectmenu->label = get_string("withselectedusers");
+ $selectmenu->add_action('change', 'conditionalsubmit', array('formid' => 'studentsform'));
+ echo $OUTPUT->select_menu($selectmenu);
helpbutton("participantswithselectedusers", get_string("withselectedusers"));
echo ''."\n";
echo ''."\n";
diff --git a/course/search.php b/course/search.php
index 3089a06bf29..0762d67c9f1 100644
--- a/course/search.php
+++ b/course/search.php
@@ -14,7 +14,9 @@
$show = optional_param('show', 0, PARAM_INT);
$blocklist = optional_param('blocklist', 0, PARAM_INT);
$modulelist= optional_param('modulelist', '', PARAM_ALPHAEXT);
-
+
+ $PAGE->set_url('course/search.php', compact('search', 'page', 'perpage', 'blocklist', 'modulelist', 'edit'));
+ $PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
$search = trim(strip_tags($search)); // trim & clean raw searched string
if ($search) {
@@ -307,7 +309,12 @@
echo "
";
echo "\n";
echo "\n";
- choose_from_menu ($displaylist, "moveto", "", get_string("moveselectedcoursesto"), "javascript: getElementById('movecourses').submit()");
+ $selectmenu = new moodle_select_menu();
+ $selectmenu->options = $displaylist;
+ $selectmenu->name = "moveto";
+ $selectmenu->label = get_string("moveselectedcoursesto");
+ $selectmenu->add_action('change', 'submit_form_by_id', array('id' => 'movecourses'));
+ echo $OUTPUT->select_menu($selectmenu);
echo "\n\n";
echo "\n";