retrieve($_REQUEST['record']); if($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $is_edit=true; } if(isset($_REQUEST['edit']) && $_REQUEST['edit']=='true') { $is_edit=true; //Only allow admins to enter this screen if (!is_admin($current_user)&& !is_admin_for_module($GLOBALS['current_user'],'Bugs')) { $GLOBALS['log']->error("Non-admin user ($current_user->user_name) attempted to enter the Releases edit screen"); session_destroy(); include('modules/Users/Logout.php'); } } $GLOBALS['log']->info("Release list view"); global $theme; $button = "
\n"; $ListView = new ListView(); if((is_admin($current_user)|| is_admin_for_module($GLOBALS['current_user'],'Bugs')) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])){ $header_text = " ".SugarThemeRegistry::current()->getImage("EditLayout","border='0' align='bottom'" ,null,null,'.gif',$mod_strings['LBL_EDITLAYOUT']).""; } $ListView->initNewXTemplate( 'modules/Releases/ListView.html',$mod_strings); $ListView->xTemplateAssign("DELETE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline','align="absmiddle" border="0"',null,null,'.gif',$app_strings['LNK_DELETE'])); $ListView->setHeaderTitle($mod_strings['LBL_LIST_FORM_TITLE'] . $header_text); $ListView->setHeaderText($button); $ListView->show_export_button = false; $ListView->show_mass_update = false; $ListView->show_delete_button = false; $ListView->show_select_menu = false; $ListView->setQuery("", "", "list_order", "RELEASE"); $ListView->processListView($focus, "main", "RELEASE"); if ($is_edit) { $edit_button ="