mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-21235 fixed select method name
This commit is contained in:
parent
4b9210f31b
commit
d776d59ee2
@ -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> ';
|
||||
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> ';
|
||||
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> ';
|
||||
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)) {
|
||||
|
@ -125,7 +125,7 @@
|
||||
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>';
|
||||
|
@ -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') . '" />';
|
||||
|
@ -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>';
|
||||
|
||||
@ -167,7 +167,7 @@
|
||||
$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>';
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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,
|
||||
|
@ -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>';
|
||||
|
@ -331,10 +331,10 @@
|
||||
</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>
|
||||
|
||||
|
@ -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() {
|
||||
|
@ -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>";
|
||||
|
@ -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
|
||||
|
@ -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>';
|
||||
|
@ -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>';
|
||||
|
@ -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&dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)) . '">[' . $this->str['back'] . ']</a></td></tr>';
|
||||
$o.= ' </table>';
|
||||
|
@ -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&dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)) . '">[' . $this->str['back'] . ']</a></td></tr>';
|
||||
$o.= ' </table>';
|
||||
|
@ -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) . ' <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) . ' <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>';
|
||||
|
@ -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) . ' <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) . ' <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>';
|
||||
|
@ -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);
|
||||
|
||||
?>
|
||||
|
||||
|
@ -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>
|
||||
@ -192,7 +192,7 @@
|
||||
$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>
|
||||
@ -225,7 +225,7 @@
|
||||
<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>
|
||||
@ -259,7 +259,7 @@
|
||||
$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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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']);
|
||||
|
@ -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 {
|
||||
|
@ -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" />';
|
||||
|
@ -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>
|
||||
|
@ -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() {
|
||||
|
@ -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>
|
||||
|
@ -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"';
|
||||
|
@ -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>';
|
||||
|
@ -121,11 +121,11 @@
|
||||
$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";
|
||||
|
||||
|
@ -45,21 +45,21 @@
|
||||
}
|
||||
|
||||
$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').'" />') ;
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>";
|
||||
|
@ -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>
|
||||
@ -160,7 +160,7 @@
|
||||
$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>
|
||||
@ -178,7 +178,7 @@
|
||||
<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>
|
||||
@ -194,7 +194,7 @@
|
||||
$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"]); ?>
|
||||
@ -223,7 +223,7 @@
|
||||
<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']);
|
||||
}
|
||||
@ -238,7 +238,7 @@
|
||||
<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']);
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -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"]); ?>
|
||||
|
@ -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') ?>
|
||||
|
@ -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>
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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>';
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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));
|
||||
|
||||
|
@ -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>';
|
||||
|
@ -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>
|
||||
|
@ -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() {
|
||||
|
@ -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(''=>' '));
|
||||
return html_writer::select($options, 'f_'.$this->field->id, $content, array(''=>' '));
|
||||
}
|
||||
|
||||
function parse_search_field() {
|
||||
|
@ -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>
|
||||
|
@ -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() {
|
||||
|
@ -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..."));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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>';
|
||||
|
||||
|
@ -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%">
|
||||
|
@ -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..."));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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>';
|
||||
|
||||
|
@ -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>';
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -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".
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
|
@ -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) {
|
||||
|
@ -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>',
|
||||
|
@ -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,
|
||||
|
@ -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>';
|
||||
|
@ -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>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user