Change visual option of custom report front to url dinamic, Tiquet: #2660

This commit is contained in:
m-lopez-f 2015-09-01 12:50:09 +02:00
parent f09d8b1fbd
commit f8d508b9e1
2 changed files with 5 additions and 2 deletions

View File

@ -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');

View File

@ -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;"> </p>
<p style="text-align: center;"> </p>
<p style="text-align: center;"> </p>
<p style="text-align: center;"> </p>
<p style="text-align: center;"> </p>
<p style="text-align: center;"> </p>
<p style="text-align: center;"> </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;"> </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;"> </p>
<p style="text-align: center;"> </p>
<p style="text-align: center;"> </p>
<p style="text-align: center;"> </p>
<p style="text-align: center;"> </p>
<p style="text-align: center;"> </p>
<p style="text-align: center;"> </p>
<p style="text-align: center;"><img src="(_URLIMAGE_)/images/pandora_report_logo.png" alt="" width="800" /></p>
<p style="text-align: center;"> </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'])) {