diff options
author | Renato Botelho <garga@pfSense.org> | 2014-02-14 07:33:13 -0200 |
---|---|---|
committer | Renato Botelho <garga@pfSense.org> | 2014-02-14 07:33:13 -0200 |
commit | 7d437401c8dd09c16c850a0a0b65df4617ff3c96 (patch) | |
tree | b9f2cdb5e2998505beef703e2fa4fcdd19366004 | |
parent | bbec4947e0641e49369d56ef0631f47a554cb688 (diff) | |
parent | d6e588368fadbdebed70f76a355cb4643a10286f (diff) | |
download | pfsense-7d437401c8dd09c16c850a0a0b65df4617ff3c96.zip pfsense-7d437401c8dd09c16c850a0a0b65df4617ff3c96.tar.gz |
Merge pull request #916 from N0YB/RELENG_2_1
XHTML Compliance
-rwxr-xr-x | usr/local/www/status_dhcp_leases.php | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/usr/local/www/status_dhcp_leases.php b/usr/local/www/status_dhcp_leases.php index b7624d8..58000a6 100755 --- a/usr/local/www/status_dhcp_leases.php +++ b/usr/local/www/status_dhcp_leases.php @@ -323,7 +323,6 @@ foreach ($pools as $data) { } ?> -<p> <table class="tabcont sortable" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> @@ -377,9 +376,9 @@ foreach ($leases as $data) { $mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]); if ($data['online'] != "online") { if(isset($mac_man[$mac_hi])){ // Manufacturer for this MAC is defined - echo "<td class=\"listr\">{$fspans}<a href=\"services_wol.php?if={$data['if']}&mac=$mac\" title=\"" . gettext("$mac - send Wake on LAN packet to this MAC address") ."\">{$mac}</a><br/><font size=\"-2\"><i>{$mac_man[$mac_hi]}</i></font>{$fspane} </td>\n"; + echo "<td class=\"listr\">{$fspans}<a href=\"services_wol.php?if={$data['if']}&mac=$mac\" title=\"" . gettext("$mac - send Wake on LAN packet to this MAC address") ."\">{$mac}</a><br/><font size=\"-2\"><i>{$mac_man[$mac_hi]}</i></font>{$fspane} </td>\n"; }else{ - echo "<td class=\"listr\">{$fspans}<a href=\"services_wol.php?if={$data['if']}&mac={$data['mac']}\" title=\"" . gettext("send Wake on LAN packet to this MAC address") ."\">{$data['mac']}</a>{$fspane} </td>\n"; + echo "<td class=\"listr\">{$fspans}<a href=\"services_wol.php?if={$data['if']}&mac={$data['mac']}\" title=\"" . gettext("send Wake on LAN packet to this MAC address") ."\">{$data['mac']}</a>{$fspane} </td>\n"; } }else{ if(isset($mac_man[$mac_hi])){ // Manufacturer for this MAC is defined @@ -400,20 +399,20 @@ foreach ($leases as $data) { echo "<td class=\"listr\">{$fspans}{$data['act']}{$fspane} </td>\n"; if ($data['type'] == "dynamic") { - echo "<td valign=\"middle\"><a href=\"services_dhcp_edit.php?if={$data['if']}&mac={$data['mac']}&hostname={$data['hostname']}\">"; - echo "<img src=\"/themes/{$g['theme']}/images/icons/icon_plus.gif\" width=\"17\" height=\"17\" border=\"0\" title=\"" . gettext("add a static mapping for this MAC address") ."\"></a></td>\n"; + echo "<td valign=\"middle\"><a href=\"services_dhcp_edit.php?if={$data['if']}&mac={$data['mac']}&hostname={$data['hostname']}\">"; + echo "<img src=\"/themes/{$g['theme']}/images/icons/icon_plus.gif\" width=\"17\" height=\"17\" border=\"0\" title=\"" . gettext("add a static mapping for this MAC address") ."\" alt=\"\"/></a></td>\n"; } else { echo "<td class=\"list\" valign=\"middle\">"; - echo "<img src=\"/themes/{$g['theme']}/images/icons/icon_plus_mo.gif\" width=\"17\" height=\"17\" border=\"0\"></td>\n"; + echo "<img src=\"/themes/{$g['theme']}/images/icons/icon_plus_mo.gif\" width=\"17\" height=\"17\" border=\"0\" alt=\"\"/></td>\n"; } - echo "<td valign=\"middle\"><a href=\"services_wol_edit.php?if={$data['if']}&mac={$data['mac']}&descr={$data['hostname']}\">"; - echo "<img src=\"/themes/{$g['theme']}/images/icons/icon_wol_all.gif\" width=\"17\" height=\"17\" border=\"0\" title=\"" . gettext("add a Wake on LAN mapping for this MAC address") ."\"></a></td>\n"; + echo "<td valign=\"middle\"><a href=\"services_wol_edit.php?if={$data['if']}&mac={$data['mac']}&descr={$data['hostname']}\">"; + echo "<img src=\"/themes/{$g['theme']}/images/icons/icon_wol_all.gif\" width=\"17\" height=\"17\" border=\"0\" title=\"" . gettext("add a Wake on LAN mapping for this MAC address") ."\" alt=\"\"/></a></td>\n"; /* Only show the button for offline dynamic leases */ if (($data['type'] == "dynamic") && ($data['online'] != "online")) { - echo "<td class=\"list\" valign=\"middle\"><a href=\"status_dhcp_leases.php?deleteip={$data['ip']}&all=" . htmlspecialchars($_GET['all']) . "\">"; - echo "<img src=\"/themes/{$g['theme']}/images/icons/icon_x.gif\" width=\"17\" height=\"17\" border=\"0\" title=\"" . gettext("delete this DHCP lease") . "\"></a></td>\n"; + echo "<td class=\"list\" valign=\"middle\"><a href=\"status_dhcp_leases.php?deleteip={$data['ip']}&all=" . htmlspecialchars($_GET['all']) . "\">"; + echo "<img src=\"/themes/{$g['theme']}/images/icons/icon_x.gif\" width=\"17\" height=\"17\" border=\"0\" title=\"" . gettext("delete this DHCP lease") . "\" alt=\"\"/></a></td>\n"; } echo "</tr>\n"; } @@ -421,15 +420,15 @@ foreach ($leases as $data) { ?> </table> -<p> + <form action="status_dhcp_leases.php" method="get"> -<input type="hidden" name="order" value="<?=htmlspecialchars($_GET['order']);?>"> +<input type="hidden" name="order" value="<?=htmlspecialchars($_GET['order']);?>"/> <?php if ($_GET['all']): ?> -<input type="hidden" name="all" value="0"> -<input type="submit" class="formbtn" value="<?=gettext("Show active and static leases only"); ?>"> +<input type="hidden" name="all" value="0"/> +<input type="submit" class="formbtn" value="<?=gettext("Show active and static leases only"); ?>"/> <?php else: ?> -<input type="hidden" name="all" value="1"> -<input type="submit" class="formbtn" value="<?=gettext("Show all configured leases"); ?>"> +<input type="hidden" name="all" value="1"/> +<input type="submit" class="formbtn" value="<?=gettext("Show all configured leases"); ?>"/> <?php endif; ?> </form> <?php if($leases == 0): ?> |