load_subpanel($subpanel, false, false, '', $collection); $subpanel_object = new SubPanel($module, $record, $subpanel, $aSubPanelObject, $layout_def_key, $collection); $subpanel_object->setTemplateFile('include/SubPanel/tpls/SubPanelDynamic.tpl'); echo empty($_REQUEST['inline']) ? $subpanel_object->get_buttons() : ''; $countOnly = isset($_REQUEST['countOnly']) && $_REQUEST['countOnly']; $subpanel_object->display($countOnly); if (!$countOnly) { $jsAlerts = new jsAlerts(); if (!isset($_SESSION['isMobile'])) { echo $jsAlerts->getScript(); } if (empty($_REQUEST['inline'])) { insert_popup_footer(); } }