'set_return_and_save', 'form_name' => 'DetailView', 'field_to_name_array' => array( 'id' => 'opportunity_id', ), ); $json = getJSONobj(); $encoded_popup_request_data = $json->encode($popup_request_data); // /////////////////////////////////////// // focus_list is the means of passing data to a SubPanelView. global $focus_list; $button = "
\n"; $button .= "\n"; $button .= "\n"; $button .= "\n"; $button .= "\n"; $button .= "\n"; $button .= "\n"; $button .= "
\n"; $header_text = ''; if(is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])){ $header_text = " ".SugarThemeRegistry::current()->getImage("EditLayout","border='0' align='bottom'",null,null,'.gif',$mod_strings['LBL_EDITLAYOUT']).""; } $ListView = new ListView(); $ListView->initNewXTemplate('modules/Opportunities/SubPanelViewProjects.html',$current_module_strings); $ListView->xTemplateAssign("RETURN_URL", "&return_module=".$currentModule."&return_action=DetailView&return_id={$_REQUEST['record']}"); $ListView->xTemplateAssign("REMOVE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline','align="absmiddle" border="0"',null,null,'.gif',$app_strings['LNK_REMOVE'])); $ListView->setHeaderTitle($project_module_strings['LBL_OPPORTUNITY_SUBPANEL_TITLE']. $header_text ); $ListView->setHeaderText($button); $ListView->processListView($focus_list, "main", "OPPORTUNITY"); ?>