retrieve($_REQUEST['record']); require_once('include/MVC/View/SugarView.php'); if(file_exists('modules/EcmProductGroups/views/view.detail.php')) { require_once('modules/EcmProductGroups/views/view.detail.php'); $detail = new EcmProductGroup(); } else{ require_once('include/MVC/View/views/view.detail.php'); $detail = new ViewDetail(); } global $app_list_strings; $detail->bean = $focus; $detail->module = 'EcmProductGroups'; $detail->ss = new Sugar_Smarty(); //show assigned file if ($focus->assigned_file!="" && $focus->assigned_file) { $tmp = explode(".", $focus->assigned_file); if (end($tmp) == 'jpeg' || end($tmp) == 'jpg' || end($tmp) == 'png' || end($tmp) == 'bmp') $af = ''; else $af = ''.$focus->assigned_file.''; } $detail->ss->assign("ASSIGNED_FILE", $af); //features $json = getJSONobj(); $features = $json->decode(htmlspecialchars_decode($focus->features)); $f = ''; foreach ($features as $feature) { $opt = ' [ '.str_replace(";", " | ", $feature['feature_options']).' ]'; $f.=$feature['feature_name'].$opt.'
'; } $detail->ss->assign("FEATURES", $f); $detail->preDisplay(); echo $detail->display(); require_once('include/SubPanel/SubPanelTiles.php'); $subpanel = new SubPanelTiles($focus, "EcmProductGroups"); echo $subpanel->display();