id=$_REQUEST['record']; $focus->retrieve_entity_info($_REQUEST['record'],'Contacts'); $vtlog->logthis("Entity info successfully retrieved for Contact DetailView.",'info'); $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("Contact detail view"); $xtpl=new XTemplate ('modules/Contacts/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' ]); 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 = getDetailBlockInformation("Contacts",1,$focus->column_fields); $xtpl->assign("BLOCK1", $block_1); //get Address Information $block_2 = getDetailBlockInformation("Contacts",2,$focus->column_fields); $xtpl->assign("BLOCK2", $block_2); //get Description Information $block_3 = getDetailBlockInformation("Contacts",3,$focus->column_fields); $xtpl->assign("BLOCK3", $block_3); //get CustomerPortal Information $block_4 = getDetailBlockInformation("Contacts",4,$focus->column_fields); $xtpl->assign("BLOCK4", $block_4); $block_1_header = getBlockTableHeader("LBL_CONTACT_INFORMATION"); $block_2_header = getBlockTableHeader("LBL_ADDRESS_INFORMATION"); $block_3_header = getBlockTableHeader("LBL_DESCRIPTION_INFORMATION"); $block_4_header = getBlockTableHeader("LBL_CUSTOMER_PORTAL_INFORMATION"); $xtpl->assign("BLOCK1_HEADER", $block_1_header); $xtpl->assign("BLOCK2_HEADER", $block_2_header); $xtpl->assign("BLOCK3_HEADER", $block_3_header); $xtpl->assign("BLOCK4_HEADER", $block_4_header); $block_5 = getDetailBlockInformation("Contacts",5,$focus->column_fields); $vtlog->logthis("Detail Block Informations successfully retrieved.",'info'); if(trim($block_5) != '') { $cust_fld = '
';
$block_5_header = getBlockTableHeader("LBL_CUSTOM_INFORMATION");
$cust_fld .= $block_5_header;
$cust_fld .= ' |