retrieve_entity_info($_REQUEST['record'],"Notes"); $focus->id = $_REQUEST['record']; $focus->name=$focus->column_fields['title']; } if(isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } //needed when creating a new note with default values passed in if (isset($_REQUEST['contact_name']) && is_null($focus->contact_name)) { $focus->contact_name = $_REQUEST['contact_name']; } if (isset($_REQUEST['contact_id']) && is_null($focus->contact_id)) { $focus->contact_id = $_REQUEST['contact_id']; } if (isset($_REQUEST['opportunity_name']) && is_null($focus->parent_name)) { $focus->parent_name = $_REQUEST['opportunity_name']; } if (isset($_REQUEST['opportunity_id']) && is_null($focus->parent_id)) { $focus->parent_id = $_REQUEST['opportunity_id']; } if (isset($_REQUEST['account_name']) && is_null($focus->parent_name)) { $focus->parent_name = $_REQUEST['account_name']; } if (isset($_REQUEST['account_id']) && is_null($focus->parent_id)) { $focus->parent_id = $_REQUEST['account_id']; } global $theme; $theme_path="themes/".$theme."/"; $image_path=$theme_path."images/"; require_once($theme_path.'layout_utils.php'); $log->info("Note detail view"); $xtpl=new XTemplate ('modules/Notes/DetailView.html'); $xtpl->assign("MOD", $mod_strings); $xtpl->assign("APP", $app_strings); //get Note Information $block_1 = getDetailBlockInformation("Notes",1,$focus->column_fields); $block_2 = getDetailBlockInformation("Notes",2,$focus->column_fields); $block_3 = getDetailBlockInformation("Notes",3,$focus->column_fields); $xtpl->assign("BLOCK1", $block_1); $xtpl->assign("BLOCK2", $block_2); $xtpl->assign("BLOCK3", $block_3); $block_1_header = getBlockTableHeader("LBL_NOTE_INFORMATION"); $xtpl->assign("BLOCK1_HEADER", $block_1_header); if (isset($focus->name)) $xtpl->assign("NAME", $focus->name); else $xtpl->assign("NAME", ""); if (isset($_REQUEST['return_module'])) $xtpl->assign("RETURN_MODULE", $_REQUEST['return_module']); if (isset($_REQUEST['return_action'])) $xtpl->assign("RETURN_ACTION", $_REQUEST['return_action']); if (isset($_REQUEST['return_id'])) $xtpl->assign("RETURN_ID", $_REQUEST['return_id']); $xtpl->assign("THEME", $theme); $xtpl->assign("IMAGE_PATH", $image_path);$xtpl->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']); $xtpl->assign("JAVASCRIPT", get_set_focus_js().get_validate_record_js()); $xtpl->assign("ID", $focus->id); if ( isset($focus->filename) && $focus->filename != '') { $fileurl = "filename,$focus->id)."\" target=\"_blank\">". $focus->filename .""; $xtpl->assign("FILELINK", $fileurl); } $permissionData = $_SESSION['action_permission_set']; if(isPermitted("Notes",1,$_REQUEST['record']) == 'yes') { $xtpl->assign("EDITBUTTON",""); $xtpl->assign("DUPLICATEBUTTON",""); } if(isPermitted("Notes",2,$_REQUEST['record']) == 'yes') { $xtpl->assign("DELETEBUTTON",""); } $xtpl->parse("main"); $xtpl->out("main"); ?>