From eec313c4c7a763fcdfb379cc71566937df69acc8 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Tue, 30 May 2017 13:10:57 +0200 Subject: [PATCH] Fixed nwtflow live view filter table --- .../operation/netflow/nf_live_view.php | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/pandora_console/operation/netflow/nf_live_view.php b/pandora_console/operation/netflow/nf_live_view.php index e917993c68..6e23dc11b3 100644 --- a/pandora_console/operation/netflow/nf_live_view.php +++ b/pandora_console/operation/netflow/nf_live_view.php @@ -347,7 +347,7 @@ echo '
" . __('Dst Ip'). ui_print_help_tip (__("Destination IP. A comma separated list of destination ip. If we leave the field blank, will show all ip. Example filter by ip:
25.46.157.214,160.253.135.249"), true) . ""; - echo "" . html_print_input_text ('ip_dst', $filter['ip_dst'], false, 30, 80, true) . ""; + echo "" . html_print_input_text ('ip_dst', $filter['ip_dst'], false, 30, 80, true) . ""; } if ($netflow_disable_custom_lvfilters) { @@ -356,7 +356,7 @@ echo '" . __('Src Ip'). ui_print_help_tip (__("Source IP. A comma separated list of source ip. If we leave the field blank, will show all ip. Example filter by ip:
25.46.157.214,160.253.135.249"), true) . ""; - echo "" . html_print_input_text ('ip_src', $filter['ip_src'], false, 30, 80, true) . ""; + echo "" . html_print_input_text ('ip_src', $filter['ip_src'], false, 30, 80, true) . ""; } echo ""; @@ -368,7 +368,7 @@ echo '" . __('Dst Port'). ui_print_help_tip (__("Destination port. A comma separated list of destination ports. If we leave the field blank, will show all ports. Example filter by ports 80 and 22:
80,22"), true) . ""; - echo "" . html_print_input_text ('dst_port', $filter['dst_port'], false, 30, 80, true) . ""; + echo "" . html_print_input_text ('dst_port', $filter['dst_port'], false, 30, 80, true) . ""; } if ($netflow_disable_custom_lvfilters) { @@ -377,7 +377,7 @@ echo '" . __('Src Port') . ui_print_help_tip (__("Source port. A comma separated list of source ports. If we leave the field blank, will show all ports. Example filter by ports 80 and 22:
80,22"), true) . ""; - echo "" . html_print_input_text ('src_port', $filter['src_port'], false, 30, 80, true) . ""; + echo "" . html_print_input_text ('src_port', $filter['src_port'], false, 30, 80, true) . ""; } echo ""; @@ -397,21 +397,19 @@ echo '" . '' . __('Aggregate by') . '' . ui_print_help_icon ('aggregate_by', true) . ""; $aggregate_list = array(); $aggregate_list = array ('none' => __('None'), 'proto' => __('Protocol'), 'srcip' =>__('Src Ip Address'), 'dstip' =>__('Dst Ip Address'), 'srcport' =>__('Src Port'), 'dstport' =>__('Dst Port') ); - echo "" . html_print_select ($aggregate_list, "aggregate", $filter['aggregate'], '', '', 0, true, false, true, '', false) . ""; + echo "" . html_print_select ($aggregate_list, "aggregate", $filter['aggregate'], '', '', 0, true, false, true, '', false) . ""; echo "" . ''.__('Router ip').'' . ""; - echo "" . html_print_input_text ('router_ip', $filter['router_ip'], false, 30, 80, true) . ""; + echo "" . html_print_input_text ('router_ip', $filter['router_ip'], false, 30, 80, true) . ""; echo "" . ''.__('Output format').'' . ""; $show_output = array ('bytes' => __('Bytes'), 'bytespersecond' => __('Bytes per second'), 'kilobytes' => __('Kilobytes'), 'megabytes' => __('Megabytes'), 'kilobytespersecond' => __('Kilobytes per second'), 'megabytespersecond' => __('Megabytes per second')); - echo "" . html_print_select ($show_output, 'output', $filter['output'], '', '', 0, true, false, true, '', false) . ""; + echo "" . html_print_select ($show_output, 'output', $filter['output'], '', '', 0, true, false, true, '', false) . ""; echo ""; echo ""; - //echo "
"; - echo "
"; echo html_print_submit_button (__('Draw'), 'draw_button', false, 'class="sub upd"',true) ; @@ -437,9 +435,9 @@ if ($draw != '') { } // Draw the netflow chart else { - echo netflow_draw_item ($start_date, $end_date, - $interval_length, $chart_type, $filter, - $max_aggregates, $connection_name, 'HTML', $address_resolution); + echo netflow_draw_item ($start_date, $end_date, + $interval_length, $chart_type, $filter, + $max_aggregates, $connection_name, 'HTML', $address_resolution); } }