diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-02 21:50:50 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-02 21:50:50 +0000 |
commit | f0cdf141d181335af5d2378f973a11cad8bd06b0 (patch) | |
tree | 5306e6672fd19ba12532f97d3245d5896aa19a75 /usr/local/www | |
parent | 63586b792f7314114e8f97901d58b0a472b345b1 (diff) | |
download | pfsense-f0cdf141d181335af5d2378f973a11cad8bd06b0.zip pfsense-f0cdf141d181335af5d2378f973a11cad8bd06b0.tar.gz |
Curvify
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/services_dhcp.php | 23 |
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"> |