id = $_REQUEST['record']; $focus->retrieve_entity_info($_REQUEST['record'],"Leads"); $focus->id = $_REQUEST['record']; $vtlog->logthis("id is ".$focus->id ,'debug'); $focus->firstname=$focus->column_fields['firstname']; $focus->lastname=$focus->column_fields['lastname']; } if(isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } global $theme; $theme_path="themes/".$theme."/"; $image_path=$theme_path."images/"; require_once($theme_path.'layout_utils.php'); $log->info("Lead detail view"); $xtpl=new XTemplate ('modules/Leads/DetailView.html'); $xtpl->assign("MOD", $mod_strings); $xtpl->assign("APP", $app_strings); $xtpl->assign("THEME", $theme); $xtpl->assign("IMAGE_PATH", $image_path);$xtpl->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']); $xtpl->assign("ID", $focus->id); if (isset($focus->firstname)) $xtpl->assign("FIRST_NAME", $focus->firstname); else $xtpl->assign("FIRST_NAME", ""); $xtpl->assign("LAST_NAME", $focus->lastname); //get Block 1 Information $block_1_header = getBlockTableHeader("LBL_LEAD_INFORMATION"); $block_1 = getDetailBlockInformation("Leads",1,$focus->column_fields); $xtpl->assign("BLOCK1", $block_1); //get Address Information $block_2_header = getBlockTableHeader("LBL_ADDRESS_INFORMATION"); $block_2 = getDetailBlockInformation("Leads",2,$focus->column_fields); $xtpl->assign("BLOCK2", $block_2); //get Description Information $block_3_header = getBlockTableHeader("LBL_DESCRIPTION_INFORMATION"); $block_3 = getDetailBlockInformation("Leads",3,$focus->column_fields); $xtpl->assign("BLOCK3", $block_3); $xtpl->assign("BLOCK1_HEADER", $block_1_header); $xtpl->assign("BLOCK2_HEADER", $block_2_header); $xtpl->assign("BLOCK3_HEADER", $block_3_header); $block_5 = getDetailBlockInformation("Leads",5,$focus->column_fields); if(trim($block_5) != '') { $cust_fld = '
';
$block_5_header = getBlockTableHeader("LBL_CUSTOM_INFORMATION");
$cust_fld .= $block_5_header;
$cust_fld .= ' |