set_strings(); //var_dump($focus); if(isset($_REQUEST['record']) && isset($_REQUEST['record'])) { $focus->retrieve_entity_info($_REQUEST['record'],"Faq"); $focus->id = $_REQUEST['record']; } 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("Faq detail view"); $xtpl=new XTemplate ('modules/Faq/DetailView.html'); $xtpl->assign("MOD", $mod_strings); $xtpl->assign("APP", $app_strings); if(isset($focus->column_fields[question]))$xtpl->assign("FAQ_TITLE", $focus->column_fields[question]); $xtpl->assign("THEME", $theme); $xtpl->assign("IMAGE_PATH", $image_path); $xtpl->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']); //get Block 1 Information $block_1 = getDetailBlockInformation("Faq",1,$focus->column_fields); $xtpl->assign("BLOCK1", $block_1); //get Address Information $block_2 = getDetailBlockInformation("Faq",2,$focus->column_fields); $xtpl->assign("BLOCK2", $block_2); //get Description Information $block_3 = getDetailBlockInformation("Faq",3,$focus->column_fields); $xtpl->assign("BLOCK3", $block_3); //$block_4 = getDetailBlockInformation("Faq",4,$focus->column_fields); //$xtpl->assign("BLOCK4", $block_4); $block_4_header = getBlockTableHeader("LBL_COMMENT_INFORMATION"); $commentlist = $focus->getFAQComments($focus->id); $xtpl->assign("BLOCK4", $commentlist); $xtpl->assign("BLOCK4_HEADER", $block_4_header); $xtpl->assign("ID", $_REQUEST['record']); if(isPermitted("Faq",1,$_REQUEST['record']) == 'yes') { $xtpl->assign("EDITBUTTON","