mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix vlan, a bit, but still bork
git-svn-id: http://www.observium.org/svn/observer/trunk@2554 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -6,13 +6,13 @@ echo("<tr bgcolor='$bg_colour'>");
|
||||
|
||||
echo("<td width=100 class=list-large> Vlan " . $vlan['vlan_vlan'] . "</td>");
|
||||
echo("<td width=200 class=box-desc>" . $vlan['vlan_descr'] . "</td>");
|
||||
|
||||
echo("<td class=list-bold>");
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM ports WHERE `device_id` = ? AND `ifVlan` = ?", array($device['device_id'], $vlan['vlan_vlan'])) as $port)
|
||||
{
|
||||
if ($_GET['opta'])
|
||||
if ($vars['view'])
|
||||
{
|
||||
$graph_type = $_GET['opta'];
|
||||
$graph_type = $vars['view'];
|
||||
|
||||
echo("<div style='display: block; padding: 2px; margin: 2px; min-width: 139px; max-width:139px; min-height:85px; max-height:85px; text-align: center; float: left; background-color: ".$list_colour_b_b.";'>
|
||||
<div style='font-weight: bold;'>".makeshortif($port['ifDescr'])."</div>
|
||||
|
@@ -4,13 +4,13 @@ print_optionbar_start();
|
||||
|
||||
echo("<span style='font-weight: bold;'>VLANs</span> » ");
|
||||
|
||||
echo("
|
||||
<a href='".$config['base_url']."/device/" . $device['device_id'] . "/vlans/'>Basic</a> | Graphs :
|
||||
<a href='".$config['base_url']."/device/" . $device['device_id'] . "/vlans/bits/'>Bits</a> |
|
||||
<a href='".$config['base_url']."/device/" . $device['device_id'] . "/vlans/pkts/'>Packets</a> |
|
||||
<a href='".$config['base_url']."/device/" . $device['device_id'] . "/vlans/nupkts/'>NU Packets</a> |
|
||||
<a href='".$config['base_url']."/device/" . $device['device_id'] . "/vlans/errors/'>Errors</a>
|
||||
");
|
||||
echo('
|
||||
<a href="device/device=' . $device['device_id'] . '/tab=vlans/">Basic</a> | Graphs :
|
||||
<a href="device/device=' . $device['device_id'] . '/tab=vlans/view=bits/">Bits</a> |
|
||||
<a href="device/device=' . $device['device_id'] . '/tab=vlans/view=pkts/">Packets</a> |
|
||||
<a href="device/device=' . $device['device_id'] . '/tab=vlans/view=nupkts/">NU Packets</a> |
|
||||
<a href="device/device=' . $device['device_id'] . '/tab=vlans/view=errors/">Errors</a>
|
||||
');
|
||||
|
||||
print_optionbar_end();
|
||||
|
||||
|
Reference in New Issue
Block a user