summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-18 17:21:54 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-18 17:21:54 +0000
commit7c061036a15baa3cec51fedb46f3bfe2a7beee6b (patch)
tree5ed14c1d114cb6e47181819bc4d48276fa415252 /usr
parent628b33c1abbb90f1f5885edb8d536f71e3a59a86 (diff)
downloadpfsense-7c061036a15baa3cec51fedb46f3bfe2a7beee6b.zip
pfsense-7c061036a15baa3cec51fedb46f3bfe2a7beee6b.tar.gz
Add tab code.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/pkg.php23
-rwxr-xr-xusr/local/www/pkg_edit.php28
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;
&nbsp;<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
/*
OpenPOWER on IntegriCloud