).
+ * @param boolean $no_in_meta Do not show on metaconsole folder at first. Go
+ * directly to the node.
+ * @param boolean $isExternalLink Do not shearch for images in Pandora.
*
* @return string HTML code if return parameter is true.
*/
@@ -2412,9 +2421,9 @@ function html_print_image(
) {
global $config;
- // If metaconsole is in use then don't use skins
+ // If metaconsole is in use then don't use skins.
if (!is_metaconsole()) {
- // Checks if user's skin is available
+ // Checks if user's skin is available.
$isFunctionSkins = enterprise_include_once('include/functions_skins.php');
if ($isFunctionSkins !== ENTERPRISE_NOT_HOOK) {
@@ -2426,11 +2435,11 @@ function html_print_image(
}
}
- // If metaconsole is activated and image doesn't exists try to search on normal console
+ // If metaconsole is activated and image doesn't exists try to search on normal console.
if (is_metaconsole()) {
if (!$relative) {
$working_dir = str_replace('\\', '/', getcwd());
- // Windows compatibility
+ // Windows compatibility.
if ($no_in_meta) {
$src = '../../'.$src;
} else if (strstr($working_dir, 'enterprise/meta') === false) {
@@ -2468,22 +2477,22 @@ function html_print_image(
}
}
- // Only return src field of image
+ // Only return src field of image.
if ($return_src) {
if (!$return) {
echo io_safe_input($src);
- return;
+ return null;
}
return io_safe_input($src);
}
$output = '
';
- $html .= html_print_submit_button($text, $text, false, 'class="button-as-link"', true);
+ switch ($type) {
+ case 'image':
+ $html .= html_print_input_image($text, $text, $text, '', true);
+ break;
+
+ case 'text':
+ default:
+ $html .= html_print_submit_button($text, $text, false, 'class="button-as-link"', true);
+ break;
+ }
+
foreach ($params as $param => $value) {
$html .= html_print_input_hidden($param, $value, true);
}
diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css
index cd648787bc..49b464481a 100644
--- a/pandora_console/include/styles/pandora.css
+++ b/pandora_console/include/styles/pandora.css
@@ -4172,6 +4172,11 @@ form ul.form_flex li ul li {
text-align: center;
}
+.div-v-centered {
+ display: flex;
+ align-items: center;
+}
+
.pandora_upper {
text-transform: uppercase;
}
diff --git a/pandora_console/operation/network/network_report.php b/pandora_console/operation/network/network_report.php
index 8e240f2d18..66d3ce1b2a 100644
--- a/pandora_console/operation/network/network_report.php
+++ b/pandora_console/operation/network/network_report.php
@@ -233,12 +233,20 @@ if (!empty($main_value)) {
// Print the data and build the chart.
$table->data = [];
$chart_data = [];
+$hide_filter = !empty($main_value) && ($action === 'udp' || $action === 'tcp');
foreach ($data as $item) {
$row = [];
- $row['main'] = html_print_link_with_params(
- $item['host'],
- array_merge($hidden_main_link, ['main_value' => $item['host']])
- );
+ $row['main'] = '';
+ $row['main'] .= $item['host'];
+ if (!$hide_filter) {
+ $row['main'] .= html_print_link_with_params(
+ 'images/filter.png',
+ array_merge($hidden_main_link, ['main_value' => $item['host']]),
+ 'image'
+ );
+ }
+
+ $row['main'] .= '
';
if (!$is_network) {
$row['flows'] = format_for_graph($item['sum_flows'], 2);
}