$templates.shared.doctype {= include "templates.config.reports.util.check_table_reports_support"; include "templates.shared.util.check_session_rep_support"; string profile_name = internal.profile_name; string form_type = volatile.form_type; string report_name; string report_label; string form_title; if (form_type eq 'edit') then ( report_name = volatile.report_name; debug_message("#### report_name: " . report_name . "\n"); if (node_exists("profiles." . profile_name . ".statistics.reports." . report_name . ".label")) then ( report_label = expand(node_value("profiles." . profile_name . ".statistics.reports." . report_name . ".label")); ); form_title = lang_options.profile.statistics.reports.edit_form_title; ) else ( report_name = "new_report_name"; report_label = lang_options.profile.statistics.reports.new_report_label_text; form_title = lang_options.profile.statistics.reports.new_form_title; ); =}