diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php
index a0704e6061..6e664f153b 100644
--- a/pandora_console/include/functions_events.php
+++ b/pandora_console/include/functions_events.php
@@ -815,7 +815,7 @@ function events_create_event ($event, $id_group, $id_agent, $status = 0,
*
* @return string HTML with table element
*/
-function events_print_event_table ($filter = "", $limit = 10, $width = 440, $return = false, $agent_id = 0) {
+function events_print_event_table ($filter = "", $limit = 10, $width = 440, $return = false, $agent_id = 0, $tactical_view = false) {
global $config;
if ($agent_id == 0) {
@@ -861,7 +861,8 @@ function events_print_event_table ($filter = "", $limit = 10, $width = 440, $ret
$table->cellspacing = 4;
$table->width = $width;
$table->class = "databox";
- $table->title = __('Latest events');
+ if (!$tactical_view)
+ $table->title = __('Latest events');
$table->titleclass = 'tabletitle';
$table->titlestyle = 'text-transform:uppercase;';
$table->headclass = array ();
@@ -987,32 +988,33 @@ function events_print_event_table ($filter = "", $limit = 10, $width = 440, $ret
$out = '
';
$out .= $events_table;
- if ($agent_id != 0) {
- $out .= ' | ';
- $out .= '';
- $out .= '';
- $out .= ' | ';
+ if (!$tactical_view) {
+ if ($agent_id != 0) {
+ $out .= ' | ';
+ $out .= '';
+ $out .= '';
+ $out .= ' | ';
+ }
+ else {
+ $out .= ' | ';
+ $out .= '';
+ $out .= '';
+ $out .= '';
+ $out .= ' | ';
+ }
}
- else {
- $out .= ' | ';
- $out .= '';
- $out .= '';
- $out .= '';
- $out .= ' | ';
- }
-
$out .= ' |
';
unset ($table);
diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php
index 4ea953ce9a..88a49692b6 100644
--- a/pandora_console/include/functions_reporting.php
+++ b/pandora_console/include/functions_reporting.php
@@ -1288,7 +1288,7 @@ function reporting_get_stats_servers($tiny = true) {
$table_srv->style[1] = $table_srv->style[3] = 'text-align: left; padding: 5px;';
$tdata = array();
- $tdata[0] = html_print_image('images/module.png', true, array('title' => __('Total running modules'), 'width' => '25px'));
+ $tdata[0] = html_print_image('images/module.png', true, array('title' => __('Total running modules'), ));
$tdata[1] = '' . format_numeric($server_performance ["total_modules"]) . '';
$tdata[2] = '' . format_numeric($server_performance ["total_modules_rate"], 2) . '';
@@ -1304,7 +1304,7 @@ function reporting_get_stats_servers($tiny = true) {
$table_srv->data[] = $tdata;
$tdata = array();
- $tdata[0] = html_print_image('images/database.png', true, array('title' => __('Local modules'), 'width' => '25px'));
+ $tdata[0] = html_print_image('images/database.png', true, array('title' => __('Local modules')));
$tdata[1] = '' . format_numeric($server_performance ["total_local_modules"]) . '';
$tdata[2] = '' .
@@ -1316,7 +1316,7 @@ function reporting_get_stats_servers($tiny = true) {
if ($tiny) {
$tdata = array();
- $tdata[0] = html_print_image('images/network.png', true, array('title' => __('Remote modules'), 'width' => '25px'));
+ $tdata[0] = html_print_image('images/network.png', true, array('title' => __('Remote modules')));
$tdata[1] = '' . format_numeric($server_performance ["total_remote_modules"]) . '';
$tdata[2] = '' . format_numeric($server_performance ["remote_modules_rate"], 2) . '';
@@ -1328,7 +1328,7 @@ function reporting_get_stats_servers($tiny = true) {
else {
if (isset($server_performance ["total_network_modules"])) {
$tdata = array();
- $tdata[0] = html_print_image('images/network.png', true, array('title' => __('Network modules'), 'width' => '25px'));
+ $tdata[0] = html_print_image('images/network.png', true, array('title' => __('Network modules')));
$tdata[1] = '' . format_numeric($server_performance ["total_network_modules"]) . '';
$tdata[2] = '' .
@@ -1342,7 +1342,7 @@ function reporting_get_stats_servers($tiny = true) {
if (isset($server_performance ["total_plugin_modules"])) {
$tdata = array();
- $tdata[0] = html_print_image('images/plugin.png', true, array('title' => __('Plugin modules'), 'width' => '25px'));
+ $tdata[0] = html_print_image('images/plugin.png', true, array('title' => __('Plugin modules')));
$tdata[1] = '' . format_numeric($server_performance ["total_plugin_modules"]) . '';
$tdata[2] = '' . format_numeric($server_performance ["plugin_modules_rate"], 2) . '';
@@ -1354,7 +1354,7 @@ function reporting_get_stats_servers($tiny = true) {
if (isset($server_performance ["total_prediction_modules"])) {
$tdata = array();
- $tdata[0] = html_print_image('images/chart_bar.png', true, array('title' => __('Prediction modules'), 'width' => '25px'));
+ $tdata[0] = html_print_image('images/chart_bar.png', true, array('title' => __('Prediction modules')));
$tdata[1] = '' . format_numeric($server_performance ["total_prediction_modules"]) . '';
$tdata[2] = '' . format_numeric($server_performance ["prediction_modules_rate"], 2) . '';
@@ -1366,7 +1366,7 @@ function reporting_get_stats_servers($tiny = true) {
if (isset($server_performance ["total_wmi_modules"])) {
$tdata = array();
- $tdata[0] = html_print_image('images/wmi.png', true, array('title' => __('WMI modules'), 'width' => '25px'));
+ $tdata[0] = html_print_image('images/wmi.png', true, array('title' => __('WMI modules')));
$tdata[1] = '' . format_numeric($server_performance ["total_wmi_modules"]) . '';
$tdata[2] = '' . format_numeric($server_performance ["wmi_modules_rate"], 2) . '';
@@ -1378,7 +1378,7 @@ function reporting_get_stats_servers($tiny = true) {
if (isset($server_performance ["total_web_modules"])) {
$tdata = array();
- $tdata[0] = html_print_image('images/world.png', true, array('title' => __('Web modules'), 'width' => '25px'));
+ $tdata[0] = html_print_image('images/world.png', true, array('title' => __('Web modules')));
$tdata[1] = '' .
format_numeric($server_performance ["total_web_modules"]) .
'';
@@ -1417,7 +1417,7 @@ function reporting_get_stats_servers($tiny = true) {
$tdata = array();
$tdata[0] = html_print_image('images/lightning_go.png', true,
- array('title' => __('Total events'), 'width' => '25px'));
+ array('title' => __('Total events')));
$tdata[1] = '' .
format_numeric($system_events) . '';
diff --git a/pandora_console/operation/agentes/tactical.php b/pandora_console/operation/agentes/tactical.php
index 8f45c86cec..4c0ec73ab1 100644
--- a/pandora_console/operation/agentes/tactical.php
+++ b/pandora_console/operation/agentes/tactical.php
@@ -229,7 +229,7 @@ if (!empty($acltags)) {
$tags_condition = tags_get_acl_tags_event_condition($acltags, false, $user_strict);
if (!empty($tags_condition)) {
- $events = events_print_event_table ("estado<>1 AND ($tags_condition)", 10, "100%",true);
+ $events = events_print_event_table ("estado<>1 AND ($tags_condition)", 10, "100%",true,false,true);
ui_toggle($events, __('Latest events'));
}
}
@@ -241,7 +241,20 @@ if ($is_admin) {
$tiny = true;
require($config['homedir'] . '/godmode/servers/servers.build_table.php');
}
-
+$out .= '';
+ $out .= '';
+ $out .=" | ";
+ $out .= '';
+ $out .= ' |
';
+echo $out;
echo '';
echo '';