summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_rules.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-02 01:49:41 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-02 01:49:41 +0000
commit0366b748feb91380ec874f7bf2ed64c250c9c2c9 (patch)
tree932086ca1103917d41173da8f966c587779499a4 /usr/local/www/firewall_rules.php
parent6eb1764727c45ad387f0409354bfa3345bc6b2d9 (diff)
downloadpfsense-0366b748feb91380ec874f7bf2ed64c250c9c2c9.zip
pfsense-0366b748feb91380ec874f7bf2ed64c250c9c2c9.tar.gz
Add rounded tabs to add. Fix bottom rounded area.
Diffstat (limited to 'usr/local/www/firewall_rules.php')
-rwxr-xr-xusr/local/www/firewall_rules.php29
1 files changed, 21 insertions, 8 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php
index bf9dbda..fb3abc9 100755
--- a/usr/local/www/firewall_rules.php
+++ b/usr/local/www/firewall_rules.php
@@ -165,15 +165,28 @@ if (isset($_POST['del_x'])) {
<?php endif; ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td class="tabnavtbl">
+
+
+
+ $tab_array = array();
+ $tab_array[0] = array("Inbound", true, "firewall_nat.php");
+ $tab_array[1] = array("Server NAT", false, "firewall_nat_server.php");
+ display_top_tabs($tab_array);
+
+
<ul id="tabnav">
-<?php $i = 0; foreach ($iflist as $ifent => $ifname):
- if ($ifent == $if): ?>
- <li class="tabact"><?=htmlspecialchars($ifname);?></li>
-<?php else: ?>
- <li class="<?php if ($i == 0) echo "tabinact1"; else echo "tabinact";?>"><a href="firewall_rules.php?if=<?=$ifent;?>"><?=htmlspecialchars($ifname);?></a></li>
-<?php endif; ?>
-<?php $i++; endforeach; ?>
- </ul>
+ <?php
+ /* active tabs */
+ $tab_array = array();
+ $tabscounter = 0; $i = 0; foreach ($iflist as $ifent => $ifname) {
+ if ($ifent == $if)
+ $active = true;
+ else
+ $active = false;
+ $tab_array[] = array($ifname, $active, "firewall_rules.php?if={$ifent}");
+ }
+ display_top_tabs($tab_array);
+ ?>
</td></tr>
<tr>
<td class="tabcont">
OpenPOWER on IntegriCloud