diff options
author | Colin Fleming <cj_fleming@sky.com> | 2013-05-01 19:17:56 +0100 |
---|---|---|
committer | Colin Fleming <cj_fleming@sky.com> | 2013-05-01 19:17:56 +0100 |
commit | 2cd8afb79908c90870bf5fa8b7caf6a2de32bb6d (patch) | |
tree | c32c2e3ec07aae7cd4d642d1f9a8502b3927fe84 /usr/local | |
parent | dfe2769c46d6f1a5fb29218e902901ea3ea080cb (diff) | |
download | pfsense-2cd8afb79908c90870bf5fa8b7caf6a2de32bb6d.zip pfsense-2cd8afb79908c90870bf5fa8b7caf6a2de32bb6d.tar.gz |
Tidy up "firewall_nat_1to1.php" XHTML
Close BR and IMG tags and add ALT to IMG tags
Move NOWRAP to class statement
Deprecate ampersand in ANCHOR tags
Replace opening TR tag with closing TR tag
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/firewall_nat_1to1.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/usr/local/www/firewall_nat_1to1.php b/usr/local/www/firewall_nat_1to1.php index 0582269..e682d22 100755 --- a/usr/local/www/firewall_nat_1to1.php +++ b/usr/local/www/firewall_nat_1to1.php @@ -83,10 +83,10 @@ include("head.inc"); <?php include("fbegin.inc"); ?> <form action="firewall_nat_1to1.php" method="post"> <?php if ($savemsg) print_info_box($savemsg); ?> -<?php if (is_subsystem_dirty('natconf')): ?><p> -<?php print_info_box_np(gettext("The NAT configuration has been changed") . ".<br>" . gettext("You must apply the changes in order for them to take effect."));?><br> +<?php if (is_subsystem_dirty('natconf')): ?> +<?php print_info_box_np(gettext("The NAT configuration has been changed") . ".<br/>" . gettext("You must apply the changes in order for them to take effect."));?><br/> <?php endif; ?> -<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td> +<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="fireall nat 1to1"> <tr><td> <?php $tab_array = array(); $tab_array[] = array(gettext("Port Forward"), false, "firewall_nat.php"); @@ -99,7 +99,7 @@ include("head.inc"); <tr> <td> <div id="mainarea"> - <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0"> + <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0" summary="main area"> <tr> <td width="10%" class="listhdrr"><?=gettext("Interface"); ?></td> <td width="20%" class="listhdrr"><?=gettext("External IP"); ?></td> @@ -107,10 +107,10 @@ include("head.inc"); <td width="15%" class="listhdrr"><?=gettext("Destination IP"); ?></td> <td width="30%" class="listhdr"><?=gettext("Description"); ?></td> <td width="10%" class="list"> - <table border="0" cellspacing="0" cellpadding="1"> + <table border="0" cellspacing="0" cellpadding="1" summary="edit"> <tr> <td width="17"></td> - <td valign="middle"><a href="firewall_nat_1to1_edit.php"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0" title="<?=gettext("add rule"); ?>"></a></td> + <td valign="middle"><a href="firewall_nat_1to1_edit.php"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0" title="<?=gettext("add rule"); ?>" alt="add" /></a></td> </tr> </table> </td> @@ -153,11 +153,11 @@ include("head.inc"); <?=htmlspecialchars($natent['descr']);?> <?=$textse;?> </td> - <td class="list" nowrap> - <table border="0" cellspacing="0" cellpadding="1"> + <td class="list nowrap"> + <table border="0" cellspacing="0" cellpadding="1" summary="edit"> <tr> - <td valign="middle"><a href="firewall_nat_1to1_edit.php?id=<?=$i;?>"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0" title="<?=gettext("edit rule"); ?>"></a></td> - <td valign="middle"><a href="firewall_nat_1to1.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this mapping?");?>')"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" title="<?=gettext("delete rule"); ?>"></a></td> + <td valign="middle"><a href="firewall_nat_1to1_edit.php?id=<?=$i;?>"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0" title="<?=gettext("edit rule"); ?>" alt="edit" /></a></td> + <td valign="middle"><a href="firewall_nat_1to1.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this mapping?");?>')"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" title="<?=gettext("delete rule"); ?>" alt="delete" /></a></td> </tr> </table> </td> @@ -166,22 +166,22 @@ include("head.inc"); <tr> <td class="list" colspan="5"></td> <td class="list"> - <table border="0" cellspacing="0" cellpadding="1"> + <table border="0" cellspacing="0" cellpadding="1" summary="add"> <tr> <td width="17"></td> - <td valign="middle"><a href="firewall_nat_1to1_edit.php"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0" title="<?=gettext("add rule"); ?>"></a></td> + <td valign="middle"><a href="firewall_nat_1to1_edit.php"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0" title="<?=gettext("add rule"); ?>" alt="add" /></a></td> </tr> </table> </td> </tr> <tr> <td colspan="5"> - <p><span class="vexpl"><span class="red"><strong><?=gettext("Note:"); ?><br> + <p><span class="vexpl"><span class="red"><strong><?=gettext("Note:"); ?><br/> </strong></span><?=gettext("Depending on the way your WAN connection is setup, you may also need a"); ?> <a href="firewall_virtual_ip.php"><?=gettext("Virtual IP."); ?></a><br/> <?=gettext("If you add a 1:1 NAT entry for any of the interface IPs on this system, it will make this system inaccessible on that IP address. i.e. if " . "you use your WAN IP address, any services on this system (IPsec, OpenVPN server, etc.) using the WAN IP address will no longer function."); ?></span></p> </td> - <tr> + </tr> </table> </div> </td> |