diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-18 17:21:54 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-18 17:21:54 +0000 |
commit | 7c061036a15baa3cec51fedb46f3bfe2a7beee6b (patch) | |
tree | 5ed14c1d114cb6e47181819bc4d48276fa415252 /usr | |
parent | 628b33c1abbb90f1f5885edb8d536f71e3a59a86 (diff) | |
download | pfsense-7c061036a15baa3cec51fedb46f3bfe2a7beee6b.zip pfsense-7c061036a15baa3cec51fedb46f3bfe2a7beee6b.tar.gz |
Add tab code.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/pkg.php | 23 | ||||
-rwxr-xr-x | usr/local/www/pkg_edit.php | 28 |
2 files changed, 49 insertions, 2 deletions
diff --git a/usr/local/www/pkg.php b/usr/local/www/pkg.php index 9b6eec2..8fb38cf 100755 --- a/usr/local/www/pkg.php +++ b/usr/local/www/pkg.php @@ -107,6 +107,27 @@ include("fbegin.inc"); <form action="firewall_nat_out_load_balancing.php" method="post"> <? if($_GET['savemsg'] <> "") $savemsg = $_GET['savemsg']; ?> <?php if ($savemsg) print_info_box($savemsg); ?> + +<?php +if ($pkg['tabs'] <> "") { + echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"; + echo "<tr><td>"; + echo " <ul id=\"tabnav\">"; + foreach($pkg['tabs']['tab'] as $tab) { + $active = "tabinact"; + if(isset($tab['active'])) $active = "tabact"; + $url = ""; + if($tab['url'] <> "") $url = $tab['url']; + if($tab['xml'] <> "") $url = "pkg_edit.php?xml=" . $tab['xml']; + echo "<li class=\"{$active}\"><a href=\"{$url}\">Server NAT</a></li>"; + } + echo " </ul>"; + echo "</td></tr>"; + echo "<tr>"; + echo "<td class=\"tabcont\">"; +} +?> + <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="tabcont"> @@ -123,7 +144,7 @@ include("fbegin.inc"); if($evaledvar) foreach ($evaledvar as $ip) { echo "<tr valign=\"top\">\n"; - if($pkg['adddeleteeditpagefields']['columnitem'] <> "") + if($pkg['adddeleteeditpagefields']['columnitem'] <> "") foreach ($pkg['adddeleteeditpagefields']['columnitem'] as $column) { ?> <td class="listlr"> diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php index c7a83ee..2387685 100755 --- a/usr/local/www/pkg_edit.php +++ b/usr/local/www/pkg_edit.php @@ -111,6 +111,7 @@ if ($_POST) { <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); + ?> <p class="pgtitle"><?=$title?></p> <?php @@ -226,6 +227,26 @@ $config = $config_tmp; <br> +<?php +if ($pkg['tabs'] <> "") { + echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"; + echo "<tr><td>"; + echo " <ul id=\"tabnav\">"; + foreach($pkg['tabs']['tab'] as $tab) { + $active = "tabinact"; + if(isset($tab['active'])) $active = "tabact"; + $url = ""; + if($tab['url'] <> "") $url = $tab['url']; + if($tab['xml'] <> "") $url = "pkg_edit.php?xml=" . $tab['xml']; + echo "<li class=\"{$active}\"><a href=\"{$url}\">Server NAT</a></li>"; + } + echo " </ul>"; + echo "</td></tr>"; + echo "<tr>"; + echo "<td class=\"tabcont\">"; +} +?> + <table width="100%" border="0" cellpadding="6" cellspacing="0"> <?php $cols = 0; @@ -455,12 +476,17 @@ $config = $config_tmp; </tr> </table> +<?php +if ($pkg['tabs'] <> "") { + echo "</td></tr></table>"; +} +?> + </form> <?php include("fend.inc"); ?> </body> </html> - <?php /* |