mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add STP Ports
This commit is contained in:
@@ -15,7 +15,7 @@ if (!$vars['view']) {
|
||||
}
|
||||
|
||||
$menu_options['basic'] = 'Basic';
|
||||
// $menu_options['details'] = 'Details';
|
||||
$menu_options['ports'] = 'Ports';
|
||||
$sep = '';
|
||||
foreach ($menu_options as $option => $text) {
|
||||
echo $sep;
|
||||
@@ -37,12 +37,16 @@ print_optionbar_end();
|
||||
|
||||
echo '<table border="0" cellspacing="0" cellpadding="5" width="100%">';
|
||||
|
||||
$i = '1';
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM `stp` WHERE `device_id` = ? ORDER BY 'stp_id'", array($device['device_id'])) as $stp) {
|
||||
if ($vars['view'] == 'basic') {
|
||||
//$i = '1';
|
||||
foreach (dbFetchRows("SELECT * FROM `stp` WHERE `device_id` = ? ORDER BY 'stp_id'", array($device['device_id'])) as $stp) {
|
||||
include 'includes/print-stp.inc.php';
|
||||
// $i++;
|
||||
}
|
||||
}
|
||||
|
||||
$i++;
|
||||
if ($vars['view'] == 'ports') {
|
||||
include 'includes/print-stp-ports.inc.php';
|
||||
}
|
||||
|
||||
echo '</table>';
|
||||
|
||||
Reference in New Issue
Block a user