summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorsbeaver <sbeaver@netgate.com>2015-04-17 17:44:25 -0400
committersbeaver <sbeaver@netgate.com>2015-04-17 17:44:25 -0400
commit63f37d5fc356608a96aac1986a14c5c7cb0581b7 (patch)
tree9f3fd17d4dd61a85a8a580146de3ebc87e70927e /usr
parentf4bda8a5015a61729fcebab9e0925984c836fcb3 (diff)
downloadpfsense-63f37d5fc356608a96aac1986a14c5c7cb0581b7.zip
pfsense-63f37d5fc356608a96aac1986a14c5c7cb0581b7.tar.gz
Revised per SvL comments
Thank you.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/diag_ndp.php85
1 files changed, 41 insertions, 44 deletions
diff --git a/usr/local/www/diag_ndp.php b/usr/local/www/diag_ndp.php
index bbae511..376f075 100644
--- a/usr/local/www/diag_ndp.php
+++ b/usr/local/www/diag_ndp.php
@@ -109,50 +109,47 @@ include("head.inc");
?>
-
-<div class="panel panel-default">
- <div class="table-responsive">
- <table class="table table-striped table-hover" summary="tabcont">
- <thead>
- <tr class="info">
- <th><?= gettext("IPv6 address"); ?></th>
- <th><?= gettext("MAC address"); ?></th>
- <th><?= gettext("Hostname"); ?></th>
- <th><?= gettext("Interface"); ?></th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($data as $entry): ?>
- <tr>
- <td><?=$entry['ipv6']?>
- </td>
- <td>
- <?php
- $mac=trim($entry['mac']);
- $mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]);
- print $mac;
- if(isset($mac_man[$mac_hi])){ print "<br /><font size=\"-2\"><i>{$mac_man[$mac_hi]}</i></font>"; }
- ?>
- </td>
- <td>
- <?php
- echo "&nbsp;". str_replace("Z_ ", "", $entry['dnsresolve']);
- ?>
- </td>
- <td>
- <?php
- if(isset($hwif[$entry['interface']]))
- echo $hwif[$entry['interface']];
- else
- echo $entry['interface'];
- ?>
- </td>
- </tr>
- <?php endforeach; ?>
- </tbody>
- </table>
- </div>
+<div class="table-responsive">
+ <table class="table table-striped table-hover">
+ <thead>
+ <tr class="info">
+ <th><?= gettext("IPv6 address"); ?></th>
+ <th><?= gettext("MAC address"); ?></th>
+ <th><?= gettext("Hostname"); ?></th>
+ <th><?= gettext("Interface"); ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <?php foreach ($data as $entry): ?>
+ <tr>
+ <td><?=$entry['ipv6']?>
+ </td>
+ <td>
+ <?php
+ $mac=trim($entry['mac']);
+ $mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]);
+ print $mac;
+ if(isset($mac_man[$mac_hi]))
+ print "<br />{$mac_man[$mac_hi]}";
+ ?>
+ </td>
+ <td>
+ <?php
+ echo "&nbsp;". str_replace("Z_ ", "", $entry['dnsresolve']);
+ ?>
+ </td>
+ <td>
+ <?php
+ if(isset($hwif[$entry['interface']]))
+ echo $hwif[$entry['interface']];
+ else
+ echo $entry['interface'];
+ ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </tbody>
+ </table>
</div>
<?php include("foot.inc"); ?>
OpenPOWER on IntegriCloud