retrieve($_REQUEST['record']); require_once('include/MVC/View/SugarView.php'); if(file_exists('modules/EcmProductCategories/views/view.edit.php')) { require_once('modules/EcmProductCategories/views/view.edit.php'); $edit = new EcmProductCategory(); } else{ require_once('include/MVC/View/views/view.edit.php'); $edit = new Viewedit(); } global $app_list_strings; $file = 'modules/EcmGroupSales/EcmGroupSale.php'; if(file_exists($file)) { $cc = array(); require_once($file); $cc = EcmGroupSale::loadSettings(); } $OPT = array(); $OPT['row_item_height'] = $cc['row_item_height']; $OPT['row_item_height_selected'] = $cc['row_item_height_selected']; $OPT['rows_on_item_list'] = $cc['rows_on_item_list']; $OPT['position_table_height'] = $OPT['row_item_height']*$OPT['rows_on_item_list']+40+$OPT['rows_on_item_list']*4; $OPT['quick_product_item_adding'] = $cc['quick_product_item_adding']; $scriptOpt = ' '; echo $scriptOpt; $edit->bean = $focus; $edit->module = 'EcmProductCategories'; $edit->ss = new Sugar_Smarty(); $edit->ss->assign("OPT", $OPT); //features //$json = getJSONobj(); //$features = $json->decode(htmlspecialchars_decode($focus->features)); $edit->ss->assign('POSITION_LIST', htmlspecialchars_decode($focus->features)); $edit->preDisplay(); echo $edit->display();