_getModuleTitleListParam(), "{$this->bean->name}", $mod_strings['LBL_PROJECT_TEMPLATE'] ); } function display() { global $beanFiles; require_once($beanFiles['Project']); $focus = new Project(); $focus->retrieve($_REQUEST['record']); global $app_list_strings, $current_user, $mod_strings; $this->ss->assign('APP_LIST_STRINGS', $app_list_strings); if($current_user->id == $focus->assigned_user_id || $current_user->is_admin){ $this->ss->assign('OWNER_ONLY', true); } else{ $this->ss->assign('OWNER_ONLY', false); } parent::display(); } /** * @see SugarView::_displaySubPanels() */ protected function _displaySubPanels() { require_once ('include/SubPanel/SubPanelTiles.php'); $subpanel = new SubPanelTiles( $this->bean, 'ProjectTemplates' ); echo $subpanel->display( true, true ); } }