$templates.shared.doctype_frameset {= include "templates.statistics.util.get_startup_report_name"; string profile_name = internal.profile_name; string profile_label = node_value(subnode_by_name("profiles." . profile_name, "label")); bool display_reports = true; if (node_exists("volatile.display_config")) then ( display_reports = false; ); string top_frame_url; string top_frame_height; string left_frame_url; string main_frame_url; # If this is a static generated HTML file, use direct links to the HTML pages if (node_exists("volatile.generating_report_files")) then ( string startup_report_name = get_startup_report_name(profile_name, true); top_frame_url = "top_frame.html"; left_frame_url = "left_navigation.html"; main_frame_url = startup_report_name . ".html"; top_frame_height = "74"; ) else ( # Otherwise, use dynamic links top_frame_url = expand("?dp+templates.profile.top_frame+p+$profile_name+volatile.display_reports+$display_reports"); if (display_reports) then ( # load reports pages left_frame_url = expand("?dp+templates.statistics.left_navigation+p+$profile_name"); main_frame_url = expand("?dp+templates.statistics.prime_setup+p+$profile_name"); ) else ( # load config pages left_frame_url = expand("?dp+templates.config.left_navigation+p+$profile_name"); main_frame_url = expand("?dp+templates.config.profile_summary.profile_summary+p+$profile_name"); ); top_frame_height = "89"; ); # handle document title string document_title; string reports_document_title = PRODUCT_NAME . " " . lang_stats.general.reports_label . " | " . profile_label; string config_document_title = PRODUCT_NAME . " " . lang_stats.general.config_label . " | " . profile_label; if (display_reports) then ( document_title = reports_document_title; ) else ( document_title = config_document_title; ); =}