From b6bcf07843f9a85ca9f297e6a25ec2b0af415c16 Mon Sep 17 00:00:00 2001 From: enriquecd Date: Wed, 1 Mar 2017 20:05:22 +0100 Subject: [PATCH] Fix main visual console creator and updater when select images - #77 --- .../reporting/visual_console_builder.data.php | 74 ++++++++++++++----- 1 file changed, 54 insertions(+), 20 deletions(-) diff --git a/pandora_console/godmode/reporting/visual_console_builder.data.php b/pandora_console/godmode/reporting/visual_console_builder.data.php index 68672300c2..5555618ac3 100644 --- a/pandora_console/godmode/reporting/visual_console_builder.data.php +++ b/pandora_console/godmode/reporting/visual_console_builder.data.php @@ -152,16 +152,25 @@ else { $background_color, '', 8, 8, true); } -$table->data[5][0] = __('Size - (Width x Height)'); +if($idVisualConsole){ + $preimageh = db_get_value_sql('select height from tlayout where id ='.$idVisualConsole); + $preimagew = db_get_value_sql('select width from tlayout where id ='.$idVisualConsole); +} +else{ + $preimageh = 768; + $preimagew = 1024; +} + +$table->data[5][0] = __('Layout size').': '.$preimagew.' x '.$preimageh.''; $table->data[5][1] = ''; $table->data[5][1] .= ''; + html_print_input_text('height', $preimageh, '', 10, 10, true, false).''; $table->data[5][1] .= '