$focus->id = ""; } global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $log->info("Maillisttmp detail view"); $smarty = new CRMSmarty(); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $blocks2 = getBlocks($currentModule, "detail_view", '', $focus->column_fields); $smarty->assign("BLOCKS", $blocks2); $smarty->assign("UPDATEINFO", updateInfo($focus->id)); if (isset($module_enable_product) && $module_enable_product) { $smarty->assign("MODULE_ENABLE_PRODUCT", "true"); $smarty->assign("ASSOCIATED_PRODUCTS", $focus->getDetailAssociatedProducts()); } if (isset($focus->name)) { $smarty->assign("NAME", $focus->name); } else { $smarty->assign("NAME", ""); } if (isset($_REQUEST['return_module'])) { $smarty->assign("RETURN_MODULE", $_REQUEST['return_module']); } if (isset($_REQUEST['return_action'])) { $smarty->assign("RETURN_ACTION", $_REQUEST['return_action']); } if (isset($_REQUEST['return_id'])) { $smarty->assign("RETURN_ID", $_REQUEST['return_id']); }