]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19810 Upgraded calls to choose_from_menu
authornicolasconnault <nicolasconnault>
Tue, 18 Aug 2009 00:12:11 +0000 (00:12 +0000)
committernicolasconnault <nicolasconnault>
Tue, 18 Aug 2009 00:12:11 +0000 (00:12 +0000)
mod/hotpot/report.php

index f40641fcb3da3b4917bde641c4cf9bf76a022e02..33b288b028c117917cdc454af5c2fc42c502f1c4 100644 (file)
@@ -453,7 +453,7 @@ function hotpot_print_report_heading(&$course, &$cm, &$hotpot, &$mode) {
     echo $OUTPUT->heading($hotpot->name);
 }
 function hotpot_print_report_selector(&$course, &$hotpot, &$formdata) {
-    global $CFG, $DB;
+    global $CFG, $DB, $OUTPUT;
 
     $reports = hotpot_get_report_names('overview,simplestat,fullstat');
 
@@ -551,7 +551,7 @@ function hotpot_print_report_selector(&$course, &$hotpot, &$formdata) {
     print '</td><th align="right" scope="col">'.get_string('reportcontent', 'hotpot').':</th><td colspan="7">';
     foreach ($menus as $name => $options) {
         $value = $formdata[$name];
-        print choose_from_menu($options, $name, $value, "", "", 0, true);
+        print $OUTPUT->select(html_select::make($options, $name, $value, false));
     };
     print '<input type="submit" value="'.get_string('reportbutton', 'hotpot').'" /></td></tr>';
 
@@ -590,7 +590,7 @@ function hotpot_print_report_selector(&$course, &$hotpot, &$formdata) {
     print '</td>';
     foreach ($menus as $name => $options) {
         $value = $formdata[$name];
-        print '<th align="right" scope="col">'.get_string($name, 'hotpot').':</th><td>'.choose_from_menu($options, $name, $value, "", "", 0, true).'</td>';
+        print '<th align="right" scope="col">'.get_string($name, 'hotpot').':</th><td>'.$OUTPUT->select(html_select::make($options, $name, $value, false)).'</td>';
     }
     print '</tr>';