diff options
author | Jim P <jim@pingle.org> | 2013-03-05 11:30:13 -0800 |
---|---|---|
committer | Jim P <jim@pingle.org> | 2013-03-05 11:30:13 -0800 |
commit | efd60dc4c3c74d6b839fba7e9758079469735f70 (patch) | |
tree | c20c346a8cd67117a5b50705997e7cb0d1c9e822 /usr/local | |
parent | d4a5f36b864d5900a5cd37db1ca10c30bd3600b4 (diff) | |
parent | ebaf7d0567e102d9b574d884a83dfd49be983f26 (diff) | |
download | pfsense-efd60dc4c3c74d6b839fba7e9758079469735f70.zip pfsense-efd60dc4c3c74d6b839fba7e9758079469735f70.tar.gz |
Merge pull request #461 from ExolonDX/branch_32
Tidy up "wol" widget XHTML
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/widgets/widgets/wake_on_lan.widget.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/usr/local/www/widgets/widgets/wake_on_lan.widget.php b/usr/local/www/widgets/widgets/wake_on_lan.widget.php index 598dc1f..6deb74b 100644 --- a/usr/local/www/widgets/widgets/wake_on_lan.widget.php +++ b/usr/local/www/widgets/widgets/wake_on_lan.widget.php @@ -35,12 +35,12 @@ else $wolcomputers = array(); ?> -<table width="100%" border="0" cellpadding="0" cellspacing="0"> +<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="wol status"> <tr> - <? - echo '<td class="widgetsubheader"><b><center>' . gettext("Computer / Device") . '</center></b></td>'; - echo '<td class="widgetsubheader"><b><center>' . gettext("Interface") . '</center></b></td>'; - echo '<td class="widgetsubheader"><b><center>' . gettext("Status") . '</center></b></td>'; + <?php + echo '<td class="widgetsubheader" align="center"><b>' . gettext("Computer / Device") . '</b></td>'; + echo '<td class="widgetsubheader" align="center"><b>' . gettext("Interface") . '</b></td>'; + echo '<td class="widgetsubheader" align="center"><b>' . gettext("Status") . '</b></td>'; ?> <td class="widgetsubheader"> </td> </tr> @@ -53,23 +53,23 @@ if (count($wolcomputers) > 0) { $is_active = exec("/usr/sbin/arp -an |/usr/bin/grep {$wolent['mac']}| /usr/bin/wc -l|/usr/bin/awk '{print $1;}'"); if($is_active == 1) { - echo '<td class="listr"><center>' . "\n"; - echo "<img src=\"/themes/" . $g["theme"] . "/images/icons/icon_pass.gif\"> " . gettext("Online") . "</td>\n"; + echo '<td class="listr" align="center">' . "\n"; + echo "<img src=\"/themes/" . $g["theme"] . "/images/icons/icon_pass.gif\" alt=\"pass\" /> " . gettext("Online") . "</td>\n"; } else { - echo '<td class="listbg"><center>' . "\n"; - echo "<img src=\"/themes/" . $g["theme"] . "/images/icons/icon_block.gif\"> <font color=\"white\">" . gettext("Offline") . "</td>\n"; + echo '<td class="listbg" align="center">' . "\n"; + echo "<img src=\"/themes/" . $g["theme"] . "/images/icons/icon_block.gif\" alt=\"block\" /> <font color=\"white\">" . gettext("Offline") . "</font></td>\n"; } - echo '<td valign="middle" class="list" nowrap>'; + echo '<td valign="middle" class="list nowrap">'; /*if($is_active) { */ /* Will always show wake-up button even if pfsense thinks it is awake */ /* } else { */ - echo "<a href='services_wol.php?mac={$wolent['mac']}&if={$wolent['interface']}'> "; - echo "<img title='" . gettext("Wake Up") . "' border='0' src='./themes/".$g['theme']."/images/icons/icon_wol_all.gif'></a>\n"; + echo "<a href='services_wol.php?mac={$wolent['mac']}&if={$wolent['interface']}'> "; + echo "<img title='" . gettext("Wake Up") . "' border='0' src='./themes/".$g['theme']."/images/icons/icon_wol_all.gif' alt='wol' /></a>\n"; /* } */ echo "</td></tr>\n"; } } else { - echo "<tr><td colspan=\"3\"><center>" . gettext("No saved WoL addresses") . ".</td></tr>\n"; + echo "<tr><td colspan=\"3\" align=\"center\">" . gettext("No saved WoL addresses") . ".</td></tr>\n"; } ?> </table> |