'set_return_and_save', 'form_name' => 'DetailView', 'field_to_name_array' => array( 'id' => 'ecmproduct_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"; if ($currentModule == 'Accounts') { $button .= "\n"; $button .= "\n"; }elseif ($currentModule == 'Contacts') { $button .= "\n"; $button .= "\n"; $button .= "\n"; }elseif ($currentModule == 'Cases') { $button .= "\n"; } $button .= "\n"; $button .= "\n"; $button .= "\n"; $button .= "\n"; $button .= "\n"; $button .= "\n"; $button .= "
\n"; $ListView = new ListView(); $ListView->initNewXTemplate( 'modules/EcmProductB2Bs/SubPanelView.html',$current_module_strings); $ListView->xTemplateAssign("RETURN_URL", "&return_module=".$currentModule."&return_action=DetailView&return_id={$_REQUEST['record']}"); $ListView->xTemplateAssign("EDIT_INLINE_PNG", get_image($image_path.'edit_inline', 'align="absmiddle" alt="'.$app_strings['LNK_EDIT'] .'" border="0"')); $ListView->xTemplateAssign("DELETE_INLINE_PNG", get_image($image_path.'delete_inline','align="absmiddle" alt="'.$app_strings['LNK_REMOVE'].'" border="0"')); if(is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])){ $header_text = " " .get_image($image_path."EditLayout","border='0' alt='Edit Layout' align='bottom'") .""; } $ListView->setHeaderTitle($current_module_strings['LBL_MODULE_NAME'] . $header_text ); $ListView->setHeaderText($button); $ListView->processListView($focus_list, "main", "ECMPRODUCT"); ?>