diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2004-12-10 20:47:15 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2004-12-10 20:47:15 +0000 |
commit | 845dc7ed7f60c5925557698b6b98ab8137133728 (patch) | |
tree | 206f99324d5296dafd38bdf4c8bc8bae8a7cc209 /usr/local | |
parent | 9cdb5e4c0cd5347ddfa666a001799895703d2527 (diff) | |
download | pfsense-845dc7ed7f60c5925557698b6b98ab8137133728.zip pfsense-845dc7ed7f60c5925557698b6b98ab8137133728.tar.gz |
Make all tabs look similar when active or inactive.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/firewall_shaper_queues.php | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/usr/local/www/firewall_shaper_queues.php b/usr/local/www/firewall_shaper_queues.php index 5083402..445f6c7 100755 --- a/usr/local/www/firewall_shaper_queues.php +++ b/usr/local/www/firewall_shaper_queues.php @@ -40,6 +40,12 @@ if (!is_array($config['pfqueueing']['queue'])) { $a_queues = &$config['pfqueueing']['queue']; $a_pipe = &$config['pfqueueing']['pipe']; +$iflist = array("lan" => "LAN", "wan" => "WAN"); + +for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) { + $iflist['opt' . $i] = $config['interfaces']['opt' . $i]['descr']; +} + if ($_GET['act'] == "del") { if ($a_queues[$_GET['id']]) { /* check that no rule references this queue */ @@ -93,8 +99,16 @@ if ($_GET['act'] == "del") { <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td> <ul id="tabnav"> - <li class="tabinact"><a href="firewall_rules.php">Rules</a></li> - <li class="tabact">Queues</li> +<?php foreach ($iflist as $ifent => $ifname): + if ($ifent == $if): ?> + <li class="tabinact"><?=htmlspecialchars($ifname);?></li> +<?php else: ?> + <li class="tabinact"><a href="firewall_rules.php?if=<?=$ifent;?>"><?=htmlspecialchars($ifname);?></a></li> +<?php endif; ?> +<?php endforeach; ?> + </ul> + <ul id="tabnav"> + <li class="tabact"><a href="firewall_shaper_queues.php">Queues</a></li> </ul> </td></tr> <tr> |