summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-02 21:50:50 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-02 21:50:50 +0000
commitf0cdf141d181335af5d2378f973a11cad8bd06b0 (patch)
tree5306e6672fd19ba12532f97d3245d5896aa19a75 /usr
parent63586b792f7314114e8f97901d58b0a472b345b1 (diff)
downloadpfsense-f0cdf141d181335af5d2378f973a11cad8bd06b0.zip
pfsense-f0cdf141d181335af5d2378f973a11cad8bd06b0.tar.gz
Curvify
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/services_dhcp.php23
1 files changed, 14 insertions, 9 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index 218158d..e89cac3 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -203,15 +203,20 @@ function enable_change(enable_over) {
<?php endif; ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td>
- <ul id="tabnav">
-<?php foreach ($iflist as $ifent => $ifname):
- if ($ifent == $if): ?>
- <li class="tabact"><?=htmlspecialchars($ifname);?></li>
-<?php else: ?>
- <li class="tabinact"><a href="services_dhcp.php?if=<?=$ifent;?>"><?=htmlspecialchars($ifname);?></a></li>
-<?php endif; ?>
-<?php 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, "services_dhcp.php?if={$ifent}");
+ }
+ display_top_tabs($tab_array);
+ ?>
</td></tr>
<tr>
<td class="tabcont">
OpenPOWER on IntegriCloud