$subpanel = $_REQUEST['subpanel']; $record = $_REQUEST['record']; $module = $_REQUEST['module']; $collection = array(); if (isset($_REQUEST['collection_basic']) && $_REQUEST['collection_basic'][0] != 'null') { $_REQUEST['collection_basic'] = explode(',', $_REQUEST['collection_basic'][0]); $collection = $_REQUEST['collection_basic']; } if (empty($_REQUEST['inline'])) { insert_popup_header($theme); } //require_once('include/SubPanel/SubPanelDefinitions.php'); //require_once($beanFiles[$beanList[$_REQUEST['module']]]); //$focus=new $beanList[$_REQUEST['module']]; //$focus->retrieve($record); include 'custom/include/SubPanel/SubPanel.php'; $layout_def_key = ''; if (!empty($_REQUEST['layout_def_key'])) { $layout_def_key = $_REQUEST['layout_def_key']; } $subpanel_object = new CustomSubPanel($module, $record, $subpanel, null, $layout_def_key, $collection); $subpanel_object->setTemplateFile('custom/include/SubPanel/SubPanelDynamic.html'); echo empty($_REQUEST['inline']) ? $subpanel_object->get_buttons() : ''; $subpanel_object->display(); $jsAlerts = new jsAlerts(); if (!isset($_SESSION['isMobile'])) { echo $jsAlerts->getScript(); } if (empty($_REQUEST['inline'])) { insert_popup_footer($theme); }
* Section 5 of the GNU Affero General Public License version 3. * * In accordance with Section 7(b) of the GNU Affero General Public License version 3, * these Appropriate Legal Notices must retain the display of the "Powered by * SugarCRM" logo and "Supercharged by SuiteCRM" logo. If the display of the logos is not * reasonably feasible for technical reasons, the Appropriate Legal Notices must * display the words "Powered by SugarCRM" and "Supercharged by SuiteCRM". ********************************************************************************/ ini_set('display_errors', 1); global $beanList; global $beanFiles; if (empty($_REQUEST['module'])) { die("'module' was not defined"); } if (!isset($beanList[$_REQUEST['module']])) { die("'" . $_REQUEST['module'] . "' is not defined in \$beanList"); } if (!isset($_REQUEST['subpanel'])) { sugar_die('Subpanel was not defined'); } $subpanel = $_REQUEST['subpanel']; $record = ''; $module = $_REQUEST['module']; $collection = array(); include 'include/SubPanel/SubPanel.php'; $layout_def_key = ''; if (!empty($_REQUEST['layout_def_key'])) { $layout_def_key = $_REQUEST['layout_def_key']; } $subpanel_object = new CustomSubPanel($module, $record, $subpanel, null, $layout_def_key, $collection); echo $subpanel_object->getSearchForm();