mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Removed some commented out code
This commit is contained in:
parent
583c8d7c6c
commit
8b483a14a4
@ -101,105 +101,6 @@
|
||||
$this->template->pfp('out','list');
|
||||
}
|
||||
|
||||
/* FIX ME! Remove after first commit, I didn't wanna rewrite this (if I had to), so I am keeping a
|
||||
copy in cvs as a backup
|
||||
function account_list()
|
||||
{
|
||||
global $phpgw_info, $phpgw, $sort, $start, $order, $query; // REMOVE ME!
|
||||
|
||||
if (! $GLOBALS['acl_app'] || ! $GLOBALS['location'])
|
||||
{
|
||||
$this->list_apps();
|
||||
return False;
|
||||
}
|
||||
$location = base64_decode($GLOBALS['location']);
|
||||
|
||||
$this->common_header();
|
||||
|
||||
// REMOVE ME!
|
||||
$phpgw->nextmatchs = createobject('phpgwapi.nextmatchs');
|
||||
$this->nextmatchs = createobject('phpgwapi.nextmatchs');
|
||||
|
||||
$this->template->set_file(array(
|
||||
'accounts' => 'acl_accounts.tpl'
|
||||
));
|
||||
$this->template->set_block('accounts','list','list');
|
||||
$this->template->set_block('accounts','row','row');
|
||||
$this->template->set_block('accounts','row_empty','row_empty');
|
||||
|
||||
$total = $this->account_total($GLOBALS['query']);
|
||||
|
||||
$this->template->set_var('bg_color',$phpgw_info['theme']['bg_color']);
|
||||
$this->template->set_var('th_bg',$phpgw_info['theme']['th_bg']);
|
||||
|
||||
$this->template->set_var('left_next_matchs',$phpgw->nextmatchs->left('/admin/accounts.php',$start,$total));
|
||||
$this->template->set_var('lang_header',lang('ACL Manager - %1 - %2',$GLOBALS['phpgw_info']['navbar'][$GLOBALS['acl_app']]['title'],$location));
|
||||
$this->template->set_var('right_next_matchs',$phpgw->nextmatchs->right('/admin/accounts.php',$start,$total));
|
||||
|
||||
$this->template->set_var('lang_loginid',$phpgw->nextmatchs->show_sort_order($sort,'account_lid',$order,'/index.php',lang('LoginID'),'&acl_app=' . $GLOBALS['acl_app'] . '&location=' . $GLOBALS['location']));
|
||||
$this->template->set_var('lang_lastname',$phpgw->nextmatchs->show_sort_order($sort,'account_lastname',$order,'/index.php',lang('last name'),'&acl_app=' . $GLOBALS['acl_app'] . '&location=' . $GLOBALS['location']));
|
||||
$this->template->set_var('lang_firstname',$phpgw->nextmatchs->show_sort_order($sort,'account_firstname',$order,'/index.php',lang('first name'),'&acl_app=' . $GLOBALS['acl_app'] . '&location=' . $GLOBALS['location']));
|
||||
|
||||
$this->template->set_var('lang_access',lang('Access'));
|
||||
|
||||
$account_info = $phpgw->accounts->get_list('accounts',$start,$sort,$order,$query);
|
||||
|
||||
if (! count($account_info))
|
||||
{
|
||||
$this->template->set_var('message',lang('No matchs found'));
|
||||
$this->template->parse('rows','row_empty',True);
|
||||
}
|
||||
else
|
||||
{
|
||||
while (list($null,$account) = each($account_info))
|
||||
{
|
||||
$lastname = $account['account_lastname'];
|
||||
$firstname = $account['account_firstname'];
|
||||
$account_id = $account['account_id'];
|
||||
$loginid = $account['account_lid'];
|
||||
|
||||
$phpgw->nextmatchs->template_alternate_row_color(&$this->template);
|
||||
|
||||
if (! $lastname)
|
||||
{
|
||||
$lastname = ' ';
|
||||
}
|
||||
|
||||
if (! $firstname)
|
||||
{
|
||||
$firstname = ' ';
|
||||
}
|
||||
|
||||
$this->template->set_var('row_loginid',$loginid);
|
||||
$this->template->set_var('row_firstname',$firstname);
|
||||
$this->template->set_var('row_lastname',$lastname);
|
||||
|
||||
$link_values = array(
|
||||
'menuaction' => 'admin.uiaclmanager.access_form',
|
||||
'location' => $GLOBALS['location'],
|
||||
'acl_app' => $GLOBALS['acl_app'],
|
||||
'account_id' => $account_id
|
||||
);
|
||||
$this->template->set_var('row_access','<a href="'.$phpgw->link('/index.php',$link_values)
|
||||
. '"> ' . lang('Access') . ' </a>');
|
||||
|
||||
$this->template->fp('rows','row',True);
|
||||
}
|
||||
} // End else
|
||||
|
||||
$link_values = array(
|
||||
'menuaction' => 'admin.uiaclmanager.access_form',
|
||||
'location' => urlencode(base64_encode($location)),
|
||||
'acl_app' => $acl_app
|
||||
);
|
||||
$this->template->set_var('actionurl',$phpgw->link('/index.php',$link_values));
|
||||
$this->template->set_var('lang_search',lang('Search'));
|
||||
|
||||
$this->template->pfp('out','list');
|
||||
|
||||
|
||||
} */
|
||||
|
||||
function access_form()
|
||||
{
|
||||
$GLOBALS['phpgw']->common->hook_single('acl_manager',$GLOBALS['acl_app']);
|
||||
|
Loading…
Reference in New Issue
Block a user