mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +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}">
|
<tr bgcolor="{row_on}">
|
||||||
<td>{lang_Enable_remote_search}:</td>
|
<td>{lang_Enable_remote_search}:</td>
|
||||||
<td>
|
<td>
|
||||||
<select name="newsettings[enable_remote_addressbook]">
|
<input name="newsettings[enable_remote_addressbook]" type="radio" value=""{checked_enable_remote_addressbook+}>{lang_no}
|
||||||
<option value="">{lang_no}</option>
|
<input name="newsettings[enable_remote_addressbook]" type="radio" value="True"{checked_enable_remote_addressbook+True}>{lang_yes}
|
||||||
<option value="True"{selected_enable_remote_addressbook_True}>{lang_yes}</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- END body -->
|
<!-- END body -->
|
||||||
|
@ -181,7 +181,7 @@
|
|||||||
}
|
}
|
||||||
$newval = implode(' ',$new);
|
$newval = implode(' ',$new);
|
||||||
|
|
||||||
switch ($type)
|
switch($type)
|
||||||
{
|
{
|
||||||
case 'lang':
|
case 'lang':
|
||||||
$t->set_var($value,lang($newval));
|
$t->set_var($value,lang($newval));
|
||||||
@ -198,19 +198,19 @@
|
|||||||
$t->set_var($value,$current_config[$newval]);
|
$t->set_var($value,$current_config[$newval]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
/*
|
|
||||||
case 'checked':
|
case 'checked':
|
||||||
$newval = ereg_replace(' ','_',$newval);
|
/* '+' is used as a delimiter for the check value */
|
||||||
if ($current_config[$newval])
|
list($newvalue,$check) = split('\+',$newval);
|
||||||
|
$newval = ereg_replace(' ','_',$newvalue);
|
||||||
|
if($current_config[$newval] == $check)
|
||||||
{
|
{
|
||||||
$t->set_var($value,' checked');
|
$t->set_var($value, ' checked');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$t->set_var($value,'');
|
$t->set_var($value, '');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
*/
|
|
||||||
case 'selected':
|
case 'selected':
|
||||||
$configs = array();
|
$configs = array();
|
||||||
$config = '';
|
$config = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user