2012-01-23 Ramon Novoa <rnovoa@artica.es>
* include/functions_netflow.php: Aesthetic fixes to netflow report tables. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5408 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
9faeefd0a4
commit
1950f614e7
|
@ -1,3 +1,8 @@
|
|||
2012-01-23 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* include/functions_netflow.php: Aesthetic fixes to netflow report
|
||||
tables.
|
||||
|
||||
2012-01-23 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* operation/menu.php,
|
||||
|
|
|
@ -195,10 +195,11 @@ function netflow_stat_table ($data, $start_date, $end_date, $aggregate, $unit){
|
|||
$table->class = 'databox';
|
||||
$table->data = array();
|
||||
$j = 0;
|
||||
$x = 1;
|
||||
|
||||
$table->data[0][0] = '<b>' . __($aggregate) . '</b>';
|
||||
$table->data[0][1] = '<b>' . __($unit) . '</b>';
|
||||
$x = 0;
|
||||
|
||||
$table->head = array ();
|
||||
$table->head[0] = '<b>' . __($aggregate) . '</b>';
|
||||
$table->head[1] = '<b>' . __($unit) . '</b>';
|
||||
|
||||
while (isset ($data[$j])) {
|
||||
$agg = $data[$j]['agg'];
|
||||
|
@ -256,20 +257,21 @@ function netflow_data_table ($data, $start_date, $end_date, $aggregate) {
|
|||
$table->size = array ('50%');
|
||||
$table->class = 'databox';
|
||||
$table->data = array();
|
||||
|
||||
$table->data[0][0] = '<b>'.__($aggregate).'</b>';
|
||||
|
||||
$table->head = array();
|
||||
$table->head[0] = '<b>'.__('Timestamp').'</b>';
|
||||
|
||||
$j = 0;
|
||||
$source_index = array ();
|
||||
$source_count = 0;
|
||||
foreach ($data['sources'] as $source => $null) {
|
||||
$table->data[0][$j+1] = $source;
|
||||
$table->head[$j+1] = $source;
|
||||
$source_index[$j] = $source;
|
||||
$source_count++;
|
||||
$j++;
|
||||
}
|
||||
|
||||
$i = 1;
|
||||
$i = 0;
|
||||
foreach ($data['data'] as $timestamp => $values) {
|
||||
$table->data[$i][0] = date ($time_format, $timestamp);
|
||||
for ($j = 0; $j < $source_count; $j++) {
|
||||
|
|
Loading…
Reference in New Issue