mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 08:03:30 +02: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:
@@ -55,8 +55,6 @@ $query .= " ORDER BY A.ipv4_address";
|
||||
|
||||
echo('<tr class="tablehead"><th>Device</a></th><th>Interface</th><th>Address</th><th>Description</th></tr>');
|
||||
|
||||
$row = 1;
|
||||
|
||||
foreach (dbFetchRows($query, $param) as $interface)
|
||||
{
|
||||
if ($_POST['address'])
|
||||
@@ -68,8 +66,6 @@ foreach (dbFetchRows($query, $param) as $interface)
|
||||
|
||||
if (!$ignore)
|
||||
{
|
||||
if (is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
|
||||
|
||||
$speed = humanspeed($interface['ifSpeed']);
|
||||
$type = humanmedia($interface['ifType']);
|
||||
|
||||
@@ -84,14 +80,12 @@ foreach (dbFetchRows($query, $param) as $interface)
|
||||
{
|
||||
$interface = ifLabel ($interface, $interface);
|
||||
|
||||
echo('<tr bgcolor="' . $row_colour . '">
|
||||
echo('<tr class="search">
|
||||
<td class="list-bold">' . generate_device_link($interface) . '</td>
|
||||
<td class="list-bold">' . generate_port_link($interface) . ' ' . $error_img . '</td>
|
||||
<td>' . $interface['ipv4_address'] . '/'.$length.'</td>
|
||||
<td>' . $interface['ifAlias'] . "</td>
|
||||
</tr>\n");
|
||||
|
||||
$row++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -55,8 +55,6 @@ $query .= " ORDER BY A.ipv6_address";
|
||||
|
||||
echo('<tr class="tablehead"><th>Device</a></th><th>Interface</th><th>Address</th><th>Description</th></tr>');
|
||||
|
||||
$row = 1;
|
||||
|
||||
foreach (dbFetchRows($query, $param) as $interface)
|
||||
{
|
||||
if ($_POST['address'])
|
||||
@@ -68,8 +66,6 @@ foreach (dbFetchRows($query, $param) as $interface)
|
||||
|
||||
if (!$ignore)
|
||||
{
|
||||
if (is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
|
||||
|
||||
$speed = humanspeed($interface['ifSpeed']);
|
||||
$type = humanmedia($interface['ifType']);
|
||||
|
||||
@@ -84,14 +80,12 @@ foreach (dbFetchRows($query, $param) as $interface)
|
||||
{
|
||||
$interface = ifLabel ($interface, $interface);
|
||||
|
||||
echo('<tr bgcolor="' . $row_colour . '">
|
||||
echo('<tr class="search">
|
||||
<td class="list-bold">' . generate_device_link($interface) . '</td>
|
||||
<td class="list-bold">' . generate_port_link($interface, makeshortif(fixifname($interface['ifDescr']))) . ' ' . $error_img . '</td>
|
||||
<td>' . Net_IPv6::compress($interface['ipv6_address']) . '/'.$length.'</td>
|
||||
<td>' . $interface['ifAlias'] . "</td>
|
||||
</tr>\n");
|
||||
|
||||
$row++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -56,14 +56,10 @@ if ($_POST['interface'])
|
||||
$query .= " ORDER BY P.ifPhysAddress";
|
||||
|
||||
echo('<tr class="tablehead"><th>Device</a></th><th>Interface</th><th>MAC Address</th><th>Description</th></tr>');
|
||||
$row = 1;
|
||||
foreach (dbFetchRows($query, $param) as $entry)
|
||||
{
|
||||
|
||||
if (!$ignore)
|
||||
{
|
||||
if (is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
|
||||
|
||||
$speed = humanspeed($entry['ifSpeed']);
|
||||
$type = humanmedia($entry['ifType']);
|
||||
|
||||
@@ -76,14 +72,12 @@ foreach (dbFetchRows($query, $param) as $entry)
|
||||
{
|
||||
$interface = ifLabel ($interface, $interface);
|
||||
|
||||
echo('<tr bgcolor="' . $row_colour . '">
|
||||
echo('<tr class="search">
|
||||
<td class="list-bold">' . generate_device_link($entry) . '</td>
|
||||
<td class="list-bold">' . generate_port_link($entry, makeshortif(fixifname($entry['ifDescr']))) . ' ' . $error_img . '</td>
|
||||
<td>' . formatMac($entry['ifPhysAddress']) . '</td>
|
||||
<td>' . $entry['ifAlias'] . "</td>
|
||||
</tr>\n");
|
||||
|
||||
$row++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user