mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-10 16:08:34 +01:00
Testing ability to handle checkboxes in admin config class
This commit is contained in:
parent
33549dcf9e
commit
5d9ec2d917
@ -47,10 +47,8 @@
|
||||
<tr bgcolor="{row_on}">
|
||||
<td>{lang_Enable_remote_search}:</td>
|
||||
<td>
|
||||
<select name="newsettings[enable_remote_addressbook]">
|
||||
<option value="">{lang_no}</option>
|
||||
<option value="True"{selected_enable_remote_addressbook_True}>{lang_yes}</option>
|
||||
</select>
|
||||
<input name="newsettings[enable_remote_addressbook]" type="radio" value=""{checked_enable_remote_addressbook+}>{lang_no}
|
||||
<input name="newsettings[enable_remote_addressbook]" type="radio" value="True"{checked_enable_remote_addressbook+True}>{lang_yes}
|
||||
</td>
|
||||
</tr>
|
||||
<!-- END body -->
|
||||
|
@ -198,10 +198,11 @@
|
||||
$t->set_var($value,$current_config[$newval]);
|
||||
}
|
||||
break;
|
||||
/*
|
||||
case 'checked':
|
||||
$newval = ereg_replace(' ','_',$newval);
|
||||
if ($current_config[$newval])
|
||||
/* '+' is used as a delimiter for the check value */
|
||||
list($newvalue,$check) = split('\+',$newval);
|
||||
$newval = ereg_replace(' ','_',$newvalue);
|
||||
if($current_config[$newval] == $check)
|
||||
{
|
||||
$t->set_var($value, ' checked');
|
||||
}
|
||||
@ -210,7 +211,6 @@
|
||||
$t->set_var($value, '');
|
||||
}
|
||||
break;
|
||||
*/
|
||||
case 'selected':
|
||||
$configs = array();
|
||||
$config = '';
|
||||
|
Loading…
Reference in New Issue
Block a user