diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 6f18f25ee7..45bf287241 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,19 @@ +2013-06-13 Sergio Martin + + * include/functions_ui.php: Fix layout issue + + * operation/events/events.build_table.php: Hide checkbox column + in read only view + + * operation/events/events_list.php: Hide save filter button + when user has only ER ACLs permission + + * general/login_page.php: Fix width and height of the + login error modal win + + * operation/agentes/stat_win.php: Enable the show events + filter in replication mode when show local events is enabled + 2013-06-13 Miguel de Dios * include/functions_snmp.php: changed the PHP function to execute diff --git a/pandora_console/general/login_page.php b/pandora_console/general/login_page.php index 8268ded7cc..1eb95dc26e 100644 --- a/pandora_console/general/login_page.php +++ b/pandora_console/general/login_page.php @@ -322,8 +322,8 @@ html_print_div(array('id' => 'modal_alert', 'hidden' => true)); resizable: true, draggable: true, modal: true, - height: 150, - width: 350, + height: 200, + width: 400, overlay: { opacity: 0.5, background: "black"} diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 424cdd8d86..a8ab2252a2 100644 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -2171,7 +2171,7 @@ function ui_print_page_header ($title, $icon = "", $return = false, $help = "", $buffer .= ''; diff --git a/pandora_console/operation/agentes/stat_win.php b/pandora_console/operation/agentes/stat_win.php index f03e552751..24fb631bcd 100644 --- a/pandora_console/operation/agentes/stat_win.php +++ b/pandora_console/operation/agentes/stat_win.php @@ -284,7 +284,7 @@ $label = base64_decode(get_parameter('label', '')); $data[0] = __('Show events'); $disabled = false; if (isset($config['event_replication'])) { - if ($config['event_replication']) { + if ($config['event_replication'] && !$config['show_events_in_local']) { $disabled = true; } } diff --git a/pandora_console/operation/events/events.build_table.php b/pandora_console/operation/events/events.build_table.php index 8d7608fc5f..ac823ec75b 100644 --- a/pandora_console/operation/events/events.build_table.php +++ b/pandora_console/operation/events/events.build_table.php @@ -142,7 +142,7 @@ if ($i != 0 && $allow_action) { $table->align[$i] = 'center'; $table->size[$i] = '80px'; $i++; - if (check_acl ($config["id_user"], 0, "EW") == 1) { + if (check_acl ($config["id_user"], 0, "EW") == 1 && !$readonly) { $table->head[$i] = html_print_checkbox ("all_validate_box", "1", false, true); $table->align[$i] = 'center'; } @@ -534,19 +534,21 @@ foreach ($result as $event) { $i++; - if (tags_check_acl ($config["id_user"], $event["id_grupo"], "EM", $event['clean_tags']) == 1) { - //Checkbox - // Class 'candeleted' must be the fist class to be parsed from javascript. Dont change - $data[$i] = html_print_checkbox_extended ("validate_ids[]", $event['id_evento'], false, false, false, 'class="candeleted chk_val"', true); + if(!$readonly) { + if (tags_check_acl ($config["id_user"], $event["id_grupo"], "EM", $event['clean_tags']) == 1) { + //Checkbox + // Class 'candeleted' must be the fist class to be parsed from javascript. Dont change + $data[$i] = html_print_checkbox_extended ("validate_ids[]", $event['id_evento'], false, false, false, 'class="candeleted chk_val"', true); + } + else if (tags_check_acl ($config["id_user"], $event["id_grupo"], "EW", $event['clean_tags']) == 1) { + //Checkbox + $data[$i] = html_print_checkbox_extended ("validate_ids[]", $event['id_evento'], false, false, false, 'class="chk_val"', true); + } + else if (isset($table->header[$i]) || true) { + $data[$i] = ''; + } } - else if (tags_check_acl ($config["id_user"], $event["id_grupo"], "EW", $event['clean_tags']) == 1) { - //Checkbox - $data[$i] = html_print_checkbox_extended ("validate_ids[]", $event['id_evento'], false, false, false, 'class="chk_val"', true); - } - else if (isset($table->header[$i]) || true) { - $data[$i] = ''; - } - + $table->cellstyle[count($table->data)][$i] = 'background: #F3F3F3;'; } diff --git a/pandora_console/operation/events/events_list.php b/pandora_console/operation/events/events_list.php index 44b11c783c..30785b3fee 100644 --- a/pandora_console/operation/events/events_list.php +++ b/pandora_console/operation/events/events_list.php @@ -185,51 +185,53 @@ html_print_div(array('hidden' => true, html_print_div(array('hidden' => true, 'id' => 'load_filter_text', 'content' => __('Load filter'))); -// Save filter div for dialog -echo ''; +} // Load filter div for dialog echo '