forked from extern/egroupware
changed the checkbox into a selectbox for default and forced
This commit is contained in:
parent
e51ef6d6e8
commit
6ba4856598
@ -110,6 +110,13 @@
|
|||||||
{
|
{
|
||||||
global $t;
|
global $t;
|
||||||
|
|
||||||
|
if ($GLOBALS['type'] != 'user') // for default and forced we need a 3. setting
|
||||||
|
{
|
||||||
|
return create_select_box($label_name,$preference_name,array(
|
||||||
|
'0' => lang('No'),
|
||||||
|
'1' => lang('Yes')
|
||||||
|
));
|
||||||
|
}
|
||||||
$_appname = check_app();
|
$_appname = check_app();
|
||||||
$GLOBALS['phpgw']->nextmatchs->template_alternate_row_color($t);
|
$GLOBALS['phpgw']->nextmatchs->template_alternate_row_color($t);
|
||||||
$t->set_var('row_name',lang($label_name));
|
$t->set_var('row_name',lang($label_name));
|
||||||
@ -119,18 +126,7 @@
|
|||||||
return True;
|
return True;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($GLOBALS['type'])
|
$s = '<input type="checkbox" name="user[' . $preference_name . ']" value="1"' . ($GLOBALS['phpgw_info']['user']['preferences'][$_appname][$preference_name] ? ' CHECKED' : '') . '">';
|
||||||
{
|
|
||||||
case 'user':
|
|
||||||
$s = '<input type="checkbox" name="user[' . $preference_name . ']" value="1"' . ($GLOBALS['phpgw_info']['user']['preferences'][$_appname][$preference_name] ? ' CHECKED' : '') . '">';
|
|
||||||
break;
|
|
||||||
case 'default':
|
|
||||||
$s = '<input type="checkbox" name="default[' . $preference_name . ']" value="1"' . ($GLOBALS['dp']->data[$_appname][$preference_name] ? ' CHECKED' : '') . '">';
|
|
||||||
break;
|
|
||||||
case 'forced':
|
|
||||||
$s = '<input type="checkbox" name="forced[' . $preference_name . ']" value="1"' . ($GLOBALS['gp']->data[$_appname][$preference_name] ? ' CHECKED' : '') . '">';
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
$t->set_var('row_value',$s);
|
$t->set_var('row_value',$s);
|
||||||
|
|
||||||
$t->fp('rows','row',True);
|
$t->fp('rows','row',True);
|
||||||
|
Loading…
Reference in New Issue
Block a user