# # # 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_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"; # ToDo - Move build_config_navbar() is not only used in Config, change name and move to generic util include "templates.config_pages.config_util"; 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#### #### assemble_standby_page \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; debug_message("#### session_id: " . session_id . "\n"); debug_message("#### profile_name: " . profile_name . "\n"); string profile_label_html = string_to_html(profile_label); 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! # Set linked files parameters node web_server_root_info = check_web_server_root_files_integrity(); node auto_generated_file_map = "file_maps.auto_generated_file_maps.report_files.standby"; string default_file_map_name = "report_files"; # # # # Handle permissions # # # node session_info = new_node(); node super_role = new_node(); if (!is_root_admin) then ( session_info = "sessions_cache." . session_id . ".session_info"; # Check if the user has cancel task permission super_role = get_super_role_of_profile(session_id, profile_name); if (!?(super_role . ".reports.cancel_task")) then ( is_cancel_task_permission = false; ); ); string licensing_tier = get_licensing_tier(); bool is_lite = (licensing_tier eq "lite"); bool is_view_admin_profiles_permission = (is_root_admin or ?(session_info . ".user_grants.super_admin.profiles")); bool is_view_config_permission = (is_root_admin or super_role?{"config"}); bool is_customize_report_in_config_permission = get_is_customize_report_in_config_permission(licensing_tier, is_root_admin, super_role); # 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( web_server_root_info, auto_generated_file_map, default_file_map_name, "standby"); # # js files # add_js_files( web_server_root_info, auto_generated_file_map, default_file_map_name, "standby"); # # javascript page_info # '\n'; # # # Add css images # # '\n'; '\n'; '\n'; # # # Main header bar # # '
'; build_dynamic_product_bar(session_info, "report", is_msie_v6); #* build_reports_navbar( profile_name, profile_label, report_name, is_view_admin_profiles_permission, is_view_config_permission, is_customize_report_in_config_permission ); *# build_config_navbar( profile_name, profile_label_html, "reports", "Reports", true, # ToTo, get is_update_database_permission true, # ToTo, get is_build_database_permission true, "" ); '
'; # product-bar-bg # # Add all profile options # node config_navigation = "templates.config_pages.config_navigation"; build_config_navitems( is_lite, is_root_admin, config_navigation, profile_name, false ); # # # Reports toolbar # # # '

Standby ...

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