summaryrefslogtreecommitdiffstats
path: root/usr/local/www/guiconfig.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-07-14 17:36:26 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-07-14 17:36:26 -0400
commitf31489e5b67f1f0620ed839dc393f7954ffe7840 (patch)
treea8bfdbf5d44d19b8c175894102f1ba81c9512dd6 /usr/local/www/guiconfig.inc
parent067e48abda86617e4629e59f62e43b6fa3c99cc9 (diff)
downloadpfsense-f31489e5b67f1f0620ed839dc393f7954ffe7840.zip
pfsense-f31489e5b67f1f0620ed839dc393f7954ffe7840.tar.gz
Allow overriding the Nifty corners background color
Diffstat (limited to 'usr/local/www/guiconfig.inc')
-rwxr-xr-xusr/local/www/guiconfig.inc12
1 files changed, 8 insertions, 4 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index e27b78b..8680c97 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -278,8 +278,12 @@ function verify_gzip_file($fname) {
}
function print_info_box_np($msg, $name="apply",$value="Apply changes") {
- global $g;
-
+ global $g, $nifty_redbox, $nifty_blackbox, $nifty_background;
+
+ // Set the Nifty background color if one is not set already (defaults to white)
+ if(!$nifty_background)
+ $nifty_background = "#FFF";
+
if(stristr($msg, "apply") != false || stristr($msg, "save") != false || stristr($msg, "create") != false) {
$savebutton = "<td class='infoboxsave'>";
$savebutton .= "<input name=\"{$name}\" type=\"submit\" class=\"formbtn\" id=\"${name}\" value=\"{$value}\">";
@@ -331,8 +335,8 @@ function print_info_box_np($msg, $name="apply",$value="Apply changes") {
</table>
<script type="text/javascript">
NiftyCheck();
- Rounded("div#redbox","all","#FFF","{$nifty_redbox}","smooth");
- Rounded("td#blackbox","all","#FFF","{$nifty_blackbox}","smooth");
+ Rounded("div#redbox","all","#{$nifty_background}","{$nifty_redbox}","smooth");
+ Rounded("td#blackbox","all","#{$nifty_background}","{$nifty_blackbox}","smooth");
</script>
EOFnp;
OpenPOWER on IntegriCloud