From f8d508b9e1a5721b3cc6b1dacec969e08ec4b4a3 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Tue, 1 Sep 2015 12:50:09 +0200 Subject: [PATCH] Change visual option of custom report front to url dinamic, Tiquet: #2660 --- pandora_console/godmode/setup/setup_visuals.php | 5 ++++- pandora_console/include/functions_config.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/setup/setup_visuals.php b/pandora_console/godmode/setup/setup_visuals.php index dcfe28d28d..cb805c743d 100755 --- a/pandora_console/godmode/setup/setup_visuals.php +++ b/pandora_console/godmode/setup/setup_visuals.php @@ -477,8 +477,11 @@ $table_other->data['custom_report_front-header'][1] = html_print_textarea('custo // First page $table_other->data['custom_report_front-first_page'][0] = __('Custom report front') . ' - ' . __('First page'); +$custom_report_front_firstpage = str_replace('(_URLIMAGE_)', + ui_get_full_url(false, true, false, false), + $config['custom_report_front_firstpage']); $table_other->data['custom_report_front-first_page'][1] = html_print_textarea('custom_report_front_firstpage', 15, 15, - $config['custom_report_front_firstpage'], 'style="width: 38em; height: 20em;"', true); + $custom_report_front_firstpage, 'style="width: 38em; height: 20em;"', true); // Footer $table_other->data['custom_report_front-footer'][0] = __('Custom report front') . ' - ' . __('Footer'); diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index c591e05267..74c9ad79e1 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -1368,7 +1368,7 @@ function config_process_config () { if (!isset($config['custom_report_front_firstpage'])) { config_update_value ('custom_report_front_firstpage', - "<p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;"><img src="" . ui_get_full_url(false, false, false, false) . "/images/pandora_report_logo.png" alt="" width="800" /></p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;"><span style="font-size: xx-large;">(_REPORT_NAME_)</span></p> <p style="text-align: center;"><span style="font-size: large;">(_DATETIME_)</span></p>"); + "<p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;"><img src="(_URLIMAGE_)/images/pandora_report_logo.png" alt="" width="800" /></p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;"><span style="font-size: xx-large;">(_REPORT_NAME_)</span></p> <p style="text-align: center;"><span style="font-size: large;">(_DATETIME_)</span></p>"); } if (!isset($config['custom_report_front_footer'])) {