* Contributors: Goodwill Consulting http://www.goodwill.co.id ********************************************************************************/ require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; require_once 'modules/Paper/Paper.php'; require_once 'modules/Paper/Forms.php'; require_once 'include/JSON.php'; require_once 'modules/Paperformat/Paperformat.php'; global $app_strings; global $app_list_strings; global $mod_strings; global $current_user; $focus = new Paper(); $format = new Paperformat(); if (isset($_REQUEST['record'])) { $focus->retrieve($_REQUEST['record']); } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->fname, true); echo "\n</p>\n"; global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $log->info("Paper detail view"); $xtpl = new XTemplate('modules/Paper/EditView.html'); $xtpl->assign("MOD", $mod_strings); $xtpl->assign("APP", $app_strings);