42 lines
879 B
PHP
42 lines
879 B
PHP
<?php
|
|
|
|
/**
|
|
* Observium
|
|
*
|
|
* This file is part of Observium.
|
|
*
|
|
* @package observium
|
|
* @subpackage webui
|
|
* @copyright (C) Adam Armstrong
|
|
*
|
|
*/
|
|
|
|
$cbqos_array = dbFetchRows('SELECT * FROM `ports_cbqos` WHERE `port_id` = ?', [$port['port_id']]);
|
|
|
|
foreach ($cbqos_array as $cbqos) {
|
|
|
|
echo generate_box_open(['title' => $cbqos['policy_name'] . ' / ' . $cbqos['object_name'] . ' (' . $cbqos['direction'] . ')']);
|
|
|
|
echo('<table class="table table-hover table-condensed table-striped">');
|
|
|
|
$graph_array['id'] = $cbqos['cbqos_id'];
|
|
|
|
echo('<tr><td>');
|
|
echo('<h3>Packets</h3>');
|
|
$graph_array['type'] = 'cbqos_pkts';
|
|
print_graph_row($graph_array);
|
|
|
|
echo('<h3>Bits</h3>');
|
|
$graph_array['type'] = 'cbqos_bits';
|
|
print_graph_row($graph_array);
|
|
|
|
echo('</td></tr>');
|
|
|
|
echo('</table>');
|
|
|
|
echo generate_box_close();
|
|
|
|
}
|
|
|
|
// EOF
|