assign("RETURN_URL", "&return_module=$current_module&return_action=$action&return_id=$focus->id"); //$xtpl->parse("main"); //$xtpl->out("main"); $button = "\n"; $button .= "\n"; if ($currentModule == 'Accounts') $button .= "\nname\">\n"; if ($currentModule == 'Contacts') { $button .= "\naccount_name\">\n"; $button .= "\n"; } $button .= "\n"; $button .= "\n"; $button .= "\n"; $button .= "\n"; $button .= ""; $button .= "\n"; if ($currentModule == 'Accounts') $button .= "\n"; else $button .= "\n"; $button .= "
 
\n"; $ListView = new ListView(); $ListView->initNewXTemplate( 'modules/Potentials/SubPanelView.html',$current_module_strings); $ListView->xTemplateAssign("RETURN_URL", "&return_module=".$currentModule."&return_action=DetailView&return_id={$_REQUEST['record']}"); $ListView->setHeaderTitle($current_module_strings['LBL_MODULE_NAME'] ); $ListView->setHeaderText($button); $ListView->processListView($focus_list, "main", "OPPORTUNITY"); ?>