From 935db452d29c11f483b0145013c633b454f48e2d Mon Sep 17 00:00:00 2001 From: fermin831 Date: Mon, 11 Mar 2019 15:02:22 +0100 Subject: [PATCH] Network report. Fixed some styles Former-commit-id: 19a181044bae3f5bcec1f873e20ec50c41a73f00 --- .../operation/network/network_report.php | 50 ++++++++++--------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/pandora_console/operation/network/network_report.php b/pandora_console/operation/network/network_report.php index 7f933e9f28..53428890cc 100644 --- a/pandora_console/operation/network/network_report.php +++ b/pandora_console/operation/network/network_report.php @@ -105,22 +105,22 @@ $table->data['0']['2'] .= html_print_checkbox( 'network_report_click_period(event)' ); -$table->data['1']['0'] = __('End date').'  '; -$table->data['1']['0'] .= html_print_input_text('date_greater', $date_greater, '', 10, 7, true); +$table->data['1']['0'] = '
'; +$table->data['1']['0'] .= __('Start date').'  '; +$table->data['1']['0'] .= html_print_input_text('date_lower', $date_lower, '', 10, 7, true); $table->data['1']['0'] .= '  '; -$table->data['1']['0'] .= html_print_input_text('time_greater', $time_greater, '', 7, 8, true); +$table->data['1']['0'] .= html_print_input_text('time_lower', $time_lower, '', 7, 8, true); +$table->data['1']['0'] .= '
'; -$table->data['1']['1'] = '
'; -$table->data['1']['1'] .= __('Start date').'  '; -$table->data['1']['1'] .= html_print_input_text('date_lower', $date_lower, '', 10, 7, true); +$table->data['1']['0'] .= '
'; +$table->data['1']['0'] .= __('Time Period').'  '; +$table->data['1']['0'] .= html_print_extended_select_for_time('period', $period, '', '', 0, false, true); +$table->data['1']['0'] .= '
'; + +$table->data['1']['1'] = __('End date').'  '; +$table->data['1']['1'] .= html_print_input_text('date_greater', $date_greater, '', 10, 7, true); $table->data['1']['1'] .= '  '; -$table->data['1']['1'] .= html_print_input_text('time_lower', $time_lower, '', 7, 8, true); -$table->data['1']['1'] .= '
'; - -$table->data['1']['1'] .= '
'; -$table->data['1']['1'] .= __('Time Period').'  '; -$table->data['1']['1'] .= html_print_extended_select_for_time('period', $period, '', '', 0, false, true); -$table->data['1']['1'] .= '
'; +$table->data['1']['1'] .= html_print_input_text('time_greater', $time_greater, '', 7, 8, true); $table->data['1']['2'] = html_print_submit_button( __('Update'), @@ -182,7 +182,7 @@ $hidden_main_link = [ unset($table); $table = new stdClass(); -$table->styleTable = 'width: 100%'; +$table->styleTable = 'width: 70%'; // Print the header. $table->head = []; $table->head['main'] = __('IP'); @@ -307,18 +307,20 @@ foreach ($data as $item) { if (empty($data)) { ui_print_info_message(__('No data found')); } else { + echo '
'; html_print_table($table); -} -// Print the graph. -echo '
'; -echo pie_graph( - $chart_data, - 320, - 200, - __('Others') -); -echo '
'; + // Print the graph. + echo '
'; + echo pie_graph( + $chart_data, + 320, + 200, + __('Others') + ); + echo '
'; + echo '
'; +} ?>