- choose_from_menu($CASLANGUAGES, 'language', $config->language, '');
+ echo $OUTPUT->select(html_select::make($CASLANGUAGES, 'language', $config->language, false));
unset($options);
$options[1] = get_string('yes');
-
- choose_from_menu ($options, 'proxycas', $config->proxycas, get_string('no'), '', '');
+ $select = html_select::make($options, 'proxycas', $config->proxycas, get_string('no'));
+ $select->nothingvalue = '';
+ echo $OUTPUT->select($select);
?>
$options[1] = get_string('yes');
- choose_from_menu ($options, 'logoutcas', $config->logoutcas, get_string('no'), '', '');
+ $select = html_select::make($options, 'logoutcas', $config->logoutcas, get_string('no'));
+ $select->nothingvalue = '';
+ echo $OUTPUT->select($select);
?>
$options[1] = get_string('yes');
- choose_from_menu ($options, 'multiauth', $config->multiauth, get_string('no'), '', '');
+ $select = html_select::make($options, 'multiauth', $config->multiauth, get_string('no'));
+ $select->nothingvalue = '';
+ echo $OUTPUT->select($select);
?>
$versions[3] = '3';
- choose_from_menu($versions, 'version', $config->version, '');
+ echo $OUTPUT->select(html_select::make($versions, 'version', $config->version, false));
if (isset($err['version'])) formerr($err['version']);
<td>
- <?php choose_from_menu($this->ldap_suppported_usertypes(), 'user_type', $config->user_type, ''); ?>
+ <?php echo $OUTPUT->select(html_select::make($this->ldap_suppported_usertypes(), 'user_type', $config->user_type, false)); ?>
<?php if (isset($err['user_type'])) formerr($err['user_type']); ?>
<td>
- <?php choose_from_menu($yesno, 'search_sub', $config->search_sub, ''); ?>
+ <?php echo $OUTPUT->select(html_select::make($yesno, 'search_sub', $config->search_sub, false)); ?>
</td>
$opt_deref[LDAP_DEREF_ALWAYS] = get_string('yes');
- choose_from_menu($opt_deref, 'opt_deref', $config->opt_deref, LDAP_DEREF_NEVER, '');
+ echo $OUTPUT->select(html_select::make($opt_deref, 'opt_deref', $config->opt_deref, LDAP_DEREF_NEVER, false));
if (isset($err['opt_deref'])) formerr($err['opt_deref']);
$deleteopt[AUTH_REMOVEUSER_FULLDELETE] = get_string('auth_remove_delete','auth');
- choose_from_menu($deleteopt, 'removeuser', $config->removeuser, '');
+ echo $OUTPUT->select(html_select::make($deleteopt, 'removeuser', $config->removeuser, false));
?>
foreach ($dbtypes as $dbtype) {
$dboptions[$dbtype] = $dbtype;
}
- choose_from_menu($dboptions, "type", $config->type, "");
+ echo $OUTPUT->select(html_select::make($dboptions, "type", $config->type, false));
?>
</td>
<tr valign="top" class="required">
<td align="right"><label for="menusybasequoting"><?php print_string("auth_dbsybasequoting", "auth_db") ?></label></td>
<td>
- <?php choose_from_menu($yesno, 'sybasequoting', $config->sybasequoting, ''); ?>
+ <?php echo $OUTPUT->select(html_select::make($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");
- choose_from_menu($passtype, "passtype", $config->passtype, "");
+ echo $OUTPUT->select(html_select::make($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 choose_from_menu($yesno, 'debugauthdb', $config->debugauthdb, ''); ?>
+ <?php echo $OUTPUT->select(html_select::make($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');
- choose_from_menu($deleteopt, 'removeuser', $config->removeuser, '');
+ echo $OUTPUT->select(html_select::make($deleteopt, 'removeuser', $config->removeuser, false));
?>
</td>
<td>
</tr>
<tr>
<td align="right"><label for="menurecaptcha"><?php print_string('auth_emailrecaptcha_key', 'auth_email') ?></label></td>
- <td><?php choose_from_menu($yesno, 'recaptcha', $config->recaptcha, ''); ?></td>
+ <td><?php echo $OUTPUT->select(html_select::make($yesno, 'recaptcha', $config->recaptcha, false)); ?></td>
<td><?php print_string('auth_emailrecaptcha', 'auth_email') ?></td>
</tr>
<?php
foreach ($imaptypes as $imaptype) {
$imapoptions[$imaptype] = $imaptype;
}
- choose_from_menu($imapoptions, 'type', $config->type, '');
+ echo $OUTPUT->select(html_select::make($imapoptions, 'type', $config->type, false));
?>
</td>
$versions = array();
$versions[2] = '2';
$versions[3] = '3';
- choose_from_menu($versions, 'version', $config->version, '');
+ echo $OUTPUT->select(html_select::make($versions, 'version', $config->version, false));
if (isset($err['version'])) formerr($err['version']);
?>
</td>
<tr valign="top" class="required">
<td align="right"><label for="menupreventpassindb"><?php print_string('auth_ldap_preventpassindb_key','auth_ldap') ?></label></td>
<td>
- <?php choose_from_menu($yesno, 'preventpassindb', $config->preventpassindb, ''); ?>
+ <?php echo $OUTPUT->select(html_select::make($yesno, 'preventpassindb', $config->preventpassindb, false)); ?>
</td><td>
<?php print_string('auth_ldap_preventpassindb','auth_ldap') ?>
</td>
<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 choose_from_menu($this->ldap_suppported_usertypes(), 'user_type', $config->user_type, ''); ?>
+ <?php echo $OUTPUT->select(html_select::make($this->ldap_suppported_usertypes(), 'user_type', $config->user_type, false)); ?>
<?php if (isset($err['user_type'])) formerr($err['user_type']); ?>
</td>
<td>
<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 choose_from_menu($yesno, 'search_sub', $config->search_sub, ''); ?>
+ <?php echo $OUTPUT->select(html_select::make($yesno, 'search_sub', $config->search_sub, false)); ?>
</td>
<td>
<?php print_string('auth_ldap_search_sub','auth_ldap') ?>
$opt_deref = array();
$opt_deref[LDAP_DEREF_NEVER] = get_string('no');
$opt_deref[LDAP_DEREF_ALWAYS] = get_string('yes');
- choose_from_menu($opt_deref, 'opt_deref', $config->opt_deref, LDAP_DEREF_NEVER, '');
+ echo $OUTPUT->select(html_select::make($opt_deref, 'opt_deref', $config->opt_deref, LDAP_DEREF_NEVER, false));
if (isset($err['opt_deref'])) formerr($err['opt_deref']);
?>
</td>
<tr valign="top" class="required">
<td align="right" valign="top"><label for="menuforcechangepassword"><?php print_string('forcechangepassword', 'auth') ?></label></td>
<td>
- <?php choose_from_menu($yesno, 'forcechangepassword', $config->forcechangepassword, ''); ?>
+ <?php echo $OUTPUT->select(html_select::make($yesno, 'forcechangepassword', $config->forcechangepassword, false)); ?>
</td>
<td align="left" valign="top">
<p><?php print_string('forcechangepasswordfirst_help', 'auth') ?></p>
<tr valign="top" class="required">
<td align="right" valign="top"><label for="menustdchangepassword"><?php print_string('stdchangepassword', 'auth') ?></label></td>
<td>
- <?php choose_from_menu($yesno, 'stdchangepassword', $config->stdchangepassword, ''); ?>
+ <?php echo $OUTPUT->select(html_select::make($yesno, 'stdchangepassword', $config->stdchangepassword, false)); ?>
</td>
<td align="left" valign="top">
<p><?php print_string('stdchangepassword_expl', 'auth') ?></p>
$passtype['plaintext'] = get_string('plaintext', 'auth');
$passtype['md5'] = get_string('md5', 'auth');
$passtype['sha1'] = get_string('sha1', 'auth');
- choose_from_menu($passtype, 'passtype', $config->passtype, '');
+ echo $OUTPUT->select(html_select::make($passtype, 'passtype', $config->passtype, false));
?>
</td>
$expiration = array();
$expiration['0'] = 'no';
$expiration['1'] = 'LDAP';
- choose_from_menu($expiration, 'expiration', $config->expiration, '');
+ echo $OUTPUT->select(html_select::make($expiration, 'expiration', $config->expiration, false));
if (isset($err['expiration'])) formerr($err['expiration']);
?>
</td>
<tr valign="top" class="required">
<td align="right"><label for="menugracelogins"><?php print_string('auth_ldap_gracelogins_key','auth_ldap') ?></label></td>
<td>
- <?php choose_from_menu($yesno, 'gracelogins', $config->gracelogins, ''); ?>
+ <?php echo $OUTPUT->select(html_select::make($yesno, 'gracelogins', $config->gracelogins, false)); ?>
</td>
<td>
<?php print_string('auth_ldap_gracelogins_desc','auth_ldap') ?>
<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 choose_from_menu($yesno, 'auth_user_create', $config->auth_user_create, ''); ?>
+ <?php echo $OUTPUT->select(html_select::make($yesno, 'auth_user_create', $config->auth_user_create, false)); ?>
</td>
<td>
<?php print_string("auth_user_creation","auth"); ?>
$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');
- choose_from_menu($deleteopt, 'removeuser', $config->removeuser, '');
+ echo $OUTPUT->select(html_select::make($deleteopt, 'removeuser', $config->removeuser, false));
?>
</td>
<td>
<td align="right"><label for="menuntlmsso_enabled"><?php print_string('auth_ntlmsso_enabled_key','auth_ldap') ?></label></td>
<td>
<?php
- choose_from_menu($yesno, 'ntlmsso_enabled', $config->ntlmsso_enabled, '0');
+ echo $OUTPUT->select(html_select::make($yesno, 'ntlmsso_enabled', $config->ntlmsso_enabled));
?>
</td>
<td>
<td align="right"><label for="menuntlmsso_ie_fastpath"><?php print_string('auth_ntlmsso_ie_fastpath_key','auth_ldap') ?></label></td>
<td>
<?php
- choose_from_menu($yesno, 'ntlmsso_ie_fastpath', $config->ntlmsso_ie_fastpath, '0');
+ echo $OUTPUT->select(html_select::make($yesno, 'ntlmsso_ie_fastpath', $config->ntlmsso_ie_fastpath));
?>
</td>
<td>
<td>
<?php
- choose_from_menu($yesno, 'auto_add_remote_users', $config->auto_add_remote_users, '');
+ echo $OUTPUT->select(html_select::make($yesno, 'auto_add_remote_users', $config->auto_add_remote_users, false));
?>
</td>
foreach ($pop3types as $pop3type) {
$pop3options[$pop3type] = $pop3type;
}
- choose_from_menu($pop3options, 'type', $config->type, '');
+ echo $OUTPUT->select(html_select::make($pop3options, 'type', $config->type, false));
?>
</td>
$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');
- choose_from_menu($radiustype, 'radiustype', $config->radiustype, '');
+ echo $OUTPUT->select(html_select::make($radiustype, 'radiustype', $config->radiustype, false));
if (isset($err['radiustype'])) {
formerr($err['radiustype']);