mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
removed 2 unneeded funtions
This commit is contained in:
parent
edc3121ba8
commit
7b043d76b1
@ -31,44 +31,6 @@
|
||||
Header('Location: ' . $phpgw->link('/admin/accounts.php'));
|
||||
}
|
||||
|
||||
function section_item($pref_link='',$pref_text='', $bgcolor)
|
||||
{
|
||||
global $phpgw, $phpgw_info, $t;
|
||||
|
||||
$t->set_var('row_link',$pref_link);
|
||||
$t->set_var('row_text',$pref_text);
|
||||
$t->set_var('tr_color',$bgcolor);
|
||||
$t->parse('rows','link_row',True);
|
||||
}
|
||||
|
||||
// $file must be in the follow format:
|
||||
// $file = Array(
|
||||
// 'Login History' => array('/index.php','menuaction=admin.uiaccess_history.list')
|
||||
// );
|
||||
// This allows extra data to be sent along
|
||||
function display_section($appname,$title,$file)
|
||||
{
|
||||
global $phpgw, $phpgw_info, $account_id;
|
||||
|
||||
$i = 0;
|
||||
$color[1] = $phpgw_info['theme']['row_off'];
|
||||
$color[0] = $phpgw_info['theme']['row_on'];
|
||||
while(list($text,$_url) = each($file))
|
||||
{
|
||||
list($url,$extra_data) = $_url;
|
||||
if ($extra_data)
|
||||
{
|
||||
$link = $phpgw->link($url,'account_id=' . $account_id . '&' . $extra_data);
|
||||
}
|
||||
else
|
||||
{
|
||||
$link = $phpgw->link($url,'account_id=' . $account_id);
|
||||
}
|
||||
section_item($link,lang($text),$color[$i%2]);
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
||||
$t = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
|
||||
$t->set_unknowns('remove');
|
||||
$t->set_file(array('account' => 'account_form.tpl'));
|
||||
|
Loading…
Reference in New Issue
Block a user