summaryrefslogtreecommitdiffstats
path: root/etc/inc
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 /etc/inc
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 'etc/inc')
-rw-r--r--etc/inc/pfsense-utils.inc33
1 files changed, 32 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index acd2277..79dc1d6 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -878,4 +878,35 @@ function get_disk_info() {
// $size, $used, $avail, $cap
}
-?>
+ function display_top_tabs($tab_array) {
+ echo "<table cellpadding='0' cellspacing='0'>\n";
+ echo " <tr height='1'>\n";
+ $tabscounter = 0;
+ foreach ($tab_array as $ta) {
+ if($ta[1] == true) {
+ echo " <td><div id='active'></div></td>\n";
+ } else {
+ echo " <td><div id='deactive{$tabscounter}'></div></td>\n";
+ }
+ $tabscounter++;
+ }
+ echo "</tr>\n";
+ foreach ($tab_array as $ta) {
+ if($ta[1] == true) {
+ echo " <td class='tabact'><B>&nbsp;{$ta[0]}&nbsp;</div></a></td>\n";
+ } else {
+ echo " <td class='tabinact'><B>&nbsp;<a href='{$ta[2]}'><font color='white'>{$ta[0]}</a>&nbsp;</div></a></td>\n";
+ }
+ }
+ echo " </tr>\n";
+ echo "</table>\n";
+
+ echo "<script type=\"text/javascript\">";
+ echo "NiftyCheck();\n";
+ echo "Rounded(\"div#active\",\"top\",\"#FFF\",\"#EEEEEE\",\"smooth\");\n";
+ for($x=0; $x<$tabscounter; $x++)
+ echo "Rounded(\"div#deactive{$x}\",\"top\",\"#FFF\",\"#777777\",\"smooth\");\n";
+ echo "</script>";
+ }
+
+?> \ No newline at end of file
OpenPOWER on IntegriCloud