summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-04-27 22:58:37 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-04-27 22:58:37 +0000
commitf852d17b39b61b07f0dad1949dcc6001ab0fb29f (patch)
tree1bcd59be86b030b706c1866c046a36941c71fc77 /usr/local
parent47facba8136b0461745c4629f5ee1ebe90f9f55f (diff)
downloadpfsense-f852d17b39b61b07f0dad1949dcc6001ab0fb29f.zip
pfsense-f852d17b39b61b07f0dad1949dcc6001ab0fb29f.tar.gz
Add tab interface.
MFC: Together with the newly added status_slbd_vs.php this hould make a whole. For 1.2
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/status_slbd_pool.php9
-rwxr-xr-xusr/local/www/status_slbd_vs.php12
2 files changed, 21 insertions, 0 deletions
diff --git a/usr/local/www/status_slbd_pool.php b/usr/local/www/status_slbd_pool.php
index 2025614..a00503c 100755
--- a/usr/local/www/status_slbd_pool.php
+++ b/usr/local/www/status_slbd_pool.php
@@ -53,6 +53,15 @@ include("head.inc");
<?php include("fbegin.inc"); ?>
<p class="pgtitle"><?=$pgtitle?></p>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
+ <tr><td class="tabnavtbl">
+ <?php
+ /* active tabs */
+ $tab_array = array();
+ $tab_array[] = array("Pools", true, "status_slbd_pool.php");
+ $tab_array[] = array("Virtual Servers", false, "status_slbd_vs.php");
+ display_top_tabs($tab_array);
+ ?>
+ </td></tr>
<tr>
<td>
<div id="mainarea">
diff --git a/usr/local/www/status_slbd_vs.php b/usr/local/www/status_slbd_vs.php
index bed96e5..f87c9db 100755
--- a/usr/local/www/status_slbd_vs.php
+++ b/usr/local/www/status_slbd_vs.php
@@ -34,6 +34,9 @@ require("guiconfig.inc");
if (!is_array($config['load_balancer']['lbpool'])) {
$config['load_balancer']['lbpool'] = array();
}
+if (!is_array($config['load_balancer']['virtual_server'])) {
+ $config['load_balancer']['virtual_server'] = array();
+}
$a_vs = &$config['load_balancer']['virtual_server'];
$a_pool = &$config['load_balancer']['lbpool'];
@@ -54,6 +57,15 @@ include("head.inc");
<?php include("fbegin.inc"); ?>
<p class="pgtitle"><?=$pgtitle?></p>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
+ <tr><td class="tabnavtbl">
+ <?php
+ /* active tabs */
+ $tab_array = array();
+ $tab_array[] = array("Pools", false, "status_slbd_pool.php");
+ $tab_array[] = array("Virtual Servers", true, "status_slbd_vs.php");
+ display_top_tabs($tab_array);
+ ?>
+ </td></tr>
<tr>
<td>
<div id="mainarea">
OpenPOWER on IntegriCloud