summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-07-03 18:15:48 +0000
committerBill Marquette <billm@pfsense.org>2005-07-03 18:15:48 +0000
commit305eae3c233dadac95f5a8a4a6282d69acb2cad8 (patch)
tree24c1c092987448d3155ba5e7af8ba7dac878d466
parentb128368a99b46308406b0082effb6dd2fe1e4284 (diff)
downloadpfsense-305eae3c233dadac95f5a8a4a6282d69acb2cad8.zip
pfsense-305eae3c233dadac95f5a8a4a6282d69acb2cad8.tar.gz
display_topbar() - top a table off with rounded edges :)
-rw-r--r--etc/inc/pfsense-utils.inc22
1 files changed, 21 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 74cf0f2..5393928 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -912,5 +912,25 @@ function get_disk_info() {
echo "Rounded(\"div#tabdeactive{$x}\",\"top\",\"#FFF\",\"#777777\",\"smooth\");\n";
echo "</script>";
}
+
+
+function display_topbar($text = "") {
+ echo " <table width='100%' cellpadding='0' cellspacing='0'>\n";
+ echo " <tr height='1'>\n";
+ echo " <td width='100%' valign='top' color='#990000' bgcolor='#990000'><div id='topbar'></div></td>\n";
+ echo " </tr>\n";
+ echo " <tr height='1'>\n";
+ if ($text != "")
+ echo " <td height='1' class='listtopic'>{$text}</td>\n";
+ else
+ echo " <td height='1' class='listtopic'></td>\n";
+ echo " </tr>\n";
+ echo " </table>";
+
+ echo "<script type=\"text/javascript\">";
+ echo "NiftyCheck();\n";
+ echo "Rounded(\"div#topbar\",\"top\",\"#FFFFFF\",\"#990000\",\"smooth\");\n";
+ echo "</script>";
+}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud