summaryrefslogtreecommitdiffstats
path: root/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/pfsense-utils.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