if (!empty($_REQUEST['record']) && $_REQUEST["record"] != "root") { $container = $container->retrieve($_REQUEST['record']); if ($container == null) { echo "no access"; exit; } } else { $_REQUEST["record"] = null; $container->name = $mod_strings['LBL_CONTAINER_TOP']; } echo "\n<p>\n"; echo get_module_title("ZuckerReportContainer", $mod_strings['LBL_CONTAINER'] . ": " . $container->name, false); echo "\n</p>\n"; if (!empty($_REQUEST['record'])) { echo "\n<p>\n"; echo ReportContainer::get_root_line_links($_REQUEST['record']); echo "<a href='index.php?module=ZuckerReportContainer&action=EditView&record=" . $_REQUEST['record'] . "'> (" . $app_strings['LBL_EDIT_BUTTON_LABEL'] . ")</a>"; echo "\n</p>\n"; } $xtpl = new XTemplate('modules/ZuckerReportContainer/DetailView.html'); $xtpl->assign("MOD", $mod_strings); $xtpl->assign("APP", $app_strings); $xtpl->assign("THEME", $theme); $xtpl->assign("GRIDLINE", $gridline); $xtpl->assign("IMAGE_PATH", $image_path); if (!empty($container->description)) { $xtpl->assign("NAME", $container->name); $xtpl->assign("DESCRIPTION", nl2br($container->description)); $xtpl->parse("detail"); $xtpl->out("detail"); echo "<p/>\n";
require_once 'modules/ZuckerReports/ZuckerReport.php'; require_once 'include/upload_file.php'; global $app_strings; global $app_list_strings; global $mod_strings; global $current_user; $focus =& new ZuckerReport(); if (isset($_REQUEST['record'])) { $focus->retrieve($_REQUEST['record']); } echo "\n<p>\n"; echo get_module_title("ZuckerReports", $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->filename, false); echo "\n</p>\n"; if (!empty($focus->container_id)) { echo "\n<p>\n"; echo ReportContainer::get_root_line_links($focus->container_id); echo "\n</p>\n"; } global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $xtpl = new XTemplate('modules/ZuckerReports/ReportDetailView.html'); $xtpl->assign("MOD", $mod_strings); $xtpl->assign("APP", $app_strings); if (isset($_REQUEST['return_module'])) { $xtpl->assign("RETURN_MODULE", $_REQUEST['return_module']); } if (isset($_REQUEST['return_action'])) { $xtpl->assign("RETURN_ACTION", $_REQUEST['return_action']); }