' . html_print_image ("images/edit.png", true, array ("title" => __('Report list'))) . ''; //Header ui_print_page_header (__('Netflow'), "images/networkmap/so_cisco_new.png", false, "", false, $buttons); echo"

".__('Filter graph')."

"; echo '
'; $table->width = '60%'; $table->border = 0; $table->cellspacing = 3; $table->cellpadding = 5; $table->class = "databox_color"; $table->style[0] = 'vertical-align: top;'; $table->data = array (); $table->data[0][0] = ''.__('Date').''; $table->data[0][1] = html_print_input_text ('date', $date, false, 10, 10, true); $table->data[0][1] .= html_print_image ("images/calendar_view_day.png", true, array ("alt" => "calendar", "onclick" => "scwShow(scwID('text-date'),this);")); $table->data[0][1] .= html_print_input_text ('time', $time, false, 10, 5, true); $table->data[1][0] = ''.__('Interval').''; $table->data[1][1] = html_print_select (netflow_get_valid_intervals (), 'period', $period, '', '', 0, true, false, false); html_print_table ($table); echo '
'; html_print_submit_button (__('Update'), 'updbutton', false, 'class="sub upd"'); html_print_input_hidden ('update_date', 1); echo '
'; echo'
'; if (empty ($id)){ echo fs_error_image(); return; } $report_name = db_get_value('id_name', 'tnetflow_report', 'id_report', $id); echo"

$report_name

"; $all_rcs = db_get_all_rows_sql("SELECT id_rc FROM tnetflow_report_content WHERE id_report='$id'"); if (empty ($all_rcs)) { echo fs_error_image(); return; } // Process report items for ($x = 0; isset($all_rcs[$x]['id_rc']); $x++) { // Get report item $report_id = $all_rcs[$x]['id_rc']; $content_report = db_get_row_sql("SELECT * FROM tnetflow_report_content WHERE id_rc='$report_id'"); $content_id = $content_report['id_rc']; $max_aggregates= $content_report['max']; $type = $content_report['show_graph']; // Get item filters $filter = db_get_row_sql("SELECT * FROM tnetflow_filter WHERE id_sg = '" . io_safe_input ($content_report['id_filter']) . "'", false, true); // Get the command to call nfdump $command = netflow_get_command ($filter); if ($filter['aggregate'] != 'none') { echo '

' . $filter['id_name'] . ' (' . __($filter['aggregate']) . '/' . __($filter['output']) . ')

'; } else { echo '

' . $filter['id_name'] . ' (' . __($filter['output']) . ')

'; } // Build a unique id for the cache $unique_id = $report_id . '_' . $content_id . '_' . ($end_date - $start_date); // Draw netflow_draw_item ($start_date, $end_date, $type, $filter, $command, $filter, $max_aggregates, $unique_id); } ?>