MDL-21235 fixed select method name
authorPetr Skoda <skodak@moodle.org>
Sat, 16 Jan 2010 18:29:51 +0000 (18:29 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 16 Jan 2010 18:29:51 +0000 (18:29 +0000)
68 files changed:
admin/auth_config.php
admin/enrol.php
admin/mnet/access_control.php
admin/register.php
admin/report/capability/index.php
admin/report/courseoverview/index.php
admin/report/questioninstances/index.php
admin/roles/assign.php
admin/roles/lib.php
admin/timezone.php
admin/xmldb/actions/edit_field/edit_field.class.php
admin/xmldb/actions/edit_index/edit_index.class.php
admin/xmldb/actions/edit_key/edit_key.class.php
admin/xmldb/actions/new_statement/new_statement.class.php
admin/xmldb/actions/new_table_from_mysql/new_table_from_mysql.class.php
admin/xmldb/actions/view_structure_php/view_structure_php.class.php
admin/xmldb/actions/view_table_php/view_table_php.class.php
auth/cas/config.html
auth/db/config.html
auth/email/config.html
auth/imap/config.html
auth/ldap/config.html
auth/mnet/config.html
auth/pop3/config.html
auth/radius/config.html
backup/backup_form.html
backup/restore_form.html
blocks/loancalc/block_loancalc.php
calendar/lib.php
calendar/preferences.html
course/lib.php
course/report/log/lib.php
course/report/participation/index.php
course/report/stats/report.php
enrol/authorize/config_form.php
enrol/authorize/locallib.php
enrol/database/config.html
enrol/imsenterprise/config.html
enrol/ldap/config.html
enrol/manual/config.html
enrol/paypal/config.html
filter/manage.php
lib/outputcomponents.php
lib/tablelib.php
lib/weblib.php
message/lib.php
mod/data/field.php
mod/data/field/file/mod.html
mod/data/field/latlong/field.class.php
mod/data/field/menu/field.class.php
mod/data/field/picture/mod.html
mod/data/field/radiobutton/field.class.php
mod/data/lib.php
mod/forum/lib.php
mod/forum/search.php
mod/glossary/formats.php
mod/glossary/lib.php
mod/hotpot/report.php
mod/quiz/report/statistics/report.php
mod/wiki/checklinks.html
mod/wiki/ewiki/plugins/moodle/moodle_wikidump.php
mod/wiki/revertpages.html
question/type/calculated/questiontype.php
tag/manage.php
user/addnote.php
user/extendenrol.php
user/groupaddnote.php
user/groupextendenrol.php

index 9e99e04..261c165 100644 (file)
@@ -147,23 +147,23 @@ function print_auth_lock_options ($auth, $user_fields, $helptext, $retrieveopts,
             echo "<input id=\"lockconfig_{$varname}\" name=\"lockconfig_{$varname}\" type=\"text\" size=\"30\" value=\"{$pluginconfig->$varname}\" />";
             echo '<div style="text-align: right">';
             echo '<label for="menulockconfig_field_updatelocal_'.$field.'">'.get_string('auth_updatelocal', 'auth') . '</label>&nbsp;';
-            echo html_writer::input_select($updatelocaloptions, "lockconfig_field_updatelocal_{$field}", $pluginconfig->{"field_updatelocal_$field"}, false);
+            echo html_writer::select($updatelocaloptions, "lockconfig_field_updatelocal_{$field}", $pluginconfig->{"field_updatelocal_$field"}, false);
             echo '<br />';
             if ($updateopts) {
                 echo '<label for="menulockconfig_field_updateremote_'.$field.'">'.get_string('auth_updateremote', 'auth') . '</label>&nbsp;';
-                echo html_writer::input_select($updateextoptions, "lockconfig_field_updateremote_{$field}", $pluginconfig->{"field_updateremote_$field"}, false);
+                echo html_writer::select($updateextoptions, "lockconfig_field_updateremote_{$field}", $pluginconfig->{"field_updateremote_$field"}, false);
                 echo '<br />';
 
 
             }
             echo '<label for="menulockconfig_field_lock_'.$field.'">'.get_string('auth_fieldlock', 'auth') . '</label>&nbsp;';
-            echo html_writer::input_select($lockoptions, "lockconfig_field_lock_{$field}", $pluginconfig->{"field_lock_$field"}, false);
+            echo html_writer::select($lockoptions, "lockconfig_field_lock_{$field}", $pluginconfig->{"field_lock_$field"}, false);
             echo '</div>';
         } else {
             echo '<tr valign="top"><td align="right">';
             echo '<label for="menulockconfig_field_lock_'.$field.'">'.$fieldname.'</label>';
             echo '</td><td>';
-            echo html_writer::input_select($lockoptions, "lockconfig_field_lock_{$field}", $pluginconfig->{"field_lock_$field"}, false);
+            echo html_writer::select($lockoptions, "lockconfig_field_lock_{$field}", $pluginconfig->{"field_lock_$field"}, false);
         }
         echo '</td>';
         if (!empty($helptext)) {
index 62f705a..32fde25 100644 (file)
     echo '<span class="form-shortname">sendcoursewelcomemessage</span>';
     echo '</label></div>';
     echo '<div class="form-setting"><div class="form-checkbox defaultsnext">';
-    echo html_writer::input_select($yesnooptions, 'sendcoursewelcomemessage', $CFG->sendcoursewelcomemessage, false);
+    echo html_writer::select($yesnooptions, 'sendcoursewelcomemessage', $CFG->sendcoursewelcomemessage, false);
     echo '</div><div class="form-defaultinfo">'.get_string('defaultsettinginfo', 'admin', get_string('yes')).'</div></div>';
     echo '<div class="form-description">' . get_string('configsendcoursewelcomemessage', 'admin') . '</div>';
     echo '</div>';
index 2386bf3..c963d65 100644 (file)
@@ -214,7 +214,7 @@ echo " " . get_string('remotehost', 'mnet') . ":\n";
 if (!empty($formerror['mnet_host_id'])) {
     echo '<span class="error"> * </span>';
 }
-echo html_writer::input_select($mnethosts, 'mnet_host_id');
+echo html_writer::select($mnethosts, 'mnet_host_id');
 
 // choose an access level
 echo " " . get_string('accesslevel', 'mnet') . ":\n";
@@ -223,7 +223,7 @@ if (!empty($formerror['accessctrl'])) {
 }
 $accessmenu['allow'] = get_string('allow', 'mnet');
 $accessmenu['deny'] = get_string('deny', 'mnet');
-echo html_writer::input_select($accessmenu, 'accessctrl');
+echo html_writer::select($accessmenu, 'accessctrl');
 
 // submit button
 echo '<input type="submit" value="' . get_string('addtoacl', 'mnet') . '" />';
index d6fa8fa..78c4480 100644 (file)
@@ -71,7 +71,7 @@
     echo '<div class="fitem">';
     echo '<div class="fitemtitle"><label for="menucountry">'.get_string("country").'</label></div>';
     echo '<div class="felement ftext">';
-    echo html_writer::input_select(get_list_of_countries(), "country", $admin->country, array(''=>get_string("selectacountry")."..."));
+    echo html_writer::select(get_list_of_countries(), "country", $admin->country, array(''=>get_string("selectacountry")."..."));
     echo '</div>';
     echo '</div>';
 
@@ -82,7 +82,7 @@
     $options[0] = get_string("publicdirectory0");
     $options[1] = get_string("publicdirectory1");
     $options[2] = get_string("publicdirectory2");
-    echo html_writer::input_select($options, "public", "2", false);
+    echo html_writer::select($options, "public", "2", false);
     echo '</div>';
     echo '</div>';
 
@@ -92,7 +92,7 @@
     $options = array();
     $options[0] = get_string("registrationcontactno");
     $options[1] = get_string("registrationcontactyes");
-    echo html_writer::input_select($options, "contact", "1", false);
+    echo html_writer::select($options, "contact", "1", false);
     echo '</div>';
     echo '</div>';
 
     $options = array();
     $options[0] = get_string("registrationno");
     $options[1] = get_string("registrationyes");
-    echo html_writer::input_select($options, "mailme", "1", false);
+    echo html_writer::select($options, "mailme", "1", false);
     echo '</div>';
     echo '</div>';
 
index 42d88af..20ca20d 100644 (file)
@@ -74,9 +74,9 @@ echo '<form method="get" action="." id="settingsform"><div>';
 echo $OUTPUT->heading(get_string('reportsettings', 'report_capability'));
 echo '<p id="intro">', get_string('intro', 'report_capability') , '</p>';
 echo '<p><label for="menucapability"> ' . get_string('capabilitylabel', 'report_capability') . '</label></p>';
-echo  html_writer::input_select($capabilitychoices, 'capability', $capability, array(''=>'choose'), array('size'=>10));
+echo  html_writer::select($capabilitychoices, 'capability', $capability, array(''=>'choose'), array('size'=>10));
 echo '<p><label for="menuroles"> ' . get_string('roleslabel', 'report_capability') . '</label></p>';
-echo  html_writer::input_select($rolechoices, 'roles[]', $selectedroleids, false, array('size'=>10, 'multiple'=>'multiple'));
+echo  html_writer::select($rolechoices, 'roles[]', $selectedroleids, false, array('size'=>10, 'multiple'=>'multiple'));
 echo '<p><input type="submit" id="settingssubmit" value="' . get_string('getreport', 'report_capability') . '" /></p>';
 echo '</div></form>';
 echo $OUTPUT->box_end();
index 01b41c3..3a2b28b 100644 (file)
@@ -52,8 +52,8 @@
     $table->width = '*';
     $table->align = array('left','left','left','left','left','left');
 
-    $reporttypemenu = html_writer::input_select($reportoptions,'report',$report, false);
-    $timeoptionsmenu = html_writer::input_select($timeoptions,'time',$time, false);
+    $reporttypemenu = html_writer::select($reportoptions,'report',$report, false);
+    $timeoptionsmenu = html_writer::select($timeoptions,'time',$time, false);
 
     $table->data[] = array(get_string('statsreporttype'),$reporttypemenu,
                            get_string('statstimeperiod'),$timeoptionsmenu,
index ef7134b..4eae3a8 100644 (file)
@@ -33,7 +33,7 @@ echo '<form method="get" action="." id="settingsform"><div>';
 echo $OUTPUT->heading(get_string('reportsettings', 'report_questioninstances'));
 echo '<p id="intro">', get_string('intro', 'report_questioninstances') , '</p>';
 echo '<p><label for="menuqtype"> ' . get_string('questiontype', 'admin') . '</label> ';
-echo html_writer::input_select($qtypechoices, 'qtype', $requestedqtype, array('_all_'=>get_string('all')));
+echo html_writer::select($qtypechoices, 'qtype', $requestedqtype, array('_all_'=>get_string('all')));
 echo '</p>';
 echo '<p><input type="submit" id="settingssubmit" value="' .
         get_string('getreport', 'report_questioninstances') . '" /></p>';
index c603f0f..2c3a96d 100755 (executable)
               </label></p>
 
               <p><label for="extendperiod"><?php print_string('enrolperiod') ?></label><br />
-              <?php echo html_writer::input_select($periodmenu, 'extendperiod', $defaultperiod, $unlimitedperiod); ?></p>
+              <?php echo html_writer::select($periodmenu, 'extendperiod', $defaultperiod, $unlimitedperiod); ?></p>
 
               <p><label for="extendbase"><?php print_string('startingfrom') ?></label><br />
-              <?php echo html_writer::input_select($basemenu, 'extendbase', $extendbase, false); ?></p>
+              <?php echo html_writer::select($basemenu, 'extendbase', $extendbase, false); ?></p>
               <?php print_collapsible_region_end(); ?>
           </div>
 
index bcba278..3344744 100644 (file)
@@ -645,7 +645,7 @@ class define_role_table_advanced extends capability_table_with_risks {
         foreach($this->legacyroles as $type => $cap) {
             $options[$type] = get_string('legacy:'.$type, 'role');
         }
-        return html_writer::input_select($options, 'legacytype', $this->role->legacytype, false);
+        return html_writer::select($options, 'legacytype', $this->role->legacytype, false);
     }
 
     protected function get_assignable_levels_control() {
index 89baaf0..34e1fa4 100644 (file)
@@ -43,7 +43,7 @@
 
     echo '<center><form action="timezone.php" method="post">';
     echo "$strusers ($strall): ";
-    echo html_writer::input_select($timezones, "zone", $current, array('99'=>get_string("serverlocaltime")));
+    echo html_writer::select($timezones, "zone", $current, array('99'=>get_string("serverlocaltime")));
     echo "<input type=\"hidden\" name=\"sesskey\" value=\"".sesskey()."\" />";
     echo '<input type="submit" value="'.s($strsavechanges).'" />';
     echo "</form></center>";
index 86276c8..d812f97 100644 (file)
@@ -147,7 +147,7 @@ class edit_field extends XMLDBAction {
         if ($field->getType() != XMLDB_TYPE_DATETIME) {
             unset ($typeoptions[XMLDB_TYPE_DATETIME]);
         }
-        $select = html_writer::input_select($typeoptions, 'type', $field->getType(), false);
+        $select = html_writer::select($typeoptions, 'type', $field->getType(), false);
         $o.= '      <tr valign="top"><td><label for="menutype" accesskey="t">Type:</label></td>';
         $o.= '        <td colspan="2">' . $select . '</td></tr>';
     /// xmldb_field Length
@@ -158,17 +158,17 @@ class edit_field extends XMLDBAction {
         $o.= '        <td colspan="2"><input name="decimals" type="text" size="6" maxlength="6" id="decimals" value="' . s($field->getDecimals()) . '" /><span id="decimalstip"></span></td></tr>';
     /// xmldb_field Unsigned
         $unsignedoptions = array (0 => 'signed', 1 => 'unsigned');
-        $select = html_writer::input_select($unsignedoptions, 'unsigned', $field->getUnsigned(), false);
+        $select = html_writer::select($unsignedoptions, 'unsigned', $field->getUnsigned(), false);
         $o.= '      <tr valign="top"><td><label for="menuunsigned" accesskey="u">Unsigned:</label></td>';
         $o.= '        <td colspan="2">' . $select . '</td></tr>';
     /// xmldb_field NotNull
         $notnulloptions = array (0 => 'null', 'not null');
-        $select = html_writer::input_select($notnulloptions, 'notnull', $field->getNotNull(), false);
+        $select = html_writer::select($notnulloptions, 'notnull', $field->getNotNull(), false);
         $o.= '      <tr valign="top"><td><label for="menunotnull" accesskey="n">Not Null:</label></td>';
         $o.= '        <td colspan="2">' . $select . '</td></tr>';
     /// xmldb_field Sequence
         $sequenceoptions = array (0 => $this->str['no'], 1 => 'auto-numbered');
-        $select = html_writer::input_select($sequenceoptions, 'sequence', $field->getSequence(), false);
+        $select = html_writer::select($sequenceoptions, 'sequence', $field->getSequence(), false);
         $o.= '      <tr valign="top"><td><label for="menusequence" accesskey="s">Sequence:</label></td>';
         $o.= '        <td colspan="2">' . $select . '</td></tr>';
     /// xmldb_field Default
index 44c96c6..ea0b309 100644 (file)
@@ -123,7 +123,7 @@ class edit_index extends XMLDBAction {
         $typeoptions = array (0 => 'not unique',
                               1 => 'unique');
         $o.= '      <tr valign="top"><td><label for="menuunique" accesskey="t">Type:</label></td>';
-        $select = html_writer::input_select($typeoptions, 'unique', $index->getUnique(), false);
+        $select = html_writer::select($typeoptions, 'unique', $index->getUnique(), false);
         $o.= '        <td colspan="2">' . $select . '</td></tr>';
     /// xmldb_index Fields
         $o.= '      <tr valign="top"><td><label for="fields" accesskey="f">Fields:</label></td>';
index 90d1957..88cb746 100644 (file)
@@ -128,7 +128,7 @@ class edit_key extends XMLDBAction {
     /// if ($key->getType() != XMLDB_KEY_FOREIGN_UNIQUE) {
     ///     unset ($typeoptions[XMLDB_KEY_FOREIGN_UNIQUE);
     /// }
-        $select = html_writer::input_select($typeoptions, 'type', $key->getType(), false);
+        $select = html_writer::select($typeoptions, 'type', $key->getType(), false);
 
         $o.= '      <tr valign="top"><td><label for="menutype" accesskey="t">Type:</label></td>';
         $o.= '        <td colspan="2">' . $select . '</td></tr>';
index b51aaa4..7e9c807 100644 (file)
@@ -106,7 +106,7 @@ class new_statement extends XMLDBAction {
             $o.= '    <input type="hidden" name ="postaction" value="edit_statement" />';
             $o.= '    <input type="hidden" name ="sesskey" value="' . sesskey() . '" />';
             $o.= '    <table id="formelements" class="boxaligncenter" cellpadding="5">';
-            $o.= '      <tr><td><label for="type" accesskey="t">' . $this->str['statementtype'] .' </label>' . html_writer::input_select($typeoptions, 'type') . '<label for="table" accesskey="a">' . $this->str['statementtable'] . ' </label>' .html_writer::input_select($selecttables, 'table') . '</td></tr>';
+            $o.= '      <tr><td><label for="type" accesskey="t">' . $this->str['statementtype'] .' </label>' . html_writer::select($typeoptions, 'type') . '<label for="table" accesskey="a">' . $this->str['statementtable'] . ' </label>' .html_writer::select($selecttables, 'table') . '</td></tr>';
             $o.= '      <tr><td colspan="2" align="center"><input type="submit" value="' .$this->str['create'] . '" /></td></tr>';
             $o.= '      <tr><td colspan="2" align="center"><a href="index.php?action=edit_xml_file&amp;dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)) . '">[' . $this->str['back'] . ']</a></td></tr>';
             $o.= '    </table>';
index 63d9fb3..68b14c1 100644 (file)
@@ -114,7 +114,7 @@ class new_table_from_mysql extends XMLDBAction {
             $o.= '    <input type="hidden" name ="postaction" value="edit_table" />';
             $o.= '    <input type="hidden" name ="sesskey" value="' . sesskey() . '" />';
             $o.= '    <table id="formelements" class="boxaligncenter" cellpadding="5">';
-            $o.= '      <tr><td><label for="table" accesskey="t">' . $this->str['createtable'] .' </label>' . html_writer::input_select($selecttables, 'table') . '<label for="after" accesskey="a">' . $this->str['aftertable'] . ' </label>' .html_writer::input_select($aftertables, 'after') . '</td></tr>';
+            $o.= '      <tr><td><label for="table" accesskey="t">' . $this->str['createtable'] .' </label>' . html_writer::select($selecttables, 'table') . '<label for="after" accesskey="a">' . $this->str['aftertable'] . ' </label>' .html_writer::select($aftertables, 'after') . '</td></tr>';
             $o.= '      <tr><td colspan="2" align="center"><input type="submit" value="' .$this->str['create'] . '" /></td></tr>';
             $o.= '      <tr><td colspan="2" align="center"><a href="index.php?action=edit_xml_file&amp;dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)) . '">[' . $this->str['back'] . ']</a></td></tr>';
             $o.= '    </table>';
index dda5a4c..e39032f 100644 (file)
@@ -116,7 +116,7 @@ class view_structure_php extends XMLDBAction {
         $o.= '    <input type="hidden" name ="dir" value="' . str_replace($CFG->dirroot, '', $dirpath) . '" />';
         $o.= '    <input type="hidden" name ="action" value="view_structure_php" />';
         $o.= '    <table id="formelements" class="boxaligncenter" cellpadding="5">';
-        $o.= '      <tr><td><label for="action" accesskey="c">' . $this->str['selectaction'] .' </label>' . html_writer::input_select($popcommands, 'command', $commandparam, false) . '&nbsp;<label for="table" accesskey="t">' . $this->str['selecttable'] . ' </label>' .html_writer::input_select($poptables, 'table', $tableparam, false) . '</td></tr>';
+        $o.= '      <tr><td><label for="action" accesskey="c">' . $this->str['selectaction'] .' </label>' . html_writer::select($popcommands, 'command', $commandparam, false) . '&nbsp;<label for="table" accesskey="t">' . $this->str['selecttable'] . ' </label>' .html_writer::select($poptables, 'table', $tableparam, false) . '</td></tr>';
         $o.= '      <tr><td colspan="2" align="center"><input type="submit" value="' .$this->str['view'] . '" /></td></tr>';
         $o.= '    </table>';
         $o.= '</div></form>';
index 413bcda..161449e 100644 (file)
@@ -167,7 +167,7 @@ class view_table_php extends XMLDBAction {
         $o.= '    <input type="hidden" name ="table" value="' . s($tableparam) . '" />';
         $o.= '    <input type="hidden" name ="action" value="view_table_php" />';
         $o.= '    <table id="formelements" class="boxaligncenter" cellpadding="5">';
-        $o.= '      <tr><td><label for="action" accesskey="c">' . $this->str['selectaction'] .' </label>' . html_writer::input_select($popcommands, 'command', $commandparam, false) . '&nbsp;<label for="fieldkeyindex" accesskey="f">' . $this->str['selectfieldkeyindex'] . ' </label>' .html_writer::input_select($popfields, 'fieldkeyindex', $origfieldkeyindexparam, false) . '</td></tr>';
+        $o.= '      <tr><td><label for="action" accesskey="c">' . $this->str['selectaction'] .' </label>' . html_writer::select($popcommands, 'command', $commandparam, false) . '&nbsp;<label for="fieldkeyindex" accesskey="f">' . $this->str['selectfieldkeyindex'] . ' </label>' .html_writer::select($popfields, 'fieldkeyindex', $origfieldkeyindexparam, false) . '</td></tr>';
         $o.= '      <tr><td colspan="2" align="center"><input type="submit" value="' .$this->str['view'] . '" /></td></tr>';
         $o.= '    </table>';
         $o.= '</div></form>';
index 24fb45e..8fbbfd8 100644 (file)
@@ -278,7 +278,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 
 
-        echo html_writer::input_select($CASLANGUAGES, 'language', $config->language, false);
+        echo html_writer::select($CASLANGUAGES, 'language', $config->language, false);
 
 
 
@@ -303,7 +303,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
         unset($options);
 
         $options[1] = get_string('yes');
-        echo html_writer::input_select($options, 'proxycas', $config->proxycas, get_string('no'));
+        echo html_writer::select($options, 'proxycas', $config->proxycas, get_string('no'));
 
         ?>
 
@@ -327,7 +327,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
         $options[1] = get_string('yes');
 
-        echo html_writer::input_select($options, 'logoutcas', $config->logoutcas, get_string('no'));
+        echo html_writer::select($options, 'logoutcas', $config->logoutcas, get_string('no'));
 
         ?>
 
@@ -351,7 +351,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
         $options[1] = get_string('yes');
 
-        echo html_writer::input_select($options, 'multiauth', $config->multiauth, get_string('no'));
+        echo html_writer::select($options, 'multiauth', $config->multiauth, get_string('no'));
 
         ?>
 
@@ -411,7 +411,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
        $versions[3] = '3';
 
-       echo html_writer::input_select($versions, 'version', $config->version, false);
+       echo html_writer::select($versions, 'version', $config->version, false);
 
        if (isset($err['version'])) echo $OUTPUT->error_text($err['version']);
 
@@ -529,7 +529,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     <td>
 
-    <?php echo html_writer::input_select($this->ldap_suppported_usertypes(), 'user_type', $config->user_type, false); ?>
+    <?php echo html_writer::select($this->ldap_suppported_usertypes(), 'user_type', $config->user_type, false); ?>
 
     <?php  if (isset($err['user_type'])) echo $OUTPUT->error_text($err['user_type']); ?>
 
@@ -573,7 +573,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     <td>
 
-        <?php echo html_writer::input_select($yesno, 'search_sub', $config->search_sub, false); ?>
+        <?php echo html_writer::select($yesno, 'search_sub', $config->search_sub, false); ?>
 
     </td>
 
@@ -601,7 +601,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
        $opt_deref[LDAP_DEREF_ALWAYS] = get_string('yes');
 
-       echo html_writer::input_select($opt_deref, 'opt_deref', $config->opt_deref, LDAP_DEREF_NEVER, false);
+       echo html_writer::select($opt_deref, 'opt_deref', $config->opt_deref, LDAP_DEREF_NEVER, false);
 
        if (isset($err['opt_deref'])) echo $OUTPUT->error_text($err['opt_deref']);
 
@@ -787,7 +787,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
        $deleteopt[AUTH_REMOVEUSER_FULLDELETE] = get_string('auth_remove_delete','auth');
 
-       echo html_writer::input_select($deleteopt, 'removeuser', $config->removeuser, false);
+       echo html_writer::select($deleteopt, 'removeuser', $config->removeuser, false);
 
     ?>
 
index 4eb9178..bbdadd5 100644 (file)
@@ -74,7 +74,7 @@
        foreach ($dbtypes as $dbtype) {
            $dboptions[$dbtype] = $dbtype;
        }
-       echo html_writer::input_select($dboptions, "type", $config->type, false);
+       echo html_writer::select($dboptions, "type", $config->type, false);
     ?>
 
     </td>
@@ -86,7 +86,7 @@
 <tr valign="top" class="required">
     <td align="right"><label for="menusybasequoting"><?php print_string("auth_dbsybasequoting", "auth_db") ?></label></td>
     <td>
-        <?php echo html_writer::input_select($yesno, 'sybasequoting', $config->sybasequoting, false); ?>
+        <?php echo html_writer::select($yesno, 'sybasequoting', $config->sybasequoting, false); ?>
     </td>
     <td><?php print_string("auth_dbsybasequotinghelp", "auth_db") ?></td>
 </tr>
         $passtype["md5"]       = get_string("md5", "auth");
         $passtype["sha1"]      = get_string("sha1", "auth");
         $passtype["internal"]  = get_string("internal", "auth");
-        echo html_writer::input_select($passtype, "passtype", $config->passtype, false);
+        echo html_writer::select($passtype, "passtype", $config->passtype, false);
 
         ?>
     </td>
 <tr valign="top">
     <td align="right"><label for="menudebugauthdb"><?php print_string("auth_dbdebugauthdb", "auth_db") ?></label></td>
     <td>
-        <?php echo html_writer::input_select($yesno, 'debugauthdb', $config->debugauthdb, false); ?>
+        <?php echo html_writer::select($yesno, 'debugauthdb', $config->debugauthdb, false); ?>
     </td>
     <td><?php print_string("auth_dbdebugauthdbhelp", "auth_db") ?></td>
 </tr>
        $deleteopt[AUTH_REMOVEUSER_KEEP] = get_string('auth_remove_keep','auth');
        $deleteopt[AUTH_REMOVEUSER_SUSPEND] = get_string('auth_remove_suspend','auth');
        $deleteopt[AUTH_REMOVEUSER_FULLDELETE] = get_string('auth_remove_delete','auth');
-       echo html_writer::input_select($deleteopt, 'removeuser', $config->removeuser, false);
+       echo html_writer::select($deleteopt, 'removeuser', $config->removeuser, false);
     ?>
     </td>
     <td>
index 84ef491..095171e 100644 (file)
@@ -19,7 +19,7 @@
     <td align="right"><label for="menurecaptcha"><?php print_string('auth_emailrecaptcha_key', 'auth_email') ?></label></td>
     <td><?php
         global $OUTPUT;
-        echo html_writer::input_select($yesno, 'recaptcha', $config->recaptcha, false);
+        echo html_writer::select($yesno, 'recaptcha', $config->recaptcha, false);
         ?></td>
     <td><?php print_string('auth_emailrecaptcha', 'auth_email') ?></td>
 </tr>
index 48e5bf7..d604b47 100644 (file)
@@ -48,7 +48,7 @@ if (!isset($config->changepasswordurl)) {
         foreach ($imaptypes as $imaptype) {
             $imapoptions[$imaptype] = $imaptype;
         }
-        echo html_writer::input_select($imapoptions, 'type', $config->type, false);
+        echo html_writer::select($imapoptions, 'type', $config->type, false);
 
         ?>
     </td>
index 27bc9dd..6395b87 100644 (file)
@@ -95,7 +95,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
        $versions = array();
        $versions[2] = '2';
        $versions[3] = '3';
-       echo html_writer::input_select($versions, 'version', $config->version, false);
+       echo html_writer::select($versions, 'version', $config->version, false);
        if (isset($err['version'])) echo $OUTPUT->error_text($err['version']);
     ?>
     </td>
@@ -128,7 +128,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 <tr valign="top" class="required">
     <td align="right"><label for="menupreventpassindb"><?php print_string('auth_ldap_preventpassindb_key','auth_ldap') ?></label></td>
     <td>
-        <?php echo html_writer::input_select($yesno, 'preventpassindb', $config->preventpassindb, false); ?>
+        <?php echo html_writer::select($yesno, 'preventpassindb', $config->preventpassindb, false); ?>
     </td><td>
     <?php print_string('auth_ldap_preventpassindb','auth_ldap') ?>
     </td>
@@ -163,7 +163,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 <tr valign="top" class="required">
     <td align="right"><label for="menuuser_type"><?php print_string('auth_ldap_user_type_key','auth_ldap') ?></label></td>
     <td>
-    <?php echo html_writer::input_select($this->ldap_suppported_usertypes(), 'user_type', $config->user_type, false); ?>
+    <?php echo html_writer::select($this->ldap_suppported_usertypes(), 'user_type', $config->user_type, false); ?>
     <?php  if (isset($err['user_type'])) echo $OUTPUT->error_text($err['user_type']); ?>
     </td>
     <td>
@@ -185,7 +185,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 <tr valign="top" class="required">
     <td align="right"><label for="menusearch_sub"><?php print_string('auth_ldap_search_sub_key','auth_ldap') ?></label></td>
     <td>
-        <?php html_writer::input_select($yesno, 'search_sub', $config->search_sub, false); ?>
+        <?php html_writer::select($yesno, 'search_sub', $config->search_sub, false); ?>
     </td>
     <td>
     <?php print_string('auth_ldap_search_sub','auth_ldap') ?>
@@ -199,7 +199,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
        $opt_deref = array();
        $opt_deref[LDAP_DEREF_NEVER] = get_string('no');
        $opt_deref[LDAP_DEREF_ALWAYS] = get_string('yes');
-       echo html_writer::input_select($opt_deref, 'opt_deref', $config->opt_deref, LDAP_DEREF_NEVER, false);
+       echo html_writer::select($opt_deref, 'opt_deref', $config->opt_deref, LDAP_DEREF_NEVER, false);
        if (isset($err['opt_deref'])) echo $OUTPUT->error_text($err['opt_deref']);
     ?>
     </td>
@@ -261,7 +261,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 <tr valign="top" class="required">
     <td align="right" valign="top"><label for="menuforcechangepassword"><?php print_string('forcechangepassword', 'auth') ?></label></td>
     <td>
-        <?php echo html_writer::input_select($yesno, 'forcechangepassword', $config->forcechangepassword, false); ?>
+        <?php echo html_writer::select($yesno, 'forcechangepassword', $config->forcechangepassword, false); ?>
     </td>
     <td align="left" valign="top">
         <p><?php print_string('forcechangepasswordfirst_help', 'auth') ?></p>
@@ -271,7 +271,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 <tr valign="top"  class="required">
     <td align="right" valign="top"><label for="menustdchangepassword"><?php print_string('stdchangepassword', 'auth') ?></label></td>
     <td>
-        <?php echo html_writer::input_select($yesno, 'stdchangepassword', $config->stdchangepassword, false); ?>
+        <?php echo html_writer::select($yesno, 'stdchangepassword', $config->stdchangepassword, false); ?>
     </td>
     <td align="left" valign="top">
         <p><?php print_string('stdchangepassword_expl', 'auth') ?></p>
@@ -287,7 +287,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
         $passtype['plaintext'] = get_string('plaintext', 'auth');
         $passtype['md5']       = get_string('md5', 'auth');
         $passtype['sha1']      = get_string('sha1', 'auth');
-        echo html_writer::input_select($passtype, 'passtype', $config->passtype, false);
+        echo html_writer::select($passtype, 'passtype', $config->passtype, false);
 
         ?>
     </td>
@@ -322,7 +322,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
        $expiration = array();
        $expiration['0'] = 'no';
        $expiration['1'] = 'LDAP';
-       echo html_writer::input_select($expiration, 'expiration', $config->expiration, false);
+       echo html_writer::select($expiration, 'expiration', $config->expiration, false);
        if (isset($err['expiration'])) echo $OUTPUT->error_text($err['expiration']);
     ?>
     </td>
@@ -359,7 +359,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 <tr valign="top" class="required">
     <td align="right"><label for="menugracelogins"><?php print_string('auth_ldap_gracelogins_key','auth_ldap') ?></label></td>
     <td>
-        <?php echo html_writer::input_select($yesno, 'gracelogins', $config->gracelogins, false); ?>
+        <?php echo html_writer::select($yesno, 'gracelogins', $config->gracelogins, false); ?>
     </td>
     <td>
     <?php print_string('auth_ldap_gracelogins_desc','auth_ldap') ?>
@@ -389,7 +389,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 <tr valign="top">
     <td align="right"><label for="menuauth_user_create"><?php print_string('auth_ldap_auth_user_create_key','auth_ldap') ?></label></td>
     <td>
-      <?php echo html_writer::input_select($yesno, 'auth_user_create', $config->auth_user_create, false); ?>
+      <?php echo html_writer::select($yesno, 'auth_user_create', $config->auth_user_create, false); ?>
     </td>
     <td>
         <?php print_string("auth_user_creation","auth"); ?>
@@ -437,7 +437,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
        $deleteopt[AUTH_REMOVEUSER_KEEP] = get_string('auth_remove_keep','auth');
        $deleteopt[AUTH_REMOVEUSER_SUSPEND] = get_string('auth_remove_suspend','auth');
        $deleteopt[AUTH_REMOVEUSER_FULLDELETE] = get_string('auth_remove_delete','auth');
-       echo html_writer::input_select($deleteopt, 'removeuser', $config->removeuser, false);
+       echo html_writer::select($deleteopt, 'removeuser', $config->removeuser, false);
     ?>
     </td>
     <td>
@@ -455,7 +455,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
     <td align="right"><label for="menuntlmsso_enabled"><?php print_string('auth_ntlmsso_enabled_key','auth_ldap') ?></label></td>
     <td>
     <?php
-       echo html_writer::input_select($yesno, 'ntlmsso_enabled', $config->ntlmsso_enabled);
+       echo html_writer::select($yesno, 'ntlmsso_enabled', $config->ntlmsso_enabled);
     ?>
     </td>
     <td>
@@ -474,7 +474,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
     <td align="right"><label for="menuntlmsso_ie_fastpath"><?php print_string('auth_ntlmsso_ie_fastpath_key','auth_ldap') ?></label></td>
     <td>
     <?php
-       echo html_writer::input_select($yesno, 'ntlmsso_ie_fastpath', $config->ntlmsso_ie_fastpath);
+       echo html_writer::select($yesno, 'ntlmsso_ie_fastpath', $config->ntlmsso_ie_fastpath);
     ?>
     </td>
     <td>
index 480de6a..bd08e32 100644 (file)
@@ -44,7 +44,7 @@ if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict'
     <td>
         <?php
 
-        echo html_writer::input_select($yesno, 'auto_add_remote_users', $config->auto_add_remote_users, false);
+        echo html_writer::select($yesno, 'auto_add_remote_users', $config->auto_add_remote_users, false);
 
         ?>
     </td>
index 635a57d..8726b28 100644 (file)
@@ -51,7 +51,7 @@ if (!isset($config->changepasswordurl)) {
         foreach ($pop3types as $pop3type) {
             $pop3options[$pop3type] = $pop3type;
         }
-        echo html_writer::input_select($pop3options, 'type', $config->type, false);
+        echo html_writer::select($pop3options, 'type', $config->type, false);
 
         ?>
     </td>
index 8cf357a..5973c34 100644 (file)
@@ -69,7 +69,7 @@ if (!isset($config->changepasswordurl)) {
     $radiustype['CHAP_MD5'] = get_string('auth_radiustypechapmd5', 'auth_radius');
     $radiustype['MSCHAPv1'] = get_string('auth_radiustypemschapv1', 'auth_radius');
     $radiustype['MSCHAPv2'] = get_string('auth_radiustypemschapv2', 'auth_radius');
-    echo html_writer::input_select($radiustype, 'radiustype', $config->radiustype, false);
+    echo html_writer::select($radiustype, 'radiustype', $config->radiustype, false);
 
     if (isset($err['radiustype'])) {
         echo $OUTPUT->error_text($err['radiustype']);
index 7b89d2e..98db3c7 100644 (file)
@@ -210,7 +210,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
             echo "</b></td><td colspan=\"2\">";
             $meta_options[0] = get_string("no");
             $meta_options[1] = get_string("yes");
-            echo html_writer::input_select($meta_options, "backup_metacourse", $backup_metacourse, false);
+            echo html_writer::select($meta_options, "backup_metacourse", $backup_metacourse, false);
             echo "</td></tr>";
         }
         else {
@@ -228,7 +228,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
             }
             $user_options[1] = get_string("course");
             $user_options[2] = get_string("none");
-            echo html_writer::input_select($user_options, "backup_users", $backup_users, false);
+            echo html_writer::select($user_options, "backup_users", $backup_users, false);
             echo "</td></tr>";
         }
         else {
@@ -243,7 +243,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
             echo "</b></td><td colspan=\"2\">";
             $log_options[0] = get_string("no");
             $log_options[1] = get_string("yes");
-            echo html_writer::input_select($log_options, "backup_logs", $backup_logs, false);
+            echo html_writer::select($log_options, "backup_logs", $backup_logs, false);
             echo "</td></tr>";
         }
         else {
@@ -258,7 +258,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
             echo "</b></td><td colspan=\"2\">";
             $user_file_options[0] = get_string("no");
             $user_file_options[1] = get_string("yes");
-            echo html_writer::input_select($user_file_options, "backup_user_files", $backup_user_files, false);
+            echo html_writer::select($user_file_options, "backup_user_files", $backup_user_files, false);
             echo "</td></tr>";
         }
         else {
@@ -272,7 +272,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
         echo "</b></td><td colspan=\"2\">";
         $course_file_options[0] = get_string("no");
         $course_file_options[1] = get_string("yes");
-        echo html_writer::input_select($course_file_options, "backup_course_files", $backup_course_files, false);
+        echo html_writer::select($course_file_options, "backup_course_files", $backup_course_files, false);
         echo "</td></tr>";
 
 
@@ -285,7 +285,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
             echo "</b></td><td colspan=\"2\">";
             $course_file_options[0] = get_string("no");
             $course_file_options[1] = get_string("yes");
-            echo html_writer::input_select($course_file_options, "backup_site_files", $backup_site_files, false);
+            echo html_writer::select($course_file_options, "backup_site_files", $backup_site_files, false);
             echo "</td></tr>";
         }
 
@@ -297,7 +297,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
             echo "</b></td><td colspan=\"2\">";
             $gradebook_history_options[0] = get_string("no");
             $gradebook_history_options[1] = get_string("yes");
-            echo html_writer::input_select($gradebook_history_options, "backup_gradebook_history", $backup_gradebook_history, false);
+            echo html_writer::select($gradebook_history_options, "backup_gradebook_history", $backup_gradebook_history, false);
             echo "</td></tr>";
         } else {
             $hidden_options .= '<input type="hidden" name="backup_gradebook_history" value="0" />';
@@ -311,7 +311,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
             echo "</b></td><td colspan=\"2\">";
             $mess_options[0] = get_string("no");
             $mess_options[1] = get_string("yes");
-            echo html_writer::input_select($mess_options, "backup_messages", $backup_messages, false);
+            echo html_writer::select($mess_options, "backup_messages", $backup_messages, false);
             echo "</td></tr>";
         }
         else {
@@ -326,7 +326,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
             echo "</b></td><td colspan=\"2\">";
             $blog_options[0] = get_string("no");
             $blog_options[1] = get_string("yes");
-            echo html_writer::input_select($blog_options, "backup_blogs", $backup_blogs, false);
+            echo html_writer::select($blog_options, "backup_blogs", $backup_blogs, false);
             echo "</td></tr>";
         }
         else {
index 1e16c9f..d8e1d75 100644 (file)
@@ -234,7 +234,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
 /// Acummulator for hidden options and proper XHTML output
     $hidden_options = '';
 
-    echo html_writer::input_select($restore_restoreto_options, "restore_restoreto", $restore_restoreto, false);
+    echo html_writer::select($restore_restoreto_options, "restore_restoreto", $restore_restoreto, false);
     echo "</td></tr>";
     if ($cancreatecourses) {  //display these fields conditionally
 
@@ -260,7 +260,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
                 $category_default = $fromcat;
             }
         }
-        echo html_writer::input_select($categories, 'restore_restorecatto', $category_default, false);
+        echo html_writer::select($categories, 'restore_restorecatto', $category_default, false);
         echo "</td>";
         echo "</tr>";
 
@@ -432,7 +432,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
             $metacourse_options = array();
             $metacourse_options[0] = get_string("no");
             $metacourse_options[1] = get_string("yes");
-            echo html_writer::input_select($metacourse_options, "restore_metacourse", $restore_metacourse, false);
+            echo html_writer::select($metacourse_options, "restore_metacourse", $restore_metacourse, false);
         } else {
             echo get_string("no");
             echo "<input type=\"hidden\" id=\"menurestore_metacourse\" name=\"restore_metacourse\" value=\"0\" />";
@@ -452,7 +452,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
             }
             $user_options[1] = get_string("course");
             $user_options[2] = get_string("none");
-            echo html_writer::input_select($user_options, "restore_users", $restore_users, false);
+            echo html_writer::select($user_options, "restore_users", $restore_users, false);
         } else {
             echo get_string("none");
             echo "<input type=\"hidden\" id=\"menurestore_users\" name=\"restore_users\" value=\"2\" />";
@@ -475,7 +475,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
             $group_options[RESTORE_GROUPINGS_ONLY] = get_string('groupingsonly', 'group');
             $group_options[RESTORE_GROUPS_GROUPINGS] = get_string('groupsgroupings', 'group'); //all.
         }
-        echo html_writer::input_select($group_options, 'restore_groups', $restore_groups, false);
+        echo html_writer::select($group_options, 'restore_groups', $restore_groups, false);
         echo "</td></tr>";
 
         //Now print the Logs tr
@@ -488,7 +488,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
             $log_options = array();
             $log_options[0] = get_string("no");
             $log_options[1] = get_string("yes");
-            echo html_writer::input_select($log_options, "restore_logs", $restore_logs, false);
+            echo html_writer::select($log_options, "restore_logs", $restore_logs, false);
         } else {
             echo get_string("no");
             echo "<input type=\"hidden\" id=\"menurestore_logs\" name=\"restore_logs\" value=\"0\" />";
@@ -505,7 +505,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
             $user_file_options = array();
             $user_file_options[0] = get_string("no");
             $user_file_options[1] = get_string("yes");
-            echo html_writer::input_select($user_file_options, "restore_user_files", $restore_user_files, false);
+            echo html_writer::select($user_file_options, "restore_user_files", $restore_user_files, false);
         } else {
             echo get_string("no");
             echo "<input type=\"hidden\" id=\"menurestore_user_files\" name=\"restore_user_files\" value=\"0\" />";
@@ -524,7 +524,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
             $course_file_options = array();
             $course_file_options[0] = get_string("no");
             $course_file_options[1] = get_string("yes");
-            echo html_writer::input_select($course_file_options, "restore_course_files", $restore_course_files, false);
+            echo html_writer::select($course_file_options, "restore_course_files", $restore_course_files, false);
         } else {
             echo get_string("no");
             echo "<input type=\"hidden\" id=\"menurestore_course_files\" name=\"restore_course_files\" value=\"0\" />";
@@ -542,7 +542,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
             $site_file_options = array();
             $site_file_options[0] = get_string("no");
             $site_file_options[1] = get_string("yes");
-            echo html_writer::input_select($site_file_options, "restore_site_files", $restore_site_files, false);
+            echo html_writer::select($site_file_options, "restore_site_files", $restore_site_files, false);
         } else {
             echo get_string("no");
             echo "<input type=\"hidden\" id=\"menurestore_site_files\" name=\"restore_site_files\" value=\"0\" />";
@@ -559,7 +559,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
                 $gradebook_history_options = array();
                 $gradebook_history_options[0] = get_string("no");
                 $gradebook_history_options[1] = get_string("yes");
-                echo html_writer::input_select($gradebook_history_options, "restore_gradebook_history", $restore_gradebook_history, false);
+                echo html_writer::select($gradebook_history_options, "restore_gradebook_history", $restore_gradebook_history, false);
             } else {
                 echo get_string("no");
                 echo "<input type=\"hidden\" id=\"menurestore_gradebook_history\" name=\"restore_gradebook_history\" value=\"0\" />";
@@ -581,7 +581,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
             $message_options = array();
             $message_options[0] = get_string("no");
             $message_options[1] = get_string("yes");
-            echo html_writer::input_select($message_options, "restore_messages", $restore_messages, false);
+            echo html_writer::select($message_options, "restore_messages", $restore_messages, false);
             echo "</td></tr>";
         } else {
             $hidden_options .= '<input type="hidden" name="restore_messages" value="0" />';
@@ -599,7 +599,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
             $blog_options = array();
             $blog_options[0] = get_string("no");
             $blog_options[1] = get_string("yes");
-            echo html_writer::input_select($blog_options, "restore_blogs", $restore_blogs, false);
+            echo html_writer::select($blog_options, "restore_blogs", $restore_blogs, false);
             echo "</td></tr>";
         } else {
             $hidden_options .= '<input type="hidden" name="restore_blogs" value="0" />';
index e27f9bf..33bf1a6 100644 (file)
@@ -188,7 +188,7 @@ function comp(v) { // general entry point for all cases
         $options[52] = get_string('weekly','block_loancalc');
         $options[26] = get_string('fortnightly','block_loancalc');
         $options[12] = get_string('monthly','block_loancalc');
-        $this->content->text .= html_writer::input_select($options,'LOANPAYPERIOD','12');
+        $this->content->text .= html_writer::select($options,'LOANPAYPERIOD','12');
         $this->content->text .= '</td>
                     <td></td>
                 </tr>
index d2afe7a..d737b55 100644 (file)
@@ -1537,7 +1537,7 @@ function calendar_print_month_selector($name, $selected) {
         $months[$i] = userdate(gmmktime(12, 0, 0, $i, 15, 2000), '%B');
     }
 
-    echo html_writer::input_select($months, $name, $selected, false);
+    echo html_writer::select($months, $name, $selected, false);
 }
 
 function calendar_get_filters_status() {
index b8e1299..76562a7 100644 (file)
@@ -9,7 +9,7 @@
         $options['0']  = get_string('default', 'calendar');
         $options[CALENDAR_TF_12] = get_string('timeformat_12', 'calendar');
         $options[CALENDAR_TF_24] = get_string('timeformat_24', 'calendar');
-        echo html_writer::input_select($options, "timeformat", $prefs->timeformat, false);
+        echo html_writer::select($options, "timeformat", $prefs->timeformat, false);
     ?>
     <p><?php print_string('explain_timeformat', 'calendar'); ?></p>
     </td>
@@ -27,7 +27,7 @@
         $options[4] = get_string('thursday', 'calendar');
         $options[5] = get_string('friday', 'calendar');
         $options[6] = get_string('saturday', 'calendar');
-        echo html_writer::input_select($options, 'startwday', $prefs->startwday, false);
+        echo html_writer::select($options, 'startwday', $prefs->startwday, false);
     ?>
     <p><?php print_string('explain_startwday', 'calendar'); ?></p>
     </td>
@@ -41,7 +41,7 @@
         for ($i=1; $i<=20; $i++) {
             $options[$i] = $i;
         }
-        echo html_writer::input_select($options, "maxevents", $prefs->maxevents, false);
+        echo html_writer::select($options, "maxevents", $prefs->maxevents, false);
     ?>
     <p><?php print_string('explain_maxevents', 'calendar'); ?></p>
     </td>
@@ -55,7 +55,7 @@
         for ($i=1; $i<=200; $i++) {
             $options[$i] = $i;
         }
-        echo html_writer::input_select($options, "lookahead", $prefs->lookahead, false);
+        echo html_writer::select($options, "lookahead", $prefs->lookahead, false);
     ?>
     <p><?php print_string('explain_lookahead', 'calendar'); ?></p>
     </td>
@@ -65,7 +65,7 @@
     <th scope="row"><?php print_string('pref_persistflt', 'calendar')?>:</th>
     <td>
     <?php
-    echo html_writer::input_select(array(0 => get_string('no'), 1 => get_string('yes')), 'persistflt', $prefs->persistflt, false);
+    echo html_writer::select(array(0 => get_string('no'), 1 => get_string('yes')), 'persistflt', $prefs->persistflt, false);
     ?>
     <p><?php print_string('explain_persistflt', 'calendar'); ?></p>
     </td>
index 31c61f2..5dede7d 100644 (file)
@@ -3057,7 +3057,7 @@ function print_grouping_settings($form, $course=NULL) {
 
         $groupingid = isset($cm->groupingid) ? $cm->groupingid : 0;
 
-        echo html_writer::input_select($groupings, 'groupingid', $groupingid, get_string('none'));
+        echo html_writer::select($groupings, 'groupingid', $groupingid, get_string('none'));
         echo '</td></tr>';
 
         $checked = empty($cm->groupmembersonly) ? '':'checked="checked"';
index e8fa3d4..650400c 100644 (file)
@@ -261,7 +261,7 @@ function print_mnet_log_selector_form($hostid, $course, $selecteduser=0, $select
     } else {
         $courses = array();
         $courses[$course->id] = $course->fullname . ((empty($course->category)) ? ' ('.get_string('site').') ' : '');
-        echo html_writer::input_select($courses,"id",$course->id, false);
+        echo html_writer::select($courses,"id",$course->id, false);
         if (has_capability('coursereport/log:view', $sitecontext)) {
             $a = new object();
             $a->url = "$CFG->wwwroot/course/report/log/index.php?chooselog=0&group=$selectedgroup&user=$selecteduser"
@@ -279,11 +279,11 @@ function print_mnet_log_selector_form($hostid, $course, $selecteduser=0, $select
         else {
             $groups = array();
         }
-        echo html_writer::input_select($groups, "group", $selectedgroup, get_string("allgroups"));
+        echo html_writer::select($groups, "group", $selectedgroup, get_string("allgroups"));
     }
 
     if ($showusers) {
-        echo html_writer::input_select($users, "user", $selecteduser, get_string("allparticipants"));
+        echo html_writer::select($users, "user", $selecteduser, get_string("allparticipants"));
     }
     else {
         $users = array();
@@ -294,21 +294,21 @@ function print_mnet_log_selector_form($hostid, $course, $selecteduser=0, $select
         else {
             $users[0] = get_string('allparticipants');
         }
-        echo html_writer::input_select($users, "user", $selecteduser, false);
+        echo html_writer::select($users, "user", $selecteduser, false);
         $a->url = "$CFG->wwwroot/course/report/log/index.php?chooselog=0&group=$selectedgroup&user=$selecteduser"
             ."&id=$course->id&date=$selecteddate&modid=$selectedactivity&showusers=1&showcourses=$showcourses";
         print_string('logtoomanyusers','moodle',$a);
     }
 
-    echo html_writer::input_select($dates, "date", $selecteddate, get_string("alldays"));
-    echo html_writer::input_select($activities, "modid", $selectedactivity, get_string("allactivities"));
-    echo html_writer::input_select($actions, 'modaction', $modaction, get_string("allactions"));
+    echo html_writer::select($dates, "date", $selecteddate, get_string("alldays"));
+    echo html_writer::select($activities, "modid", $selectedactivity, get_string("allactivities"));
+    echo html_writer::select($actions, 'modaction', $modaction, get_string("allactions"));
 
     $logformats = array('showashtml' => get_string('displayonpage'),
                         'downloadascsv' => get_string('downloadtext'),
                         'downloadasods' => get_string('downloadods'),
                         'downloadasexcel' => get_string('downloadexcel'));
-    echo html_writer::input_select($logformats, 'logformat', $logformat, false);
+    echo html_writer::select($logformats, 'logformat', $logformat, false);
     echo '<input type="submit" value="'.get_string('gettheselogs').'" />';
     echo '</div>';
     echo '</form>';
@@ -480,12 +480,12 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate='today'
     echo "<input type=\"hidden\" name=\"showusers\" value=\"$showusers\" />\n";
     echo "<input type=\"hidden\" name=\"showcourses\" value=\"$showcourses\" />\n";
     if (has_capability('coursereport/log:view', $sitecontext) && $showcourses) {
-        echo html_writer::input_select($courses, "id", $course->id, false);
+        echo html_writer::select($courses, "id", $course->id, false);
     } else {
         //        echo '<input type="hidden" name="id" value="'.$course->id.'" />';
         $courses = array();
         $courses[$course->id] = $course->fullname . (($course->id == SITEID) ? ' ('.get_string('site').') ' : '');
-        echo html_writer::input_select($courses,"id",$course->id, false);
+        echo html_writer::select($courses,"id",$course->id, false);
         if (has_capability('coursereport/log:view', $sitecontext)) {
             $a = new object();
             $a->url = "$CFG->wwwroot/course/report/log/index.php?chooselog=0&group=$selectedgroup&user=$selecteduser"
@@ -503,11 +503,11 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate='today'
         else {
             $groups = array();
         }
-        echo html_writer::input_select($groups, "group", $selectedgroup, get_string("allgroups"));
+        echo html_writer::select($groups, "group", $selectedgroup, get_string("allgroups"));
     }
 
     if ($showusers) {
-        echo html_writer::input_select($users, "user", $selecteduser, get_string("allparticipants"));
+        echo html_writer::select($users, "user", $selecteduser, get_string("allparticipants"));
     }
     else {
         $users = array();
@@ -518,23 +518,23 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate='today'
         else {
             $users[0] = get_string('allparticipants');
         }
-        echo html_writer::input_select($users, "user", $selecteduser, false);
+        echo html_writer::select($users, "user", $selecteduser, false);
         $a = new object();
         $a->url = "$CFG->wwwroot/course/report/log/index.php?chooselog=0&group=$selectedgroup&user=$selecteduser"
             ."&id=$course->id&date=$selecteddate&modid=$selectedactivity&showusers=1&showcourses=$showcourses";
         print_string('logtoomanyusers','moodle',$a);
     }
-    echo html_writer::input_select($dates, "date", $selecteddate, get_string("alldays"));
+    echo html_writer::select($dates, "date", $selecteddate, get_string("alldays"));
 
-    echo html_writer::input_select($activities, "modid", $selectedactivity, get_string("allactivities"));
-    echo html_writer::input_select($actions, 'modaction', $modaction, get_string("allactions"));
+    echo html_writer::select($activities, "modid", $selectedactivity, get_string("allactivities"));
+    echo html_writer::select($actions, 'modaction', $modaction, get_string("allactions"));
 
     $logformats = array('showashtml' => get_string('displayonpage'),
                         'downloadascsv' => get_string('downloadtext'),
                         'downloadasods' => get_string('downloadods'),
                         'downloadasexcel' => get_string('downloadexcel'));
 
-    echo html_writer::input_select($logformats, 'logformat', $logformat, false);
+    echo html_writer::select($logformats, 'logformat', $logformat, false);
     echo '<input type="submit" value="'.get_string('gettheselogs').'" />';
     echo '</div>';
     echo '</form>';
index 8987ce8..6ad8341 100644 (file)
     $select->nested = true;
     echo $OUTPUT->select($select);
     echo '<label for="menutimefrom">'.get_string('lookback').'</label>'."\n";
-    echo html_writer::input_select($timeoptions,'timefrom',$timefrom);
+    echo html_writer::select($timeoptions,'timefrom',$timefrom);
     echo '<label for="menuroleid">'.get_string('showonly').'</label>'."\n";
-    echo html_writer::input_select($roleoptions,'roleid',$roleid,false);
+    echo html_writer::select($roleoptions,'roleid',$roleid,false);
     echo '<label for="menuaction">'.get_string('showactions').'</label>'."\n";
-    echo html_writer::input_select($actionoptions,'action',$action,false);
+    echo html_writer::select($actionoptions,'action',$action,false);
     echo $OUTPUT->help_icon('participationreport', get_string('participationreport'));
     echo '<input type="submit" value="'.get_string('go').'" />'."\n</div></form>\n";
 
index 1eeee58..dfdfeef 100644 (file)
         }
 
         $table->align = array('left','left','left','left','left','left','left','left');
-        $table->data[] = array(get_string('course'),html_writer::input_select($courseoptions,'course',$course->id,false),
-                               get_string('users'),html_writer::input_select($users,'userid',$userid,false),
-                               get_string('statsreporttype'),html_writer::input_select($reportoptions,'report',($report == 5) ? $report.$roleid : $report,false),
-                               get_string('statstimeperiod'),html_writer::input_select($timeoptions,'time',$time,false),
+        $table->data[] = array(get_string('course'),html_writer::select($courseoptions,'course',$course->id,false),
+                               get_string('users'),html_writer::select($users,'userid',$userid,false),
+                               get_string('statsreporttype'),html_writer::select($reportoptions,'report',($report == 5) ? $report.$roleid : $report,false),
+                               get_string('statstimeperiod'),html_writer::select($timeoptions,'time',$time,false),
                                '<input type="submit" value="'.get_string('view').'" />') ;
     } else if ($mode == STATS_MODE_RANKED) {
         $table->align = array('left','left','left','left','left','left');
-        $table->data[] = array(get_string('statsreporttype'),html_writer::input_select($reportoptions,'report',($report == 5) ? $report.$roleid : $report,false),
-                               get_string('statstimeperiod'),html_writer::input_select($timeoptions,'time',$time,false),
+        $table->data[] = array(get_string('statsreporttype'),html_writer::select($reportoptions,'report',($report == 5) ? $report.$roleid : $report,false),
+                               get_string('statstimeperiod'),html_writer::select($timeoptions,'time',$time,false),
                                '<input type="submit" value="'.get_string('view').'" />') ;
     } else if ($mode == STATS_MODE_GENERAL) {
         $table->align = array('left','left','left','left','left','left','left');
-        $table->data[] = array(get_string('course'),html_writer::input_select($courseoptions,'course',$course->id,false),
-                               get_string('statsreporttype'),html_writer::input_select($reportoptions,'report',($report == 5) ? $report.$roleid : $report,false),
-                               get_string('statstimeperiod'),html_writer::input_select($timeoptions,'time',$time,false),
+        $table->data[] = array(get_string('course'),html_writer::select($courseoptions,'course',$course->id,false),
+                               get_string('statsreporttype'),html_writer::select($reportoptions,'report',($report == 5) ? $report.$roleid : $report,false),
+                               get_string('statstimeperiod'),html_writer::select($timeoptions,'time',$time,false),
                                '<input type="submit" value="'.get_string('view').'" />') ;
     }
 
index 650bd50..13f1905 100755 (executable)
@@ -65,7 +65,7 @@ if (!isset($frm->acceptechecktypes)) {
 <tr valign="top">
     <td align="right">enrol_currency:</td>
     <td><?php
-        echo html_writer::input_select(get_list_of_currencies(), "enrol_currency", $frm->enrol_currency, false);
+        echo html_writer::select(get_list_of_currencies(), "enrol_currency", $frm->enrol_currency, false);
         ?>
         <br />
         <?php print_string("currency") ?>
@@ -212,7 +212,7 @@ if (!isset($frm->acceptechecktypes)) {
     <td><?php
     $sorts = array('ttl' => get_string('adminemailexpiredsortsum', 'enrol_authorize'),
                    'cnt' => get_string('adminemailexpiredsortcount', 'enrol_authorize'));
-    echo html_writer::input_select($sorts, "an_sorttype", $frm->an_sorttype, false);
+    echo html_writer::select($sorts, "an_sorttype", $frm->an_sorttype, false);
     ?>
     <br />
     <?php print_string("adminemailexpiredsort", "enrol_authorize") ?></td>
index 0095bc7..6ecbdeb 100644 (file)
@@ -27,7 +27,7 @@ function authorize_print_orders($courseid, $userid) {
 
     $searchmenu = array('orderid' => $authstrs->orderid, 'transid' => $authstrs->transid, 'cclastfour' => $authstrs->cclastfour);
     $buttons = "<form method='post' action='index.php' autocomplete='off'><div>";
-    $buttons .= html_writer::input_select($searchmenu, 'searchtype', $searchtype, false);
+    $buttons .= html_writer::select($searchmenu, 'searchtype', $searchtype, false);
     $buttons .= "<input type='text' size='16' name='searchquery' value='' />";
     $buttons .= "<input type='submit' value='$strs->search' />";
     $buttons .= "</div></form>";
index e67c233..e7b28e7 100644 (file)
@@ -19,7 +19,7 @@
        if (!isset($frm->enrol_dbtype)) {
            $frm->enrol_dbtype = 'mysql';
        }
-       echo html_writer::input_select($dboptions, "enrol_dbtype", $frm->enrol_dbtype, false);
+       echo html_writer::select($dboptions, "enrol_dbtype", $frm->enrol_dbtype, false);
     ?>
 
     </td>
         $assignableroles = get_assignable_roles($sitecontext);
         $assignableroles = array('' => get_string('default')) + $assignableroles;
 
-        echo html_writer::input_select($assignableroles, 'enrol_db_defaultcourseroleid', $frm->enrol_db_defaultcourseroleid, false);
+        echo html_writer::select($assignableroles, 'enrol_db_defaultcourseroleid', $frm->enrol_db_defaultcourseroleid, false);
         if (isset($err['enrol_db_defaultcourseroleid'])) echo $OUTPUT->error_text($err['enrol_db_defaultcourseroleid']);
     ?>
     </td>
     <td align="right">enrol_db_autocreate:</td>
     <td>
     <?php
-       echo html_writer::input_select($yesno, "enrol_db_autocreate", $frm->enrol_db_autocreate, false);
+       echo html_writer::select($yesno, "enrol_db_autocreate", $frm->enrol_db_autocreate, false);
            if (isset($err["enrol_db_autocreate"])) echo $OUTPUT->error_text($err["enrol_db_autocreate"]);
     ?>
     </td>
            $displaylist = array();
            $parentlist = array();
            make_categories_list($displaylist, $parentlist);
-           echo html_writer::input_select($displaylist, "enrol_db_category", $frm->enrol_db_category, false);
+           echo html_writer::select($displaylist, "enrol_db_category", $frm->enrol_db_category, false);
 
     ?>
     <?php  if (isset($err["enrol_db_category"])) echo $OUTPUT->error_text($err["enrol_db_category"]); ?>
     <td align="right">enrol_db_ignorehiddencourse:</td>
     <td>
     <?php
-        echo html_writer::input_select($yesno, "enrol_db_ignorehiddencourse", $frm->enrol_db_ignorehiddencourse, false);
+        echo html_writer::select($yesno, "enrol_db_ignorehiddencourse", $frm->enrol_db_ignorehiddencourse, false);
         if (isset($err['enrol_db_ignorehiddencourse'])) {
             echo $OUTPUT->error_text($err['enrol_db_ignorehiddencourse']);
         }
     <td align="right">enrol_db_disableunenrol:</td>
     <td>
     <?php
-        echo html_writer::input_select($yesno, "enrol_db_disableunenrol", $frm->enrol_db_disableunenrol, false);
+        echo html_writer::select($yesno, "enrol_db_disableunenrol", $frm->enrol_db_disableunenrol, false);
         if (isset($err['enrol_db_disableunenrol'])) {
             echo $OUTPUT->error_text($err['enrol_db_disableunenrol']);
         }
index 374131e..e4e592d 100644 (file)
@@ -117,7 +117,7 @@ foreach($this->imsroles as $imsrolenum=>$imsrolename){
 
         $configref = "enrol_imse_imsrolemap" . $imsrolenum;
 
-        echo html_writer::input_select($assignableroles, 'enrol_imse_imsrolemap'.$imsrolenum,
+        echo html_writer::select($assignableroles, 'enrol_imse_imsrolemap'.$imsrolenum,
            strlen($frm->$configref) ? $frm->$configref : $this->determine_default_rolemapping($imsrolenum), false);
     ?>
     </td>
index 87734a0..591688b 100755 (executable)
@@ -108,7 +108,7 @@ if (!isset($frm->enrol_ldap_template)) {
     <?php
        $versions[2] = "2";
        $versions[3] = "3";
-       echo html_writer::input_select($versions, "enrol_ldap_version", $frm->enrol_ldap_version, false);
+       echo html_writer::select($versions, "enrol_ldap_version", $frm->enrol_ldap_version, false);
         if (isset($err["enrol_ldap_version"])) echo $OUTPUT->error_text($err["enrol_ldap_version"]);
     ?>
     </td>
@@ -351,7 +351,7 @@ if (!isset($frm->enrol_ldap_template)) {
     <td align="right">enrol_ldap_autocreate:</td>
     <td>
     <?php
-       echo html_writer::input_select('0'=>'no','1'=>'yes'), "enrol_ldap_autocreate", $frm->enrol_ldap_autocreate, false);
+       echo html_writer::select('0'=>'no','1'=>'yes'), "enrol_ldap_autocreate", $frm->enrol_ldap_autocreate, false);
            if (isset($err["enrol_ldap_autocreate"])) echo $OUTPUT->error_text($err["enrol_ldap_autocreate"]);
     ?>
     </td>
@@ -366,7 +366,7 @@ if (!isset($frm->enrol_ldap_template)) {
            $displaylist = array();
            $parentlist = array();
            make_categories_list($displaylist, $parentlist);
-           echo html_writer::input_select($displaylist, "enrol_ldap_category", $frm->enrol_ldap_category, false);
+           echo html_writer::select($displaylist, "enrol_ldap_category", $frm->enrol_ldap_category, false);
 
     ?>
     <?php  if (isset($err["enrol_ldap_category"])) echo $OUTPUT->error_text($err["enrol_ldap_category"]); ?>
index 2c96ef6..01b3a11 100644 (file)
@@ -9,7 +9,7 @@
         foreach ($roles as $id=>$role) {
             $rolenames[$id]=$role->name;
         }
-        echo html_writer::input_select($rolenames, 'enrol_manual_keyholderrole', $frm->enrol_manual_keyholderrole);
+        echo html_writer::select($rolenames, 'enrol_manual_keyholderrole', $frm->enrol_manual_keyholderrole);
     ?>
     </td>
     <td>
@@ -24,7 +24,7 @@
     $choices = array();
     $choices['0'] = get_string('no');
     $choices['1'] = get_string('yes');
-    echo html_writer::input_select($choices, 'enrol_manual_showhint', $frm->enrol_manual_showhint, false);
+    echo html_writer::select($choices, 'enrol_manual_showhint', $frm->enrol_manual_showhint, false);
 ?>
     </td><td>
     <?php  print_string('enrol_manual_showhint', 'enrol_manual') ?>
@@ -38,7 +38,7 @@
     $choices = array();
     $choices['0'] = get_string('no');
     $choices['1'] = get_string('yes');
-    echo html_writer::input_select($choices, 'enrol_manual_usepasswordpolicy', $frm->enrol_manual_usepasswordpolicy, false);
+    echo html_writer::select($choices, 'enrol_manual_usepasswordpolicy', $frm->enrol_manual_usepasswordpolicy, false);
 ?>
     </td><td>
     <?php  print_string('enrol_manual_usepasswordpolicy', 'enrol_manual') ?>
@@ -52,7 +52,7 @@
     $choices = array();
     $choices['0'] = get_string('no');
     $choices['1'] = get_string('yes');
-    echo html_writer::input_select($choices, 'enrol_manual_requirekey', $frm->enrol_manual_requirekey, false);
+    echo html_writer::select($choices, 'enrol_manual_requirekey', $frm->enrol_manual_requirekey, false);
 ?>
     </td><td>
     <?php  print_string('enrol_manual_requirekey', 'enrol_manual') ?>
index 4debfdf..fbe55f7 100644 (file)
@@ -15,7 +15,7 @@
     <td>
     <?php
         global $OUTPUT;
-        echo html_writer::input_select($paypalcurrencies, "enrol_currency", $frm->enrol_currency, false);
+        echo html_writer::select($paypalcurrencies, "enrol_currency", $frm->enrol_currency, false);
     ?>
     </td>
     <td>
index 900cbe7..ada273c 100644 (file)
@@ -179,7 +179,7 @@ if (empty($availablefilters)) {
         } else {
             $activechoices[TEXTFILTER_INHERIT] = $strdefaultoff;
         }
-        $row[] = html_writer::input_select($activechoices, str_replace('/', '_', $filter), $filterinfo->localstate, false);
+        $row[] = html_writer::select($activechoices, str_replace('/', '_', $filter), $filterinfo->localstate, false);
 
         // Settings link, if required
         if ($settingscol) {
index 17566ba..a7fe41b 100644 (file)
@@ -438,7 +438,7 @@ class html_writer {
      * @param array $attributes - html select element attributes
      * @return string HRML fragment
      */
-    public static function input_select(array $options, $name, $selected = '', $nothing = array(''=>'choose'), array $attributes = null) {
+    public static function select(array $options, $name, $selected = '', $nothing = array(''=>'choose'), array $attributes = null) {
         $attributes = (array)$attributes;
         if (is_array($nothing)) {
             foreach ($nothing as $k=>$v) {
index 0bfa0a6..1935637 100644 (file)
@@ -917,7 +917,7 @@ class flexible_table {
             $html = '<form action="'. $this->baseurl .'" method="post">';
             $html .= '<div class="mdl-align">';
             $html .= '<input type="submit" value="'.get_string('downloadas', 'table').'"/>';
-            $html .= html_writer::input_select($downloadoptions, 'download', $this->defaultdownloadformat, false);
+            $html .= html_writer::select($downloadoptions, 'download', $this->defaultdownloadformat, false);
             $html .= $OUTPUT->help_icon('tableexportformats', get_string('tableexportformats', 'table'));
             $html .= '</div></form>';
 
index dbd87d9..da28177 100644 (file)
@@ -2420,7 +2420,7 @@ function print_grade_menu($courseid, $name, $current, $includenograde=true, $ret
     for ($i=100; $i>=1; $i--) {
         $grades[$i] = $i;
     }
-    $output .= html_writer::input_select($grades, $name, $current, false);
+    $output .= html_writer::select($grades, $name, $current, false);
 
     $linkobject = '<span class="helplink"><img class="iconhelp" alt="'.$strscales.'" src="'.$OUTPUT->pix_url('help') . '" /></span>';
     $link = html_link::make('/course/scales.php?id='. $courseid .'&list=true', $linkobject);
index c0f4bc1..26e7ea1 100644 (file)
@@ -254,7 +254,7 @@ function message_print_settings() {
     $cbemailmessages = (get_user_preferences('message_emailmessages', 1) == '1') ? 'checked="checked"' : '';
     $txemailaddress = get_user_preferences('message_emailaddress', $USER->email);
     $txemailtimenosee = get_user_preferences('message_emailtimenosee', 10);
-    $format_select = html_writer::input_select(array(FORMAT_PLAIN => get_string('formatplain'),
+    $format_select = html_writer::select(array(FORMAT_PLAIN => get_string('formatplain'),
                                                      FORMAT_HTML  => get_string('formathtml')),
                                               'emailformat', get_user_preferences('message_emailformat', FORMAT_PLAIN));
 
index 861a0ea..3a830fe 100755 (executable)
@@ -350,7 +350,7 @@ if (($mode == 'new') && (!empty($newtype)) && confirm_sesskey()) {          ///
 
     $options = array(0 => get_string('ascending', 'data'),
                      1 => get_string('descending', 'data'));
-    echo html_writer::input_select($options, 'defaultsortdir', $data->defaultsortdir, false);
+    echo html_writer::select($options, 'defaultsortdir', $data->defaultsortdir, false);
     echo '<input type="submit" value="'.get_string('save', 'data').'" />';
     echo '</div>';
     echo '</form>';
index 7f31e7b..73815b5 100755 (executable)
@@ -14,7 +14,7 @@
             <?php
                 $course->maxbytes = $DB->get_field('course', 'maxbytes', array('id'=>$this->data->course));
                 $choices = get_max_upload_sizes($CFG->maxbytes, $course->maxbytes);
-                echo html_writer::input_select($choices, 'param3', $this->field->param3, false, array('id' => 'param3'));
+                echo html_writer::select($choices, 'param3', $this->field->param3, false, array('id' => 'param3'));
             ?>
         </td>
     </tr>
index 8ac9b93..2b0b6bd 100755 (executable)
@@ -77,7 +77,7 @@ class data_field_latlong extends data_field_base {
                 $options[$temp.','.$longs[$key]] = $temp.','.$longs[$key];
             }
         }
-       return html_writer::input_select($options, 'f_'.$this->field->id, $value);
+       return html_writer::select($options, 'f_'.$this->field->id, $value);
     }
 
     function parse_search_field() {
index 5ee3318..80069ac 100755 (executable)
@@ -47,7 +47,7 @@ class data_field_menu extends data_field_base {
         }
 
 
-        $str .= html_writer::input_select($options, 'field_'.$this->field->id, $content, array(''=>get_string('menuchoose', 'data')), array('id'=>'field_'.$this->field->id));
+        $str .= html_writer::select($options, 'field_'.$this->field->id, $content, array(''=>get_string('menuchoose', 'data')), array('id'=>'field_'.$this->field->id));
 
         $str .= '</div>';
 
@@ -84,7 +84,7 @@ class data_field_menu extends data_field_base {
             return '';
         }
 
-        return html_writer::input_select($options, 'f_'.$this->field->id, $content, array(''=>'&nbsp;'));
+        return html_writer::select($options, 'f_'.$this->field->id, $content, array(''=>'&nbsp;'));
     }
 
      function parse_search_field() {
index c5c4fe5..9dd1583 100755 (executable)
@@ -46,7 +46,7 @@
             <?php
                 $course->maxbytes = $DB->get_field('course', 'maxbytes', array('id'=>$this->data->course));
                 $choices = get_max_upload_sizes($CFG->maxbytes, $course->maxbytes);
-                echo html_writer::input_select($choices, 'param3', $this->field->param3, false, array('id'=>'param3'));
+                echo html_writer::select($choices, 'param3', $this->field->param3, false, array('id'=>'param3'));
             ?>
         </td>
     </tr>
index 4d9d25e..40951d8 100755 (executable)
@@ -72,7 +72,7 @@ class data_field_radiobutton extends data_field_base {
                 $options[$key] = $key;  //Build following indicies from the sql.
             }
         }
-        return html_writer::input_select($options, 'f_'.$this->field->id, $value);
+        return html_writer::select($options, 'f_'.$this->field->id, $value);
     }
 
     function parse_search_field() {
index 5062cf7..9d48b3b 100755 (executable)
@@ -1365,7 +1365,7 @@ function data_print_preference_form($data, $perpage, $search, $sort='', $order='
     echo '<label for="pref_perpage">'.get_string('pagesize','data').'</label> ';
     $pagesizes = array(2=>2,3=>3,4=>4,5=>5,6=>6,7=>7,8=>8,9=>9,10=>10,15=>15,
                        20=>20,30=>30,40=>40,50=>50,100=>100,200=>200,300=>300,400=>400,500=>500,1000=>1000);
-    echo html_writer::input_select($pagesizes, 'perpage', $perpage, false, array('id'=>'pref_perpage'));
+    echo html_writer::select($pagesizes, 'perpage', $perpage, false, array('id'=>'pref_perpage'));
     echo '<div id="reg_search" style="display: ';
     if ($advanced) {
         echo 'none';
@@ -1661,7 +1661,7 @@ function data_print_rating_menu($recordid, $userid, $scale) {
     if (empty($strrate)) {
         $strrate = get_string("rate", "data");
     }
-    echo html_writer::input_select($scale, $recordid, $rating->rating, array(-999=>"$strrate..."));
+    echo html_writer::select($scale, $recordid, $rating->rating, array(-999=>"$strrate..."));
 }
 
 /**
index 23c2135..226c82f 100644 (file)
@@ -4172,7 +4172,7 @@ function forum_print_rating_menu($postid, $userid, $scale, $myrating=NULL) {
         $strrate = get_string("rate", "forum");
     }
     $scale = array(FORUM_UNSET_POST_RATING => $strrate.'...') + $scale;
-    echo html_writer::input_select($scale, $postid, $myrating, false, array('class'=>'forumpostratingmenu'));
+    echo html_writer::select($scale, $postid, $myrating, false, array('class'=>'forumpostratingmenu'));
 }
 
 /**
index ff27206..9f8488e 100644 (file)
@@ -351,7 +351,7 @@ function forum_print_big_search_form($course) {
     echo '<tr>';
     echo '<td class="c0"><label for="menuforumid">'.get_string('searchwhichforums', 'forum').'</label></td>';
     echo '<td class="c1">';
-    echo html_writer::input_select(forum_menu_list($course), 'forumid', '', array(''=>get_string('allforums', 'forum')));
+    echo html_writer::select(forum_menu_list($course), 'forumid', '', array(''=>get_string('allforums', 'forum')));
     echo '</td>';
     echo '</tr>';
 
index 5f10160..d161a03 100644 (file)
@@ -84,7 +84,7 @@ echo '<table width="90%" align="center" class="generalbox">';
     //Sort it
     asort($formats);
 
-    echo html_writer::input_select($formats, 'popupformatname', $displayformat->popupformatname, false);
+    echo html_writer::select($formats, 'popupformatname', $displayformat->popupformatname, false);
  ?>
     </td>
     <td width="60%">
index b7bc97f..2df89ed 100644 (file)
@@ -2267,7 +2267,7 @@ function glossary_print_rating_menu($entryid, $userid, $scale) {
     if (empty($strrate)) {
         $strrate = get_string("rate", "glossary");
     }
-    echo html_writer::input_select($scale, $entryid, $rating->rating, array('-999'=>"$strrate..."));
+    echo html_writer::select($scale, $entryid, $rating->rating, array('-999'=>"$strrate..."));
 }
 
 /**
index c8f6665..4a8c958 100644 (file)
@@ -552,7 +552,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 html_writer::input_select($options, $name, $value, false);
+        print html_writer::select($options, $name, $value, false);
     };
     print '<input type="submit" value="'.get_string('reportbutton', 'hotpot').'" /></td></tr>';
 
@@ -591,7 +591,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>'.html_writer::input_select($options, $name, $value, false).'</td>';
+        print '<th align="right" scope="col">'.get_string($name, 'hotpot').':</th><td>'.html_writer::select($options, $name, $value, false).'</td>';
     }
     print '</tr>';
 
index 69abffb..bca9fde 100644 (file)
@@ -418,7 +418,7 @@ class quiz_statistics_report extends quiz_default_report {
             $quizinformationtablehtml .= '<div class="mdl-align">';
             $quizinformationtablehtml .= '<input type="hidden" name="everything" value="1"/>';
             $quizinformationtablehtml .= '<input type="submit" value="'.get_string('downloadeverything', 'quiz_statistics').'"/>';
-            $quizinformationtablehtml .= html_writer::input_select($downloadoptions, 'download', $this->table->defaultdownloadformat, false);
+            $quizinformationtablehtml .= html_writer::select($downloadoptions, 'download', $this->table->defaultdownloadformat, false);
             $quizinformationtablehtml .= $OUTPUT->help_icon('tableexportformats', get_string('tableexportformats', 'table'));
             $quizinformationtablehtml .= '</div></form>';
         }
index 1be15e5..ed4ebbf 100644 (file)
@@ -11,7 +11,7 @@
 <input type="hidden" name="wikipage" value="<?php print $wikipage?>" />
 <?php
   $pagelist=wiki_admin_checklinks_list();
-  echo html_writer::input_select($pagelist, "pagetocheck", $wikipage, false);
+  echo html_writer::select($pagelist, "pagetocheck", $wikipage, false);
 ?>
   <input type="submit" name="proceed" value="<?php print get_string("checklinks","wiki"); ?>" />
 </fieldset>
index dc45036..48b57f8 100644 (file)
@@ -109,7 +109,7 @@ function moodle_ewiki_page_wiki_dump($id=0, $data=0, $action=0) {
         '    <TD align="right">'.get_string("exportformats","wiki").":</TD>\n".
         "    <TD>\n";
   if($wiki->htmlmode!=2) {
-    $ret.= html_writer::input_select($exportformats, "exportformats", $exportformatval, false)."\n";
+    $ret.= html_writer::select($exportformats, "exportformats", $exportformatval, false)."\n";
   } else {
     $ret.= '<INPUT type="hidden" name="exportformats" value="1" />'.
            get_string("html","wiki");
@@ -133,7 +133,7 @@ function moodle_ewiki_page_wiki_dump($id=0, $data=0, $action=0) {
   if(count($exportdestinations)==1) {
     $ret.='<INPUT type="hidden" name="exportdestinations" value="0" />'.$exportdestinations[0]."\n";
   } else {
-    $ret.= html_writer::input_select($exportdestinations, "exportdestinations", $exportdestinationsval, false)."\n";
+    $ret.= html_writer::select($exportdestinations, "exportdestinations", $exportdestinationsval, false)."\n";
   }
   $ret.="    </TD>\n".
       "  </TR>\n".
index 121a532..393a669 100644 (file)
@@ -47,7 +47,7 @@ if($err->remark) {
         $operations=array( "lastonly" => get_string("revertlastonly","wiki"),
                            "allsince" => get_string("revertallsince","wiki"),
                            "the" => get_string("revertthe","wiki"));
-        echo html_writer::input_select($operations, "howtooperate", $form->howtooperate, false);
+        echo html_writer::select($operations, "howtooperate", $form->howtooperate, false);
         ?>
     </td>
 </tr>
index b162dd5..2f59a2a 100644 (file)
@@ -958,9 +958,9 @@ class question_calculated_qtype extends default_questiontype {
                                                 ? 'decimals'
                                                 : 'significantfigures'), 'quiz', $i);
             }
-            $menu1 = html_writer::input_select($lengthoptions, 'calclength[]', $regs[4], false);
+            $menu1 = html_writer::select($lengthoptions, 'calclength[]', $regs[4], false);
 
-            $menu2 = html_writer::input_select(array('uniform' => get_string('uniform', 'quiz'),
+            $menu2 = html_writer::select(array('uniform' => get_string('uniform', 'quiz'),
                                                      'loguniform' => get_string('loguniform', 'quiz')),
                                                'calcdistribution[]', $regs[1], false);
             return '<input type="submit" onclick="'
@@ -1397,14 +1397,14 @@ class question_calculated_qtype extends default_questiontype {
                 list($options, $selected) =
                         $this->dataset_options($form, $datasetname);
                 unset($options['0']); // Mandatory...
-                $datasetmenus[$datasetname] = html_writer::input_select($options, 'dataset[]', $selected, false);
+                $datasetmenus[$datasetname] = html_writer::select($options, 'dataset[]', $selected, false);
             }
         }
         foreach ($optionaldatasets as $datasetname) {
             if (!isset($datasetmenus[$datasetname])) {
                 list($options, $selected) =
                         $this->dataset_options($form, $datasetname);
-                $datasetmenus[$datasetname] = html_writer::input_select($options, 'dataset[]', $selected, false);
+                $datasetmenus[$datasetname] = html_writer::select($options, 'dataset[]', $selected, false);
             }
         }
         return $datasetmenus;
index 678d067..07a3ff2 100644 (file)
@@ -235,7 +235,7 @@ if ($tagrecords = $DB->get_records_sql($query, $params, $table->get_page_start()
         $timemodified   =   format_time(time() - $tag->timemodified);
         $checkbox       =   '<input type="checkbox" name="tagschecked[]" value="'.$tag->id.'" />';
         $text           =   '<input type="text" name="newname['.$tag->id.']" />';
-        $tagtype        =   html_writer::input_select($existing_tagtypes, 'tagtypes['.$tag->id.']', $tag->tagtype, false);
+        $tagtype        =   html_writer::select($existing_tagtypes, 'tagtypes['.$tag->id.']', $tag->tagtype, false);
 
         //if the tag if flagged, highlight it
         if ($tag->flag > 0) {
index 22bed79..9ec1f2a 100644 (file)
@@ -109,7 +109,7 @@ foreach ($users as $k => $v) {
     if(!$user = $DB->get_record('user', array('id'=>$v))) {
         continue;
     }
-    $checkbox = html_writer::input_select($state_names, 'states[' . $k . ']', empty($states[$k]) ? NOTES_STATE_PUBLIC : $states[$k], false);
+    $checkbox = html_writer::select($state_names, 'states[' . $k . ']', empty($states[$k]) ? NOTES_STATE_PUBLIC : $states[$k], false);
     $table->data[] = array(
         '<input type="hidden" name="userid['.$k.']" value="'.$v.'" />'. fullname($user, true),
         '<textarea name="contents['. $k . ']" rows="2" cols="40">' . strip_tags(@$contents[$k]) . '</textarea>',
index 2cb66aa..c08b62e 100644 (file)
@@ -171,8 +171,8 @@ foreach ($_POST as $k => $v) {
             unset($userbasemenu[2]);
         }
 
-        $checkbox = html_writer::input_select($periodmenu, "extendperiod[{$m[1]}]", "0", array('0'=>$nochange));
-        $checkbox2 = html_writer::input_select($userbasemenu, "extendbase[{$m[1]}]", "2", false);
+        $checkbox = html_writer::select($periodmenu, "extendperiod[{$m[1]}]", "0", array('0'=>$nochange));
+        $checkbox2 = html_writer::select($userbasemenu, "extendbase[{$m[1]}]", "2", false);
         $table->data[] = array(
                 fullname($user, true),
                 $timestart,
index 5881f98..45c5c6f 100644 (file)
@@ -121,7 +121,7 @@ echo '<br /><textarea name="content" rows="5" cols="50">' . strip_tags(@$content
 
 echo '<p>' . $strpublishstate;
 echo $OUTPUT->help_icon('status', $strpublishstate, 'notes');
-echo html_writer::input_select($state_names, 'state', empty($state) ? NOTES_STATE_PUBLIC : $state, false);
+echo html_writer::select($state_names, 'state', empty($state) ? NOTES_STATE_PUBLIC : $state, false);
 echo '</p>';
 
 echo '<input type="submit" value="' . get_string('savechanges'). '" /></div></form>';
index 7b98615..fc30f1e 100755 (executable)
@@ -174,9 +174,9 @@ foreach ($_POST as $k => $v) {
 echo $OUTPUT->table($table);
 echo '<div style="width:100%;text-align:center;"><strong>';
 echo get_string('extendperiod') . ' ';
-echo html_writer::input_select($periodmenu, 'extendperiod');
+echo html_writer::select($periodmenu, 'extendperiod');
 echo ' ' . get_string('startingfrom') . ' ';
-echo html_writer::input_select($basemenu, 'extendbase', '2', false);
+echo html_writer::select($basemenu, 'extendbase', '2', false);
 echo '</strong><br />';
 echo '<input type="submit" value="'.get_string('savechanges').'" />';
 echo '</div></form>';