mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-21 18:31:37 +02:00
Formatting changes only
This commit is contained in:
parent
3482b8412e
commit
e369c4379b
@ -42,7 +42,6 @@
|
|||||||
$p->set_var($acl.'_selected','');
|
$p->set_var($acl.'_selected','');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function display_row($bg_color,$label,$id,$name)
|
function display_row($bg_color,$label,$id,$name)
|
||||||
{
|
{
|
||||||
@ -64,7 +63,7 @@
|
|||||||
{
|
{
|
||||||
check_acl($label,$id,'private',$rights,PHPGW_ACL_PRIVATE);
|
check_acl($label,$id,'private',$rights,PHPGW_ACL_PRIVATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
$p->parse('row','acl_row',True);
|
$p->parse('row','acl_row',True);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,16 +77,16 @@
|
|||||||
unset($acct);
|
unset($acct);
|
||||||
$acl = CreateObject('phpgwapi.acl',intval($owner));
|
$acl = CreateObject('phpgwapi.acl',intval($owner));
|
||||||
$acl->read_repository();
|
$acl->read_repository();
|
||||||
|
|
||||||
if ($submit)
|
if ($submit)
|
||||||
{
|
{
|
||||||
$to_remove = unserialize(urldecode($processed));
|
$to_remove = unserialize(urldecode($processed));
|
||||||
|
|
||||||
for($i=0;$i<count($to_remove);$i++)
|
for($i=0;$i<count($to_remove);$i++)
|
||||||
{
|
{
|
||||||
$acl->delete($phpgw_info['flags']['currentapp'],$to_remove[$i]);
|
$acl->delete($phpgw_info['flags']['currentapp'],$to_remove[$i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Group records
|
// Group records
|
||||||
$group_variable = 'g_'.$phpgw_info['flags']['currentapp'];
|
$group_variable = 'g_'.$phpgw_info['flags']['currentapp'];
|
||||||
|
|
||||||
@ -174,17 +173,17 @@
|
|||||||
if($private_acl == True)
|
if($private_acl == True)
|
||||||
{
|
{
|
||||||
$templates = Array (
|
$templates = Array (
|
||||||
'preferences' => 'preference_acl.tpl',
|
'preferences' => 'preference_acl.tpl',
|
||||||
'row_colspan' => 'preference_colspan_private.tpl',
|
'row_colspan' => 'preference_colspan_private.tpl',
|
||||||
'acl_row' => 'preference_acl_row_private.tpl'
|
'acl_row' => 'preference_acl_row_private.tpl'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$templates = Array (
|
$templates = Array (
|
||||||
'preferences' => 'preference_acl.tpl',
|
'preferences' => 'preference_acl.tpl',
|
||||||
'row_colspan' => 'preference_colspan.tpl',
|
'row_colspan' => 'preference_colspan.tpl',
|
||||||
'acl_row' => 'preference_acl_row.tpl'
|
'acl_row' => 'preference_acl_row.tpl'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -192,22 +191,22 @@
|
|||||||
// $p->set_var('errors','<p><center><b>This does nothing at this time!<br>Strictly as a template for use!</b></center>');
|
// $p->set_var('errors','<p><center><b>This does nothing at this time!<br>Strictly as a template for use!</b></center>');
|
||||||
|
|
||||||
$common_hidden_vars = ' <input type="hidden" name="s_groups" value="'.$s_groups.'">'."\n"
|
$common_hidden_vars = ' <input type="hidden" name="s_groups" value="'.$s_groups.'">'."\n"
|
||||||
. ' <input type="hidden" name="s_users" value="'.$s_users.'">'."\n"
|
. ' <input type="hidden" name="s_users" value="'.$s_users.'">'."\n"
|
||||||
. ' <input type="hidden" name="maxm" value="'.$maxm.'">'."\n"
|
. ' <input type="hidden" name="maxm" value="'.$maxm.'">'."\n"
|
||||||
. ' <input type="hidden" name="totalentries" value="'.$totalentries.'">'."\n"
|
. ' <input type="hidden" name="totalentries" value="'.$totalentries.'">'."\n"
|
||||||
. ' <input type="hidden" name="start" value="'.$start.'">'."\n"
|
. ' <input type="hidden" name="start" value="'.$start.'">'."\n"
|
||||||
. ' <input type="hidden" name="query" value="'.$query.'">'."\n"
|
. ' <input type="hidden" name="query" value="'.$query.'">'."\n"
|
||||||
. ' <input type="hidden" name="owner" value="'.$owner.'">'."\n";
|
. ' <input type="hidden" name="owner" value="'.$owner.'">'."\n";
|
||||||
|
|
||||||
$var = Array(
|
$var = Array(
|
||||||
'errors' => '',
|
'errors' => '',
|
||||||
'title' => '<p><b>'.lang($phpgw_info['flags']['currentapp'].' preferences').' - '.lang('acl').':</b><hr><p>',
|
'title' => '<p><b>'.lang($phpgw_info['flags']['currentapp'].' preferences').' - '.lang('acl').':</b><hr><p>',
|
||||||
'action_url' => $phpgw->link('/addressbook/acl_preferences.php'),
|
'action_url' => $phpgw->link('/addressbook/acl_preferences.php'),
|
||||||
'bg_color' => $phpgw_info['theme']['th_bg'],
|
'bg_color' => $phpgw_info['theme']['th_bg'],
|
||||||
'submit_lang' => lang('submit'),
|
'submit_lang' => lang('submit'),
|
||||||
'common_hidden_vars_form' => $common_hidden_vars
|
'common_hidden_vars_form' => $common_hidden_vars
|
||||||
);
|
);
|
||||||
|
|
||||||
$p->set_var($var);
|
$p->set_var($var);
|
||||||
|
|
||||||
if(isset($query_result) && $query_result)
|
if(isset($query_result) && $query_result)
|
||||||
@ -218,12 +217,12 @@
|
|||||||
$p->set_var('common_hidden_vars',$common_hidden_vars);
|
$p->set_var('common_hidden_vars',$common_hidden_vars);
|
||||||
|
|
||||||
$var = Array(
|
$var = Array(
|
||||||
'read_lang' => lang('Read'),
|
'read_lang' => lang('Read'),
|
||||||
'add_lang' => lang('Add'),
|
'add_lang' => lang('Add'),
|
||||||
'edit_lang' => lang('Edit'),
|
'edit_lang' => lang('Edit'),
|
||||||
'delete_lang' => lang('Delete')
|
'delete_lang' => lang('Delete')
|
||||||
);
|
);
|
||||||
|
|
||||||
$p->set_var($var);
|
$p->set_var($var);
|
||||||
|
|
||||||
if($private_acl == True)
|
if($private_acl == True)
|
||||||
@ -241,7 +240,7 @@
|
|||||||
{
|
{
|
||||||
$group = $groups[$k];
|
$group = $groups[$k];
|
||||||
$go = True;
|
$go = True;
|
||||||
|
|
||||||
if($query)
|
if($query)
|
||||||
{
|
{
|
||||||
if(!strpos(' '.$group['account_id'].' ',$query))
|
if(!strpos(' '.$group['account_id'].' ',$query))
|
||||||
@ -249,7 +248,7 @@
|
|||||||
$go = False;
|
$go = False;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($go)
|
if($go)
|
||||||
{
|
{
|
||||||
$tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color);
|
$tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color);
|
||||||
@ -292,7 +291,7 @@
|
|||||||
$go = False;
|
$go = False;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($go)
|
if($go)
|
||||||
{
|
{
|
||||||
$tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color);
|
$tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color);
|
||||||
@ -314,13 +313,13 @@
|
|||||||
$extra_parms = '&s_users='.$s_users.'&s_groups='.$s_groups.'&maxm='.$maxm.'&totalentries='.$totalentries.'&total='.($start + $total).'&owner='.$owner;
|
$extra_parms = '&s_users='.$s_users.'&s_groups='.$s_groups.'&maxm='.$maxm.'&totalentries='.$totalentries.'&total='.($start + $total).'&owner='.$owner;
|
||||||
|
|
||||||
$var = Array(
|
$var = Array(
|
||||||
'nml' => $phpgw->nextmatchs->left('',$start,$totalentries,$extra_parms),
|
'nml' => $phpgw->nextmatchs->left('',$start,$totalentries,$extra_parms),
|
||||||
'nmr' => $phpgw->nextmatchs->right('',$start,$totalentries,$extra_parms),
|
'nmr' => $phpgw->nextmatchs->right('',$start,$totalentries,$extra_parms),
|
||||||
'search_value' => (isset($query) && $query?$query:''),
|
'search_value' => (isset($query) && $query?$query:''),
|
||||||
'search' => lang('search'),
|
'search' => lang('search'),
|
||||||
'processed' => urlencode(serialize($processed))
|
'processed' => urlencode(serialize($processed))
|
||||||
);
|
);
|
||||||
|
|
||||||
$p->set_var($var);
|
$p->set_var($var);
|
||||||
|
|
||||||
$p->pparse('out','preferences');
|
$p->pparse('out','preferences');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user