mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
change more tables to css colouring, some more to do but not for now...
git-svn-id: http://www.observium.org/svn/observer/trunk@3020 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -25,8 +25,6 @@ foreach ($cols as $sort => $col)
|
||||
|
||||
echo(" </tr>");
|
||||
|
||||
$row = 1;
|
||||
|
||||
$ports_disabled = 0; $ports_down = 0; $ports_up = 0; $ports_total = 0;
|
||||
|
||||
foreach ($ports as $port)
|
||||
@@ -39,8 +37,6 @@ foreach ($ports as $port)
|
||||
|
||||
if (port_permitted($port['interface_id'], $port['device_id']))
|
||||
{
|
||||
if (is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
|
||||
|
||||
$speed = humanspeed($port['ifSpeed']);
|
||||
$type = humanmedia($port['ifType']);
|
||||
$ifclass = ifclass($port['ifOperStatus'], $port['ifAdminStatus']);
|
||||
@@ -54,7 +50,7 @@ foreach ($ports as $port)
|
||||
$port['out_rate'] = formatRates($port['ifOutOctets_rate'] * 8);
|
||||
|
||||
$port = ifLabel($port, $device);
|
||||
echo("<tr bgcolor=$row_colour>
|
||||
echo("<tr class='ports'>
|
||||
<td width=5></td>
|
||||
<td width=200 class=list-bold><a href='" . generate_device_url($port) . "'>".$port['hostname']."</a></td>
|
||||
<td width=150 class=list-bold><a class='".$ifclass."'href='" . generate_port_url($port) . "'>".fixIfName($port['label'])." $error_img</td>
|
||||
@@ -64,8 +60,6 @@ foreach ($ports as $port)
|
||||
<td width=150>$type</td>
|
||||
<td>" . $port['ifAlias'] . "</td>
|
||||
</tr>\n");
|
||||
|
||||
$row++;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user