Fixed a visualization error

This commit is contained in:
Alejandro Gallardo Escobar 2015-02-13 18:59:31 +01:00
parent 584d00f321
commit 45640c8c96
1 changed files with 31 additions and 36 deletions

View File

@ -48,7 +48,7 @@ require_once ('include/functions_gis.php');
$table->width = '98%'; $table->width = '98%';
$table->data = array (); $table->data = array ();
$row = 1; $row = 0;
$table->data[$row][0] = __('Date format string') . ui_print_help_icon("date_format", true); $table->data[$row][0] = __('Date format string') . ui_print_help_icon("date_format", true);
$table->data[$row][1] = '<em>'.__('Example').'</em> '.date ($config["date_format"]); $table->data[$row][1] = '<em>'.__('Example').'</em> '.date ($config["date_format"]);
@ -400,18 +400,18 @@ foreach ($dirFonts as $entryDir) {
} }
} }
$table->data[$row][0] = __('Custom report front') . ' - ' . __('Font family'); // Font
$table->data[$row][1] = html_print_select ($_fonts, $table->data['custom_report_front-font'][0] = __('Custom report front') . ' - ' . __('Font family');
$table->data['custom_report_front-font'][1] = html_print_select ($_fonts,
'custom_report_front_font', $config['custom_report_front_font'], 'custom_report_front_font', $config['custom_report_front_font'],
false, __('Default'), '', true); false, __('Default'), '', true);
$row++; // Logo
$table->data['custom_report_front-logo'][0] = __('Custom report front') . ' - ' .
$table->data[$row][0] = __('Custom report front') . ' - ' .
__('Custom logo') . __('Custom logo') .
ui_print_help_tip( ui_print_help_tip(
__("The dir of custom logos is in your www Pandora Console in \"images/custom_logo\". You can upload more files (ONLY JPEG) in upload tool in console."), true); __("The dir of custom logos is in your www Pandora Console in \"images/custom_logo\". You can upload more files (ONLY JPEG) in upload tool in console."), true);
$table->data[$row][1] = html_print_select( $table->data['custom_report_front-logo'][1] = html_print_select(
$customLogos, $customLogos,
'custom_report_front_logo', 'custom_report_front_logo',
$config['custom_report_front_logo'], $config['custom_report_front_logo'],
@ -420,34 +420,29 @@ $table->data[$row][1] = html_print_select(
'', '',
true); true);
$row++; // Preview
$table->data['custom_report_front-preview'][0] = __('Custom report front') . ' - ' . 'Preview';
$table->data[$row][0] = __('Custom report front') . ' - ' . 'Preview';
if (empty($config['custom_report_front_logo'])) { if (empty($config['custom_report_front_logo'])) {
$config['custom_report_front_logo'] = 'images/pandora_logo_white.jpg'; $config['custom_report_front_logo'] = 'images/pandora_logo_white.jpg';
} }
$table->data[$row][1] = '<span id="preview_image">' . $table->data['custom_report_front-preview'][1] = '<span id="preview_image">' .
html_print_image ($config['custom_report_front_logo'], true) . '</span>'; html_print_image ($config['custom_report_front_logo'], true) . '</span>';
$row++; // Header
$table->data['custom_report_front-header'][0] = __('Custom report front') . ' - ' . __('Header');
$table->data[$row][0] = __('Custom report front') . ' - ' . __('Header'); $table->data['custom_report_front-header'][1] = html_print_textarea('custom_report_front_header', 5, 15,
$table->data[$row][1] = html_print_textarea('custom_report_front_header', 5, 15,
$config['custom_report_front_header'], 'style="width: 38em;"', true); $config['custom_report_front_header'], 'style="width: 38em;"', true);
$row++; // First page
$table->data['custom_report_front-first_page'][0] = __('Custom report front') . ' - ' . __('First page');
$table->data[$row][0] = __('Custom report front') . ' - ' . __('First page'); $table->data['custom_report_front-first_page'][1] = html_print_textarea('custom_report_front_firstpage', 15, 15,
$table->data[$row][1] = html_print_textarea('custom_report_front_firstpage', 15, 15,
$config['custom_report_front_firstpage'], 'style="width: 38em; height: 20em;"', true); $config['custom_report_front_firstpage'], 'style="width: 38em; height: 20em;"', true);
$row++; // Footer
$table->data['custom_report_front-footer'][0] = __('Custom report front') . ' - ' . __('Footer');
$table->data[$row][0] = __('Custom report front') . ' - ' . __('Footer'); $table->data['custom_report_front-footer'][1] = html_print_textarea('custom_report_front_footer', 5, 15,
$table->data[$row][1] = html_print_textarea('custom_report_front_footer', 5, 15,
$config['custom_report_front_footer'], 'style="width: 38em;"', true); $config['custom_report_front_footer'], 'style="width: 38em;"', true);
$row++;
$table->data[$row][0] = __('Paginate module view'); $table->data[$row][0] = __('Paginate module view');
$table->data[$row][1] = html_print_checkbox('paginate_module', 1, $table->data[$row][1] = html_print_checkbox('paginate_module', 1,
@ -562,20 +557,20 @@ ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/');
function display_custom_report_front (show) { function display_custom_report_front (show) {
if (show == true) { if (show == true) {
$('#table2-32').show(); $('tr#table2-custom_report_front-font').show();
$('#table2-33').show(); $('tr#table2-custom_report_front-logo').show();
$('#table2-34').show(); $('tr#table2-custom_report_front-preview').show();
$('#table2-35').show(); $('tr#table2-custom_report_front-header').show();
$('#table2-36').show(); $('tr#table2-custom_report_front-first_page').show();
$('#table2-37').show(); $('tr#table2-custom_report_front-footer').show();
} }
else { else {
$('#table2-32').hide(); $('tr#table2-custom_report_front-font').hide();
$('#table2-33').hide(); $('tr#table2-custom_report_front-logo').hide();
$('#table2-34').hide(); $('tr#table2-custom_report_front-preview').hide();
$('#table2-35').hide(); $('tr#table2-custom_report_front-header').hide();
$('#table2-36').hide(); $('tr#table2-custom_report_front-first_page').hide();
$('#table2-37').hide(); $('tr#table2-custom_report_front-footer').hide();
} }
} }