removed unnecessary instancations and using static methods of html and egw_link class

This commit is contained in:
Ralf Becker 2008-03-25 16:07:08 +00:00
parent 7dedec8bdc
commit d7fe53b79e

View File

@ -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),