diff options
author | Ermal <eri@pfsense.org> | 2010-12-06 12:29:57 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-12-06 12:29:57 +0000 |
commit | 81f4ab8a52d8537c418c791cf6f10e1f0eef714d (patch) | |
tree | 01fc88fc2ef316fbb587a79a8c3309253f6f4489 /usr | |
parent | 5e3a84e295f548b6fb223d30f756244e26c918d3 (diff) | |
download | pfsense-81f4ab8a52d8537c418c791cf6f10e1f0eef714d.zip pfsense-81f4ab8a52d8537c418c791cf6f10e1f0eef714d.tar.gz |
Ticket #1073. Gray out the rules when they are disabled.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_nat_1to1.php | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/usr/local/www/firewall_nat_1to1.php b/usr/local/www/firewall_nat_1to1.php index 94132f2..857ae9a 100755 --- a/usr/local/www/firewall_nat_1to1.php +++ b/usr/local/www/firewall_nat_1to1.php @@ -114,27 +114,39 @@ include("head.inc"); </table> </td> </tr> - <?php $i = 0; foreach ($a_1to1 as $natent): ?> + <?php + if (isset($natent['disabled'])) + $textss = "<span class=\"gray\">"; + else + $textss = "<span>"; + + $textse = "</span>"; + + $i = 0; foreach ($a_1to1 as $natent): ?> <tr> <td class="listlr" ondblclick="document.location='firewall_nat_1to1_edit.php?id=<?=$i;?>';"> <?php + echo $textss; if (!$natent['interface']) echo htmlspecialchars(convert_friendly_interface_to_friendly_descr("wan")); else echo htmlspecialchars(convert_friendly_interface_to_friendly_descr($natent['interface'])); + echo $textse; ?> </td> <td class="listr" ondblclick="document.location='firewall_nat_1to1_edit.php?id=<?=$i;?>';"> - <?php echo $natent['external']; ?> + <?php echo $textss . $natent['external'] . $textse; ?> </td> <td class="listr" ondblclick="document.location='firewall_nat_1to1_edit.php?id=<?=$i;?>';"> - <?php echo pprint_address($natent['source']); ?> + <?php echo $textss . pprint_address($natent['source']). $textse; ?> </td> <td class="listr" ondblclick="document.location='firewall_nat_1to1_edit.php?id=<?=$i;?>';"> - <?php echo pprint_address($natent['destination']); ?> + <?php echo $textss . pprint_address($natent['destination']) . $textse; ?> </td> <td class="listbg" ondblclick="document.location='firewall_nat_1to1_edit.php?id=<?=$i;?>';"> + <?=$textss;?> <?=htmlspecialchars($natent['descr']);?> + <?=$textse;?> </td> <td class="list" nowrap> <table border="0" cellspacing="0" cellpadding="1"> |