summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-02 00:51:35 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-02 00:51:35 +0000
commita8726a3df49b8337744ce4b69bd868de5c51c9bc (patch)
treefa034de928b88eeaf343ec9d68dd60edb8e5c855 /usr/local/www
parent0023ccac8bf6c548e2bda885237e2cead7c77b82 (diff)
downloadpfsense-a8726a3df49b8337744ce4b69bd868de5c51c9bc.zip
pfsense-a8726a3df49b8337744ce4b69bd868de5c51c9bc.tar.gz
* Introduce new function helper for creating smooth tab headers
* Conver firewall -> areas over
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/firewall_nat.php32
-rwxr-xr-xusr/local/www/firewall_nat_1to1.php16
-rwxr-xr-xusr/local/www/firewall_nat_out.php16
-rwxr-xr-xusr/local/www/firewall_nat_server.php16
-rwxr-xr-xusr/local/www/gui.css17
-rwxr-xr-xusr/local/www/head.inc2
-rwxr-xr-xusr/local/www/index.php29
7 files changed, 70 insertions, 58 deletions
diff --git a/usr/local/www/firewall_nat.php b/usr/local/www/firewall_nat.php
index d6b5d2e..2c9e4cb 100755
--- a/usr/local/www/firewall_nat.php
+++ b/usr/local/www/firewall_nat.php
@@ -128,13 +128,8 @@ if (isset($_POST['del_x'])) {
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
-<head>
-<title><?=gentitle("Firewall: NAT: Inbound");?></title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<link href="gui.css" rel="stylesheet" type="text/css">
-</head>
-
-<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
+<?php include("head.inc"); ?>
+<body link="#000000" vlink="#000000" alink="#000000">
<?php include("fbegin.inc"); ?>
<p class="pgtitle">Firewall: NAT: Inbound</font></p>
<form action="firewall_nat.php" method="post" name="iform">
@@ -145,16 +140,19 @@ if (isset($_POST['del_x'])) {
<?php print_info_box_np("The NAT configuration has been changed.<br>You must apply the changes in order for them to take effect.");?><br>
<input name="apply" type="submit" class="formbtn" id="apply" value="Apply changes"></p>
<?php endif; ?>
+<div id="mainarea">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td>
- <ul id="tabnav">
- <li class="tabact">Inbound</a></li>
- <li class="tabinact"><a href="firewall_nat_server.php">Server NAT</a></li>
- <li class="tabinact"><a href="firewall_nat_1to1.php">1:1</a></li>
- <li class="tabinact"><a href="firewall_nat_out.php">Outbound</a></li>
- <li class="tabinact"><a href="firewall_nat_out_load_balancing.php">Outbound Load Balancing</a></li>
- </ul>
- </td></tr>
+<?php
+ $tab_array = array();
+ $tab_array[0] = array("Inbound", true, "firewall_nat.php");
+ $tab_array[1] = array("Server NAT", false, "firewall_nat_server.php");
+ $tab_array[2] = array("1:1", false, "firewall_nat_1to1.php");
+ $tab_array[3] = array("Outbound", false, "firewall_nat_out.php");
+ $tab_array[4] = array("Outgoing Load Balancing", false, "firewall_nat_out_load_balancing.php");
+ display_top_tabs($tab_array);
+?>
+ </td></tr>
<tr>
<td class="tabcont">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
@@ -245,6 +243,7 @@ if (isset($_POST['del_x'])) {
network).</span></p></td>
</tr>
</table>
+</div>
<?php
if ($pkg['tabs'] <> "") {
@@ -254,5 +253,8 @@ if ($pkg['tabs'] <> "") {
</form>
<?php include("fend.inc"); ?>
+
+
+
</body>
</html>
diff --git a/usr/local/www/firewall_nat_1to1.php b/usr/local/www/firewall_nat_1to1.php
index 982f055..5690b7e 100755
--- a/usr/local/www/firewall_nat_1to1.php
+++ b/usr/local/www/firewall_nat_1to1.php
@@ -88,13 +88,15 @@ if ($_GET['act'] == "del") {
<input name="apply" type="submit" class="formbtn" id="apply" value="Apply changes"></p>
<?php endif; ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td>
- <ul id="tabnav">
- <li class="tabinact"><a href="firewall_nat.php">Inbound</a></li>
- <li class="tabinact"><a href="firewall_nat_server.php">Server NAT</a></li>
- <li class="tabact">1:1</li>
- <li class="tabinact"><a href="firewall_nat_out.php">Outbound</a></li>
- <li class="tabinact"><a href="firewall_nat_out_load_balancing.php">Outbound Load Balancing</a></li>
- </ul>
+<?php
+ $tab_array = array();
+ $tab_array[0] = array("Inbound", false, "firewall_nat.php");
+ $tab_array[1] = array("Server NAT", false, "firewall_nat_server.php");
+ $tab_array[2] = array("1:1", true, "firewall_nat_1to1.php");
+ $tab_array[3] = array("Outbound", false, "firewall_nat_out.php");
+ $tab_array[4] = array("Outgoing Load Balancing", false, "firewall_nat_out_load_balancing.php");
+ display_top_tabs($tab_array);
+?>
</td></tr>
<tr>
<td class="tabcont">
diff --git a/usr/local/www/firewall_nat_out.php b/usr/local/www/firewall_nat_out.php
index 1075351..1cb6a13 100755
--- a/usr/local/www/firewall_nat_out.php
+++ b/usr/local/www/firewall_nat_out.php
@@ -193,13 +193,15 @@ if (isset($_POST['del_x'])) {
<input name="apply" type="submit" class="formbtn" id="apply" value="Apply changes"></p>
<?php endif; ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td>
- <ul id="tabnav">
- <li class="tabinact"><a href="firewall_nat.php">Inbound</a></li>
- <li class="tabinact"><a href="firewall_nat_server.php">Server NAT</a></li>
- <li class="tabinact"><a href="firewall_nat_1to1.php">1:1</a></li>
- <li class="tabact">Outbound</li>
- <li class="tabinact"><a href="firewall_nat_out_load_balancing.php">Outbound Load Balancing</a></li>
- </ul>
+<?php
+ $tab_array = array();
+ $tab_array[0] = array("Inbound", false, "firewall_nat.php");
+ $tab_array[1] = array("Server NAT", false, "firewall_nat_server.php");
+ $tab_array[2] = array("1:1", false, "firewall_nat_1to1.php");
+ $tab_array[3] = array("Outbound", true, "firewall_nat_out.php");
+ $tab_array[4] = array("Outgoing Load Balancing", false, "firewall_nat_out_load_balancing.php");
+ display_top_tabs($tab_array);
+?>
</td></tr>
<tr>
<td class="tabcont">
diff --git a/usr/local/www/firewall_nat_server.php b/usr/local/www/firewall_nat_server.php
index 628ef79..585c34f 100755
--- a/usr/local/www/firewall_nat_server.php
+++ b/usr/local/www/firewall_nat_server.php
@@ -101,13 +101,15 @@ if ($_GET['act'] == "del") {
<input name="apply" type="submit" class="formbtn" id="apply" value="Apply changes"></p>
<?php endif; ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td>
- <ul id="tabnav">
- <li class="tabinact"><a href="firewall_nat.php">Inbound</a></li>
- <li class="tabact">Server NAT</li>
- <li class="tabinact"><a href="firewall_nat_1to1.php">1:1</a></li>
- <li class="tabinact"><a href="firewall_nat_out.php">Outbound</a></li>
- <li class="tabinact"><a href="firewall_nat_out_load_balancing.php">Outbound Load Balancing</a></li>
- </ul>
+<?php
+ $tab_array = array();
+ $tab_array[0] = array("Inbound", false, "firewall_nat.php");
+ $tab_array[1] = array("Server NAT", true, "firewall_nat_server.php");
+ $tab_array[2] = array("1:1", false, "firewall_nat_1to1.php");
+ $tab_array[3] = array("Outbound", false, "firewall_nat_out.php");
+ $tab_array[4] = array("Outgoing Load Balancing", false, "firewall_nat_out_load_balancing.php");
+ display_top_tabs($tab_array);
+?>
</td></tr>
<tr>
<td class="tabcont">
diff --git a/usr/local/www/gui.css b/usr/local/www/gui.css
index 0289fa8..dde9565 100755
--- a/usr/local/www/gui.css
+++ b/usr/local/www/gui.css
@@ -312,10 +312,27 @@ ul#tabnav li.tabact {
padding: 5px 8px 5px 8px;
white-space: nowrap;
}
+.tabact {
+ float: left;
+ background-color: #EEEEEE;
+ color: #000000;
+ padding: 5px 8px 5px 8px;
+ white-space: nowrap;
+}
.tabcont {
background-color: #EEEEEE;
padding-right: 12px;
padding-left: 12px;
padding-top: 12px;
padding-bottom: 12px;
+ font-weight: bold;
+}
+.tabinact {
+ font-weight: bold;
+ float: left;
+ border-left: 1px solid #999999;
+ background-color: #777777;
+ color: #FFFFFF;
+ padding: 0;
+ white-space: nowrap;
}
diff --git a/usr/local/www/head.inc b/usr/local/www/head.inc
index 9efd55d..7fe70b7 100755
--- a/usr/local/www/head.inc
+++ b/usr/local/www/head.inc
@@ -3,8 +3,8 @@
<head>
<title><?=gentitle($pgtitle);?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <link href="gui.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="niftycssCode.css">
<link rel="stylesheet" type="text/css" href="niftycssprintCode.css" media="print">
+ <link href="gui.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="niftyjsCode.js"></script>
</head>
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index 7cc3f8c..91d247d 100755
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -140,28 +140,18 @@ function get_pfstate() {
return $curentries . $maxstates;
}
-?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<title><?=gentitle("pfSense webGUI");?></title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<link href="gui.css" rel="stylesheet" type="text/css">
-</head>
+$pgtitle = "pfSense webGUI";
+/* include header and other code */
+include("head.inc");
+?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<form>
<?php include("fbegin.inc"); ?>
+ <center><img src="logobig.jpg"></center>
<div id="nifty">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr align="center" valign="top">
- <td height="10" colspan="2">&nbsp;</td>
- </tr>
- <tr align="center" valign="top">
- <td colspan="2"><img src="logobig.jpg"></td>
- </tr>
- <tr><td>&nbsp;</td></tr>
+ <table bgcolor="#990000" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" class="listtopic">System information</td>
</tr>
@@ -317,11 +307,8 @@ echo $diskusage . "%";
<?php include("fend.inc"); ?>
<script type="text/javascript">
-window.onload=function(){
-if(!NiftyCheck())
- return;
-Rounded("div#nifty","all","#FFF","#D4DDFF","smooth");
-}
+NiftyCheck();
+Rounded("div#nifty","top","#FFF","#EEEEEE","smooth");
</script>
</form>
OpenPOWER on IntegriCloud