From 7b1f2c829ff9c1193c99c3516fefca5fba88f0af Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Mon, 10 Aug 2009 08:38:45 +0000 Subject: [PATCH] MDL-19756 Renamed moodle_select to html_select for better API consistency --- admin/environment.php | 2 +- admin/filters.php | 4 +- admin/lang.php | 6 +- admin/roles/assign.php | 2 +- admin/roles/override.php | 2 +- auth/shibboleth/login.php | 2 +- backup/restore_form.html | 6 +- blocks/rss_client/managefeeds.php | 2 +- calendar/event_edit.html | 4 +- calendar/event_new.html | 4 +- calendar/view.php | 2 +- course/category.php | 4 +- course/format/topics/format.php | 2 +- course/format/weeks/format.php | 2 +- course/index.php | 2 +- course/lib.php | 4 +- course/report/log/lib.php | 2 +- course/report/participation/index.php | 4 +- course/report/stats/lib.php | 2 +- course/search.php | 2 +- enrol/authorize/config_form.php | 4 +- enrol/authorize/locallib.php | 6 +- enrol/mnet/config.html | 2 +- grade/edit/tree/index.php | 2 +- grade/edit/tree/lib.php | 2 +- grade/lib.php | 4 +- group/overview.php | 4 +- index.php | 2 +- lib/blocklib.php | 2 +- lib/deprecatedlib.php | 20 +- lib/grouplib.php | 4 +- lib/javascript-static.js | 4 +- lib/outputcomponents.php | 1696 ++++++++++++------------- lib/outputrenderers.php | 20 +- lib/questionlib.php | 2 +- lib/simpletest/testoutputlib.php | 8 +- lib/weblib.php | 2 +- login/index.php | 2 +- login/signup.php | 2 +- mod/choice/lib.php | 2 +- mod/data/field.php | 2 +- mod/data/field/date/field.class.php | 6 +- mod/feedback/analysis_course.php | 2 +- mod/forum/discuss.php | 2 +- mod/forum/lib.php | 2 +- mod/forum/search.php | 4 +- mod/glossary/lib.php | 2 +- mod/lesson/locallib.php | 2 +- mod/lesson/report.php | 2 +- mod/quiz/report/grading/report.php | 2 +- mod/scorm/datamodels/aicclib.php | 2 +- mod/scorm/datamodels/scorm_12lib.php | 2 +- mod/scorm/datamodels/scorm_13lib.php | 2 +- mod/scorm/locallib.php | 2 +- mod/scorm/report.php | 2 +- mod/wiki/admin.php | 2 +- mod/wiki/lib.php | 6 +- mod/wiki/view.php | 2 +- my/index.php | 2 +- question/editlib.php | 2 +- user/index.php | 10 +- user/profile/index.php | 2 +- 62 files changed, 956 insertions(+), 956 deletions(-) diff --git a/admin/environment.php b/admin/environment.php index 93c8bf043b..d1b84f1854 100644 --- a/admin/environment.php +++ b/admin/environment.php @@ -121,7 +121,7 @@ /// Print form and popup menu echo '
'.$strmoodleversion.' '; - $select = moodle_select::make_popup_form("$CFG->wwwroot/$CFG->admin/environment.php", 'version', $versions, 'selectversion', $version); + $select = html_select::make_popup_form("$CFG->wwwroot/$CFG->admin/environment.php", 'version', $versions, 'selectversion', $version); $select->nothinglabel = false; echo $OUTPUT->select($select); echo '
'; diff --git a/admin/filters.php b/admin/filters.php index 440d3d73ad..d71b2f4736 100644 --- a/admin/filters.php +++ b/admin/filters.php @@ -248,7 +248,7 @@ function get_table_row($filterinfo, $isfirstrow, $islastactive, $applytostrings) } // Disable/off/on - $select = moodle_select::make_popup_form(action_url($filter, 'setstate'), 'newstate', $activechoices, 'active' . basename($filter), $filterinfo->active); + $select = html_select::make_popup_form(action_url($filter, 'setstate'), 'newstate', $activechoices, 'active' . basename($filter), $filterinfo->active); $select->nothinglabel = false; $select->form->button->text = get_string('save', 'admin'); $row[] = $OUTPUT->select($select); @@ -271,7 +271,7 @@ function get_table_row($filterinfo, $isfirstrow, $islastactive, $applytostrings) $row[] = $updown; // Apply to strings. - $select = moodle_select::make_popup_form(action_url($filter, 'setapplyto'), 'stringstoo', $applytochoices, 'applyto' . basename($filter), $applytostrings); + $select = html_select::make_popup_form(action_url($filter, 'setapplyto'), 'stringstoo', $applytochoices, 'applyto' . basename($filter), $applytostrings); $select->nothinglabel = false; $select->disabled = $filterinfo->active == TEXTFILTER_DISABLED; $select->form->button->text = get_string('save', 'admin'); diff --git a/admin/lang.php b/admin/lang.php index a0ec39f37c..15e7cea962 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -140,7 +140,7 @@ echo $OUTPUT->box_start(); $currlang = current_language(); $langs = get_list_of_languages(false, true); - $select = moodle_select::make_popup_form("$CFG->wwwroot/$CFG->admin/lang.php", 'lang', $langs, "chooselang", $currlang); + $select = html_select::make_popup_form("$CFG->wwwroot/$CFG->admin/lang.php", 'lang', $langs, "chooselang", $currlang); $select->nothinglabel = false; $select->set_label($strcurrentlanguage.':'); echo $OUTPUT->select($select); @@ -494,7 +494,7 @@ //$selectionlabel .= $strfilestoredin; $selectionlabel .= $uselocal ? "{$currentlang}_local" : $currentlang; $selectionlabel .= '/'; - $select = moodle_select::make_popup_form("$CFG->wwwroot/$CFG->admin/lang.php?mode=compare", 'currentfile', $menufiles, "choosefile", $currentfile); + $select = html_select::make_popup_form("$CFG->wwwroot/$CFG->admin/lang.php?mode=compare", 'currentfile', $menufiles, "choosefile", $currentfile); $select->nothinglabel = $strchoosefiletoedit; $select->set_label($selectionlabel); echo $OUTPUT->select($select); @@ -761,7 +761,7 @@ //$selectionlabel .= $strfilestoredin; $selectionlabel .= $uselocal ? "{$currentlang}_local" : $currentlang; $selectionlabel .= '/help/'; - $select = moodle_select::make_popup_form("$CFG->wwwroot/$CFG->admin/lang.php?mode=helpfiles", 'currentfile', $menufiles, "choosefile", $currentfile); + $select = html_select::make_popup_form("$CFG->wwwroot/$CFG->admin/lang.php?mode=helpfiles", 'currentfile', $menufiles, "choosefile", $currentfile); $select->nothinglabel = $strchoosefiletoedit; $select->set_label($selectionlabel); echo $OUTPUT->select($select); diff --git a/admin/roles/assign.php b/admin/roles/assign.php index 07ba75bef8..c22c8f176b 100755 --- a/admin/roles/assign.php +++ b/admin/roles/assign.php @@ -373,7 +373,7 @@ /// Print a form to swap roles, and a link back to the all roles list. echo '