From eaacf461316d3da7bcf0425b67789afd99546a7e Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Wed, 11 Jan 2017 13:12:46 +0100 Subject: [PATCH] Change visual of data in tree view, now show more data. --- .../include/functions_treeview.php | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/pandora_console/include/functions_treeview.php b/pandora_console/include/functions_treeview.php index a186f40940..c0db1f33bb 100755 --- a/pandora_console/include/functions_treeview.php +++ b/pandora_console/include/functions_treeview.php @@ -198,16 +198,18 @@ function treeview_printModuleTable($id_module, $server_data = false, $no_head = $data = "" . remove_right_zeros(number_format($last_data["datos"], $config['graph_precision'])) . ""; else - $data = "" . - substr(io_safe_output($last_data['datos']),0,12) . ""; + $data = ui_print_truncate_text(io_safe_output($last_data['datos']), + GENERIC_SIZE_TEXT, true, true, + true, '...', 'white-space: nowrap;'); break; default: if (is_numeric($last_data["datos"])) $data = "" . remove_right_zeros(number_format($last_data["datos"], $config['graph_precision'])) . ""; else - $data = "" . - substr(io_safe_output($last_data['datos']),0,12) . ""; + $data = ui_print_truncate_text(io_safe_output($last_data['datos']), + GENERIC_SIZE_TEXT, true, true, + true, '...', 'white-space: nowrap;'); break; } break; @@ -225,17 +227,20 @@ function treeview_printModuleTable($id_module, $server_data = false, $no_head = $data = "" . remove_right_zeros(number_format($last_data["datos"], $config['graph_precision'])) . ""; else - $data = "" . - substr(io_safe_output($last_data['datos']),0,12) . ""; + $data = ui_print_truncate_text(io_safe_output($last_data['datos']), + GENERIC_SIZE_TEXT, true, true, true, + '...', 'white-space: nowrap;'); break; default: if (is_numeric($last_data["datos"])) $data = "" . remove_right_zeros(number_format($last_data["datos"], $config['graph_precision'])) . ""; else - $data = "" . - substr(io_safe_output($last_data['datos']),0,12) . ""; + $data = ui_print_truncate_text(io_safe_output($last_data['datos']), + GENERIC_SIZE_TEXT, true, true, true, + '...', 'white-space: nowrap;'); break; + } } if (!empty($last_data['utimestamp'])) { $last_data_str = $data;