mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
removed unnecessary instancations and using static methods of html and egw_link class
This commit is contained in:
parent
7dedec8bdc
commit
d7fe53b79e
@ -33,15 +33,10 @@ class ui_resources
|
|||||||
function ui_resources()
|
function ui_resources()
|
||||||
{
|
{
|
||||||
// print_r($GLOBALS['egw_info']); die();
|
// print_r($GLOBALS['egw_info']); die();
|
||||||
$this->tmpl =& CreateObject('etemplate.etemplate','resources.show');
|
$this->tmpl = new etemplate('resources.show');
|
||||||
$this->bo =& CreateObject('resources.bo_resources');
|
$this->bo =& CreateObject('resources.bo_resources');
|
||||||
$this->html =& $GLOBALS['egw']->html;
|
|
||||||
// $this->calui = CreateObject('resources.ui_calviews');
|
// $this->calui = CreateObject('resources.ui_calviews');
|
||||||
|
|
||||||
if(!@is_object($GLOBALS['egw']->js))
|
|
||||||
{
|
|
||||||
$GLOBALS['egw']->js =& CreateObject('phpgwapi.javascript');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -541,7 +536,7 @@ class ui_resources
|
|||||||
$resources['r'.$data['res_id']] = $data['name'];
|
$resources['r'.$data['res_id']] = $data['name'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$selectbox = $this->html->select(
|
$selectbox = html::select(
|
||||||
'owner',
|
'owner',
|
||||||
$selected,
|
$selected,
|
||||||
array_merge($resources,$res_cats),
|
array_merge($resources,$res_cats),
|
||||||
|
Loading…
Reference in New Issue
Block a user