summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-05 01:29:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-05 01:29:19 +0000
commit411528e9713b6b618ca59e2c70e08a2d0007df11 (patch)
tree25a47bc084d0d6a0989c824c5a5c23d94c632a92 /etc
parent93573134560d4001b866ad1fc7eb5fd0ade887c6 (diff)
downloadpfsense-411528e9713b6b618ca59e2c70e08a2d0007df11.zip
pfsense-411528e9713b6b618ca59e2c70e08a2d0007df11.tar.gz
Allow display_topbar paramaters:
replace color, background color and rounding style
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 3337a2c..0decd70 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -930,10 +930,11 @@ function get_disk_info() {
* RESULT
* null
******/
-function display_topbar($text = "") {
+function display_topbar($text = "", $bg_color="#990000", $replace_color="#FFFFFF", $rounding_style="smooth") {
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 " <td width='100%' valign='top' color='{$bg_color}' bgcolor='{$bg_color}'>";
+ echo " <div id='topbar'></div></td>\n";
echo " </tr>\n";
echo " <tr height='1'>\n";
if ($text != "")
@@ -942,11 +943,10 @@ function display_topbar($text = "") {
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 "Rounded(\"div#topbar\",\"top\",\"{$replace_color}\",\"{$bg_color}\",\"{$rounding_style}\");\n";
echo "</script>";
}
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud