add heading to arp table

git-svn-id: http://www.observium.org/svn/observer/trunk@2318 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-05-14 23:08:16 +00:00
parent 7e16919426
commit 9b29e576bd

View File

@@ -4,6 +4,7 @@ $sql = "SELECT * FROM ipv4_mac AS M, ports AS I WHERE I.interface_id = M.interfa
$query = mysql_query($sql); $query = mysql_query($sql);
echo('<table border="0" cellspacing="0" cellpadding="5" width="100%">'); echo('<table border="0" cellspacing="0" cellpadding="5" width="100%">');
echo('<tr><th>Port</th><th>MAC address</th><th>IPv4 address</th><th>Remote device</th><th>Remote port</th></tr>');
$i = "1"; $i = "1";
@@ -23,8 +24,8 @@ while ($arp = mysql_fetch_assoc($query))
<tr bgcolor=$bg_colour> <tr bgcolor=$bg_colour>
<td width=200><b>".generate_port_link(array_merge($arp, $device))."</b></td> <td width=200><b>".generate_port_link(array_merge($arp, $device))."</b></td>
<td width=160>".formatmac($arp['mac_address'])."</td> <td width=160>".formatmac($arp['mac_address'])."</td>
<td width=140>".$arp['ipv4_address']."</td> <td width=160>".$arp['ipv4_address']."</td>
<td width=200>$arp_name</td> <td width=280>$arp_name</td>
<td>$arp_if</td> <td>$arp_if</td>
</tr>"); </tr>");
$i++; $i++;