retrieve($_REQUEST['record']); } $json = getJSONobj(); require_once('include/MVC/View/SugarView.php'); require_once('modules/EcmDocumentTemplates/views/DetailView/view.detail.my.php'); $detail = new ViewDetailEcmDocumentTemplates(); $detail->ss = new Sugar_Smarty(); $detail->module="EcmDocumentTemplates"; $detail->bean = $focus; $detail->preDisplay(); $arr=unserialize(base64_decode($focus->template_files_defs)); $dir_path="modules/EcmDocumentTemplates/templates/"; $docs=$focus->docs; $tf=''; foreach($docs as $d){ //$r=mysql_fetch_array(mysql_query("select id from ".strtolower($d)." where deleted='0' order by id asc limit 1")); //$id=$r['id']; $tf.=''; } $tf.='
'.$app_list_strings['moduleList'][$d].' '.$arr[$d].' '.$mod_strings['LBL_PREVIEW_PDF'].'
'; $detail->ss->assign("TEMPLATE_FILES",$tf); echo $detail->display(); require_once('include/SubPanel/SubPanelTiles.php'); $subpanel = new SubPanelTiles($focus, "EcmDocumentTemplates"); echo $subpanel->display(); ?>