# # # build_calendar_header_html() # # include "templates.util.date_filter.get_date_filter_info"; # include "templates.statistics.util.date_display_util"; subroutine(build_calendar_header_html( string session_id, string profile_name, node report_job, bool no_date_range, string earliest_log_date, string latest_log_date), ( # volatile.param1 = '' . format(earliest_log_date, "date_time") . ''; # volatile.param2 = '' . format(latest_log_date, "date_time") . ''; '

' . lang_stats.calendar.label . '

'; '
'; # # Display dates # ''; ''; ''; ''; '
'; lang_stats.calendar.statistics_date_coverage . ': '; if (!no_date_range) then ( # # Get the entire date range info # delete_node("v.date_filter_info"); v.date_filter_info = ""; get_date_filter_info("", "v.date_filter_info", true, earliest_log_date, latest_log_date); node date_filter_info = "v.date_filter_info"; string start_date = format(@date_filter_info{"earliest_date"}, "date_time"); string end_date = format(@date_filter_info{"latest_date"}, "date_time"); int number_of_days = @date_filter_info{"number_of_days"}; string day_word = if (number_of_days > 1) then (lang_stats.date_filter.days) else (lang_stats.date_filter.day); ''; '' . start_date . ''; if (start_date ne end_date) then ( ' - ' . end_date . ''; ); ', ' . number_of_days . " " . day_word; ''; ) else ( # No date information in database "" . lang_stats.general.no_date_information_in_database . ""; ); '
'; ));