From ecaf565bbc963cf0c21ac1da2cd9461236695258 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Fri, 20 Mar 2015 08:33:53 +0100 Subject: [PATCH] Fixed visual metaconsole in list of events --- .../operation/events/events_list.php | 34 ++++++++++++++----- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/pandora_console/operation/events/events_list.php b/pandora_console/operation/events/events_list.php index 2b3175ea4b..9f39c31641 100644 --- a/pandora_console/operation/events/events_list.php +++ b/pandora_console/operation/events/events_list.php @@ -327,13 +327,21 @@ if(defined('METACONSOLE')){ $data = array(); -$data[0] = html_print_select ($tags_select_with, 'select_with', '', '', '', 0, - true, true, true, '', false, 'width: 120px; height: 70px;') . '
'; +if(!defined("METACONSOLE")) + $data[0] = html_print_select ($tags_select_with, 'select_with', '', '', '', 0, + true, true, true, '', false, 'width: 120px; height: 70px;') . '
'; +else + $data[0] = html_print_select ($tags_select_with, 'select_with', '', '', '', 0, + true, true, true, '', false, 'width: 250px; height: 70px;') . '
'; $data[1] = html_print_image('images/darrowright.png', true, array('id' => 'button-add_with', 'style' => 'cursor: pointer;', 'title' => __('Add'))); $data[1] .= html_print_input_hidden('tag_with', $tag_with_base64, true); $data[1] .= '

' . html_print_image('images/darrowleft.png', true, array('id' => 'button-remove_with', 'style' => 'cursor: pointer;', 'title' => __('Remove'))); -$data[2] = html_print_select ($tag_with_temp, 'tag_with_temp', array(), '', '', - 0, true, true, true, '', false, "width: 120px; height: 70px;"); +if(!defined("METACONSOLE")) + $data[2] = html_print_select ($tag_with_temp, 'tag_with_temp', array(), '', '', + 0, true, true, true, '', false, "width: 120px; height: 70px;"); +else + $data[2] = html_print_select ($tag_with_temp, 'tag_with_temp', array(), '', '', + 0, true, true, true, '', false, "width: 250px; height: 70px;"); $tabletags_with->data[] = $data; $tabletags_with->rowclass[] = ''; @@ -353,13 +361,23 @@ if(defined('METACONSOLE')){ $tabletags_without->styleTable = 'border: 0px;'; $data = array(); -$data[0] = html_print_select ($tags_select_without, 'select_without', '', '', '', 0, - true, true, true, '', false, 'width: 120px; height: 70px;') . '
'; +if(!defined("METACONSOLE")) + $data[0] = html_print_select ($tags_select_without, 'select_without', '', '', '', 0, + true, true, true, '', false, 'width: 120px; height: 70px;') . '
'; +else + $data[0] = html_print_select ($tags_select_without, 'select_without', '', '', '', 0, + true, true, true, '', false, 'width: 250px; height: 70px;') . '
'; + $data[1] = html_print_image('images/darrowright.png', true, array('id' => 'button-add_without', 'style' => 'cursor: pointer;', 'title' => __('Add'))); $data[1] .= html_print_input_hidden('tag_without', $tag_without_base64, true); $data[1] .= '

' . html_print_image('images/darrowleft.png', true, array('id' => 'button-remove_without', 'style' => 'cursor: pointer;', 'title' => __('Remove'))); -$data[2] = html_print_select ($tag_without_temp, 'tag_without_temp', array(), '', '', - 0, true, true, true, '', false, "width: 120px; height: 70px;"); + +if(!defined("METACONSOLE")) + $data[2] = html_print_select ($tag_without_temp, 'tag_without_temp', array(), '', '', + 0, true, true, true, '', false, "width: 120px; height: 70px;"); +else + $data[2] = html_print_select ($tag_without_temp, 'tag_without_temp', array(), '', '', + 0, true, true, true, '', false, "width: 250px; height: 70px;"); $tabletags_without->data[] = $data; $tabletags_without->rowclass[] = '';