Normalized network/netflow interval-start ddate switch

Former-commit-id: 2cce98339fbcca9e7ef6bf29e7ace2d81c5ff525
This commit is contained in:
fermin831 2019-03-26 15:01:56 +01:00
parent a7ff654826
commit f2e710907a
2 changed files with 20 additions and 10 deletions

View File

@ -95,17 +95,10 @@ $table->data['0']['1'] .= html_print_select(
true
);
$table->data['0']['2'] = __('Select period').'  ';
$table->data['0']['2'] .= html_print_checkbox(
'is_period',
1,
($is_period === true) ? 1 : 0,
true,
false,
'network_report_click_period(event)'
);
$table->data['0']['2'] = '';
$table->data['1']['0'] = '<div id="end_date_container" style="'.$style_end.'">';
$table->data['1']['0'] = '<div style="display: flex;">';
$table->data['1']['0'] .= '<div id="end_date_container" style="'.$style_end.'">';
$table->data['1']['0'] .= __('Start date').'&nbsp;&nbsp;';
$table->data['1']['0'] .= html_print_input_text('date_lower', $date_lower, '', 10, 7, true);
$table->data['1']['0'] .= '&nbsp;&nbsp;';
@ -116,6 +109,19 @@ $table->data['1']['0'] .= '<div id="period_container" style="'.$style_period.'">
$table->data['1']['0'] .= __('Time Period').'&nbsp;&nbsp;';
$table->data['1']['0'] .= html_print_extended_select_for_time('period', $period, '', '', 0, false, true);
$table->data['1']['0'] .= '</div>';
$table->data['1']['0'] .= html_print_checkbox(
'is_period',
1,
($is_period === true) ? 1 : 0,
true,
false,
'network_report_click_period(event)'
);
$table->data['1']['0'] .= ui_print_help_tip(
__('Select this checkbox to write interval instead a date.'),
true
);
$table->data['1']['0'] .= '</div>';
$table->data['1']['1'] = __('End date').'&nbsp;&nbsp;';
$table->data['1']['1'] .= html_print_input_text('date_greater', $date_greater, '', 10, 7, true);

View File

@ -90,6 +90,10 @@ $table->data['0']['0'] .= html_print_checkbox(
false,
'network_report_click_period(event)'
);
$table->data['0']['0'] .= ui_print_help_tip(
__('Select this checkbox to write interval instead a date.'),
true
);
$table->data['0']['0'] .= '</div>';
$table->data['0']['1'] = __('End date').'&nbsp;&nbsp;';