# # # assemble_standby_page() # # # This subroutine doesn't show a report but progress only. # However, the standby page keeps information about the # report for which progress has to be displayed and the URL # which has to be used upon completing progress. include "templates.util.base_util"; include "templates.util.encoding"; include "templates.util.user_agent"; include "templates.util.html"; include "templates.util.linked_files.linked_files_util"; include "templates.util.product_bar"; include "templates.util.option_info.option_info_image"; include "templates.util.option_info.option_info_section"; include "templates.progress.build_progress_html"; subroutine(assemble_standby_page( string session_id, string web_browser_session_id, bool is_root_admin, string profile_name, string profile_label, string url_report_name, string report_name, bool is_calendar, string date_filter, string command_line_filter, string command_line_filter_comment, string filter_id, string report_info_id, string report_job_id, string report_task_id, string page_title), ( debug_message("\n\n\n#### #### assemble_standby_report START \n"); # THE report_job may not yet exist at this template! # string session_profile_path = "sessions_cache." . session_id . ".profiles." . profile_name; # node report_job = session_profile_path . ".report_jobs." . report_job_id; string page_token = get_page_token(session_id, "statistics"); bool is_msie_v6 = get_is_msie_v6(); bool is_cancel_task_permission = true; # Required for progress! string decimal_divider = lang_stats.numbers.decimal_divider; # Required for progress! node reports_file_map = "templates.util.linked_files.file_maps.reports_file_map"; if (!is_root_admin) then ( # Check if the user has cancel task permission node super_role = get_super_role_of_profile(session_id, profile_name); # string feature_category = if (is_report_page) then ("reports") else ("config"); # if (!?(super_role . "." . feature_category . ".cancel_task")) then ( # is_cancel_task_permission = false; # ); if (!?(super_role . ".reports.cancel_task")) then ( is_cancel_task_permission = false; ); ); # debug_message("\n" . node_as_string(report_job) . "\n"); # # # start html # # set_doctype(); '\n'; '\n'; '' . page_title . '\n'; set_meta_content(); # # css files # add_css_files(reports_file_map, "standby"); # # js files # add_js_files(reports_file_map, "standby"); # # javascript page_info # '\n'; # # # Add css images # # '\n'; '\n'; '\n'; # # # Main header bar # # '
'; build_dynamic_product_bar("report", is_msie_v6, "", profile_name, profile_label); # Give the reports some extra space on top of the toolbar '
 
'; '
'; # product-bar-bg # # # Reports toolbar # # bool view_config_permission = true; # '

Standby ...

'; # # # Add progress section # # '
'; build_progress_html(); '
'; '\n\n'; '\n'; '\n'; debug_message("\n\n\n#### assemble_standby_report END \n\n\n"); ));