+ ';
}
@@ -2302,15 +2359,15 @@ function reporting_html_url(&$table, $item, $key)
$table->colspan['data']['cell'] = 3;
$table->cellstyle['data']['cell'] = 'text-align: left;';
$table->data['data']['cell'] = '
- ';
+ ';
// TODO: make this dynamic and get the height if the iframe to resize this item
$table->data['data']['cell'] .= '
- ';
+ ';
}
@@ -2635,8 +2692,8 @@ function get_agent_first_time($agent_name)
$utimestamp = db_get_all_rows_sql(
'SELECT utimestamp FROM tagente_datos WHERE id_agente_modulo IN
- (SELECT id_agente_modulo FROM tagente_modulo WHERE id_agente = '.$id.')
- ORDER BY utimestamp ASC LIMIT 1'
+ (SELECT id_agente_modulo FROM tagente_modulo WHERE id_agente = '.$id.')
+ ORDER BY utimestamp ASC LIMIT 1'
);
$utimestamp = $utimestamp[0]['utimestamp'];
@@ -2878,7 +2935,7 @@ function reporting_get_stats_summary($data, $graph_width, $graph_height)
$table_sum->data[] = $tdata;
$output = '';
+ '.html_print_table($table_sum, true).'';
return $output;
}
@@ -3459,12 +3516,12 @@ function reporting_get_agents_by_status($data, $graph_width=250, $graph_height=1
if (!defined('METACONSOLE')) {
$agents_data = '';
+ '.html_print_table($table_agent, true).'';
} else {
$table_agent->style = [];
$table_agent->class = 'tactical_view';
$agents_data = '';
+ '.html_print_table($table_agent, true).'';
}
return $agents_data;
@@ -3487,7 +3544,7 @@ function reporting_get_total_agents_and_monitors($data, $graph_width=250, $graph
$total_data[3] = $total_module <= 0 ? '-' : $total_module;
$table_total->data[] = $total_data;
$total_agent_module = '';
+ '.html_print_table($table_total, true).'';
return $total_agent_module;
}
@@ -3506,12 +3563,12 @@ function reporting_get_total_servers($num_servers)
if (!defined('METACONSOLE')) {
$node_overview = '';
+ '.html_print_table($table_node, true).'';
} else {
$table_node->style = [];
$table_node->class = 'tactical_view';
$node_overview = '';
+ '.html_print_table($table_node, true).'';
}
return $node_overview;
@@ -3555,7 +3612,7 @@ function reporting_get_events($data, $links=false)
if (!defined('METACONSOLE')) {
$event_view = '';
+ '.html_print_table($table_events, true).'';
} else {
$table_events->class = 'tactical_view';
$table_events->styleTable = 'text-align:center;';
@@ -3565,7 +3622,7 @@ function reporting_get_events($data, $links=false)
$table_events->size[3] = '10%';
$event_view = '';
+ '.html_print_table($table_events, true).'';
}
return $event_view;
@@ -3597,9 +3654,9 @@ function reporting_get_last_activity()
case 'mysql':
$sql = sprintf(
'SELECT id_usuario,accion,fecha,ip_origen,descripcion,utimestamp
- FROM tsesion
- WHERE (`utimestamp` > UNIX_TIMESTAMP(NOW()) - '.SECONDS_1WEEK.")
- AND `id_usuario` = '%s' ORDER BY `utimestamp` DESC LIMIT 5",
+ FROM tsesion
+ WHERE (`utimestamp` > UNIX_TIMESTAMP(NOW()) - '.SECONDS_1WEEK.")
+ AND `id_usuario` = '%s' ORDER BY `utimestamp` DESC LIMIT 5",
$config['id_user']
);
break;
@@ -3607,9 +3664,9 @@ function reporting_get_last_activity()
case 'postgresql':
$sql = sprintf(
"SELECT \"id_usuario\", accion, fecha, \"ip_origen\", descripcion, utimestamp
- FROM tsesion
- WHERE (\"utimestamp\" > ceil(date_part('epoch', CURRENT_TIMESTAMP)) - ".SECONDS_1WEEK.")
- AND \"id_usuario\" = '%s' ORDER BY \"utimestamp\" DESC LIMIT 5",
+ FROM tsesion
+ WHERE (\"utimestamp\" > ceil(date_part('epoch', CURRENT_TIMESTAMP)) - ".SECONDS_1WEEK.")
+ AND \"id_usuario\" = '%s' ORDER BY \"utimestamp\" DESC LIMIT 5",
$config['id_user']
);
break;
@@ -3617,9 +3674,9 @@ function reporting_get_last_activity()
case 'oracle':
$sql = sprintf(
"SELECT id_usuario, accion, fecha, ip_origen, descripcion, utimestamp
- FROM tsesion
- WHERE ((utimestamp > ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (".SECONDS_1DAY.')) - '.SECONDS_1WEEK.")
- AND id_usuario = '%s') AND rownum <= 10 ORDER BY utimestamp DESC",
+ FROM tsesion
+ WHERE ((utimestamp > ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (".SECONDS_1DAY.')) - '.SECONDS_1WEEK.")
+ AND id_usuario = '%s') AND rownum <= 10 ORDER BY utimestamp DESC",
$config['id_user']
);
break;
@@ -3797,7 +3854,7 @@ function reporting_get_event_histogram($events, $text_header_event=false)
if (!defined('METACONSOLE')) {
if (!$text_header_event) {
$event_graph = '';
+ '.html_print_table($table, true).'';
} else {
$table->class = 'noclass';
$event_graph = html_print_table($table, true);
@@ -3895,9 +3952,9 @@ function reporting_get_event_histogram_meta($width)
$time_condition = 'utimestamp > '.$bottom.' AND utimestamp < '.$top;
$sql = sprintf(
'SELECT criticity,utimestamp
- FROM tmetaconsole_event
- WHERE %s %s %s
- ORDER BY criticity DESC',
+ FROM tmetaconsole_event
+ WHERE %s %s %s
+ ORDER BY criticity DESC',
$time_condition,
$groups_condition,
$status_condition
@@ -3981,7 +4038,7 @@ function reporting_get_event_histogram_meta($width)
if (!$text_header_event) {
$event_graph = '';
+ '.html_print_table($table, true).'';
} else {
$table->class = 'noclass';
$event_graph = html_print_table($table, true);
diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css
index f42c64f70a..cd5a3d8eaf 100644
--- a/pandora_console/include/styles/pandora.css
+++ b/pandora_console/include/styles/pandora.css
@@ -1,24 +1,30 @@
-/*
-Author: The Pandora FMS team
-Name: Default theme
-Description: The default Pandora FMS theme layout
-
-// Pandora FMS - http://pandorafms.com
-// ==========================================================
-// Copyright (c) 2004-2011 Artica Soluciones Tecnológicas S.L
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-*/
+/**
+ * Extension to manage a list of gateways and the node address where they should
+ * point to.
+ *
+ * @category Extensions
+ * @package Pandora FMS
+ * @subpackage Community
+ * @version 1.0.0
+ * @license See below
+ *
+ * ______ ___ _______ _______ ________
+ * | __ \.-----.--.--.--| |.-----.----.-----. | ___| | | __|
+ * | __/| _ | | _ || _ | _| _ | | ___| |__ |
+ * |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
+ *
+ * ============================================================================
+ * Copyright (c) 2005-2019 Artica Soluciones Tecnologicas
+ * Please see http://pandorafms.org for full contribution list
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation for version 2.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * ============================================================================
+ */
/* Tree view styles */
@import url(tree.css);
diff --git a/pandora_console/include/styles/pandoraPDF.css b/pandora_console/include/styles/pandoraPDF.css
new file mode 100644
index 0000000000..10dc892ec6
--- /dev/null
+++ b/pandora_console/include/styles/pandoraPDF.css
@@ -0,0 +1,71 @@
+/**
+ * Extension to manage a list of gateways and the node address where they should
+ * point to.
+ *
+ * @category Extensions
+ * @package Pandora FMS
+ * @subpackage Community
+ * @version 1.0.0
+ * @license See below
+ *
+ * ______ ___ _______ _______ ________
+ * | __ \.-----.--.--.--| |.-----.----.-----. | ___| | | __|
+ * | __/| _ | | _ || _ | _| _ | | ___| |__ |
+ * |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
+ *
+ * ============================================================================
+ * Copyright (c) 2005-2019 Artica Soluciones Tecnologicas
+ * Please see http://pandorafms.org for full contribution list
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation for version 2.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * ============================================================================
+ */
+
+.content_table {
+ width: 100%;
+ font-size: 20pt !important;
+ page-break-inside: avoid;
+ border-collapse: collapse;
+}
+
+.content_table tr th,
+.content_table tr td {
+ padding: 10px;
+}
+
+thead.header_tr tr {
+ background: #e6e6e6;
+}
+thead.header_tr tr th {
+ font-weight: normal;
+ text-align: right;
+}
+thead.header_tr tr th.th_first {
+ font-weight: bold;
+ text-align: left;
+}
+
+.table_beauty {
+ font-size: 20pt !important;
+ border-collapse: collapse;
+ width: 100%;
+}
+
+.table_beauty tr td {
+ font-size: 20pt !important;
+ padding: 5px;
+ border: 0.1pt solid #acacac;
+}
+
+.table_beauty tr td table {
+ font-size: 20pt !important;
+}
+
+.table_beauty tr td table tr td {
+ font-size: 20pt !important;
+}
diff --git a/pandora_console/index.php b/pandora_console/index.php
index ad4b93465a..321b5956dc 100755
--- a/pandora_console/index.php
+++ b/pandora_console/index.php
@@ -1363,4 +1363,3 @@ require 'include/php_to_js_values.php';
if (__PAN_XHPROF__ === 1) {
pandora_xhprof_display_result('node_index');
}
-