summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets/widgets
diff options
context:
space:
mode:
authorCharlieMarshall <charlie0440@gmail.com>2014-08-20 12:09:51 +0100
committerCharlieMarshall <charlie0440@gmail.com>2014-08-28 10:41:36 +0100
commitbd9c9cb109ecc1c36c9eb4a320fe50eb6942abe1 (patch)
tree6d9eb26ba52f09a38ed2bad984d686af42a07ff0 /usr/local/www/widgets/widgets
parentbfe9c9e7a3a103ff1b278e5af5f8a7c39051810d (diff)
downloadpfsense-bd9c9cb109ecc1c36c9eb4a320fe50eb6942abe1.zip
pfsense-bd9c9cb109ecc1c36c9eb4a320fe50eb6942abe1.tar.gz
improve/tidy up interfaces widget
Diffstat (limited to 'usr/local/www/widgets/widgets')
-rw-r--r--usr/local/www/widgets/widgets/interfaces.widget.php26
1 files changed, 10 insertions, 16 deletions
diff --git a/usr/local/www/widgets/widgets/interfaces.widget.php b/usr/local/www/widgets/widgets/interfaces.widget.php
index 22b15d9..12d315a 100644
--- a/usr/local/www/widgets/widgets/interfaces.widget.php
+++ b/usr/local/www/widgets/widgets/interfaces.widget.php
@@ -49,7 +49,7 @@ require_once("/usr/local/www/widgets/include/interfaces.inc");
$iswireless = is_interface_wireless($ifdescr);
?>
<tr>
- <td class="vncellt" width="40%">
+ <td class="vncellt" rowspan="2">
<?php
if($ifinfo['ppplink']) {
echo "<img src='./themes/{$g['theme']}/images/icons/icon_3g.gif' alt='3g' />";
@@ -67,39 +67,33 @@ require_once("/usr/local/www/widgets/include/interfaces.inc");
<?=htmlspecialchars($ifname);?></span></u></strong>
<?php
if ($ifinfo['dhcplink'])
- echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(DHCP)";
+ echo "&nbsp;(DHCP)";
?>
</td>
- <td width="60%" class="listr">
- <table width="100%" border="0" cellspacing="0" cellpadding="0" summary="status">
- <tr>
- <?php if($ifinfo['status'] == "up" || $ifinfo['status'] == "associated") { ?>
- <td>
+ <?php if($ifinfo['status'] == "up" || $ifinfo['status'] == "associated") { ?>
+ <td rowspan="2" class="listr" align="center">
<div id="<?php echo $ifname;?>-up" style="display:inline" ><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_interface_up.gif" title="<?=$ifname;?> is up" alt="up" /></div>
</td>
<?php } else if ($ifinfo['status'] == "no carrier") { ?>
- <td>
+ <td rowspan="2" class="listr" align="center">
<div id="<?php echo $ifname;?>-down" style="display:inline" ><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_interface_down.gif" title="<?=$ifname;?> is down" alt="down" /></div>
</td>
<?php } else if ($ifinfo['status'] == "down") { ?>
- <td>
+ <td rowspan="2" class="listr" align="center">
<div id="<?php echo $ifname;?>-block" style="display:inline" ><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_block.gif" title="<?=$ifname;?> is disabled" alt="disabled" /></div>
</td>
<?php } else { ?><?=htmlspecialchars($ifinfo['status']); }?>
- <td>
+ <td class="listr">
<div id="<?php echo $ifname;?>-media" style="display:inline"><?=htmlspecialchars($ifinfo['media']);?></div>
</td>
</tr>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0" summary="summary">
<tr>
- <td class="vncellt" width="100%">
+ <td class="listr"><b>
<div id="<?php echo $ifname;?>-ip" style="display:inline"><?=htmlspecialchars($ifinfo['ipaddr']);?> </div>
<br />
<div id="<?php echo $ifname;?>-ipv6" style="display:inline"><?=htmlspecialchars($ifinfo['ipaddrv6']);?> </div>
- </td>
+ </b></td>
</tr>
- </table>
- </td></tr>
+ </tr>
<?php }//end for each ?>
</table>
OpenPOWER on IntegriCloud