From a5ab2196c3a18d0ea531e2a0c2f4b55a3e2fd581 Mon Sep 17 00:00:00 2001
From: Scott Ullrich
Date: Wed, 29 Oct 2008 23:48:05 +0000
Subject: Allow alert box to be themed
---
usr/local/www/guiconfig.inc | 31 ++++++++++++++++++---------
usr/local/www/themes/metallic/all.css | 24 +++++++++++++++++++++
usr/local/www/themes/nervecenter/all.css | 24 +++++++++++++++++++++
usr/local/www/themes/pfsense-dropdown/all.css | 25 +++++++++++++++++++++
usr/local/www/themes/pfsense/all.css | 25 +++++++++++++++++++++
usr/local/www/themes/the_wall/all.css | 24 +++++++++++++++++++++
6 files changed, 143 insertions(+), 10 deletions(-)
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index bc89710..d2d4caa 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -231,17 +231,28 @@ function do_input_validation($postdata, $reqdfields, $reqdfieldsn, $input_errors
function print_input_errors($input_errors) {
global $g;
- echo "\n";
- echo " | \n";
- echo "";
- echo " The following input errors were detected: \n";
- foreach ($input_errors as $ierr) {
- echo "- " . htmlspecialchars($ierr) . "
\n";
- }
- echo " ";
-
- echo " |
";
+ print <<
+
+
+
+
+ |
+
+
+ The following input errors were detected:
+
+
+ - =htmlspecialchars($ierr)?>
+
+
+
+ |
+
+
+EOF;
+
}
function exec_rc_script($scriptname) {
diff --git a/usr/local/www/themes/metallic/all.css b/usr/local/www/themes/metallic/all.css
index b70ac29..853c977 100644
--- a/usr/local/www/themes/metallic/all.css
+++ b/usr/local/www/themes/metallic/all.css
@@ -4,6 +4,30 @@ html, body, td, th, input, select {
font-size: 0.9em;
}
+.alertboxleft {
+ background-color: #990000;
+ color: #000000;
+ font-size: 11px;
+ padding-top: 1px;
+ padding-bottom: 1px;
+ padding-right: 1px;
+ padding-left: 1px;
+ width: 36px;
+ align: center;
+ valign: center;
+}
+
+.alertboxright {
+ background-color: #FFD9D1;
+ color: #000000;
+ font-size: 11px;
+ padding-left: 8px;
+ padding-top: 6px;
+ width: 36px;
+ align: center;
+ valign: center;
+}
+
/* DOM Tooltip CSS definitions */
div.niceTitle
{
diff --git a/usr/local/www/themes/nervecenter/all.css b/usr/local/www/themes/nervecenter/all.css
index 61f3382..3b3b0e1 100644
--- a/usr/local/www/themes/nervecenter/all.css
+++ b/usr/local/www/themes/nervecenter/all.css
@@ -5,6 +5,30 @@ html, body, td, th, input, select {
}
+.alertboxleft {
+ background-color: #990000;
+ color: #000000;
+ font-size: 11px;
+ padding-top: 1px;
+ padding-bottom: 1px;
+ padding-right: 1px;
+ padding-left: 1px;
+ width: 36px;
+ align: center;
+ valign: center;
+}
+
+.alertboxright {
+ background-color: #FFD9D1;
+ color: #000000;
+ font-size: 11px;
+ padding-left: 8px;
+ padding-top: 6px;
+ width: 36px;
+ align: center;
+ valign: center;
+}
+
div.GraphLink {
position: relative;
}
diff --git a/usr/local/www/themes/pfsense-dropdown/all.css b/usr/local/www/themes/pfsense-dropdown/all.css
index 9d6b399..b549cfa 100644
--- a/usr/local/www/themes/pfsense-dropdown/all.css
+++ b/usr/local/www/themes/pfsense-dropdown/all.css
@@ -3,6 +3,31 @@ html, body, td, th, input, select {
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
font-size: 0.9em;
}
+
+.alertboxleft {
+ background-color: #990000;
+ color: #000000;
+ font-size: 11px;
+ padding-top: 1px;
+ padding-bottom: 1px;
+ padding-right: 1px;
+ padding-left: 1px;
+ width: 36px;
+ align: center;
+ valign: center;
+}
+
+.alertboxright {
+ background-color: #FFD9D1;
+ color: #000000;
+ font-size: 11px;
+ padding-left: 8px;
+ padding-top: 6px;
+ width: 36px;
+ align: center;
+ valign: center;
+}
+
form {
margin: 0px;
}
diff --git a/usr/local/www/themes/pfsense/all.css b/usr/local/www/themes/pfsense/all.css
index e529a26..bfd23ba 100644
--- a/usr/local/www/themes/pfsense/all.css
+++ b/usr/local/www/themes/pfsense/all.css
@@ -3,6 +3,31 @@ html, body, td, th, input, select {
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
font-size: 0.9em;
}
+
+.alertboxleft {
+ background-color: #990000;
+ color: #000000;
+ font-size: 11px;
+ padding-top: 1px;
+ padding-bottom: 1px;
+ padding-right: 1px;
+ padding-left: 1px;
+ width: 36px;
+ align: center;
+ valign: center;
+}
+
+.alertboxright {
+ background-color: #FFD9D1;
+ color: #000000;
+ font-size: 11px;
+ padding-left: 8px;
+ padding-top: 6px;
+ width: 36px;
+ align: center;
+ valign: center;
+}
+
form {
margin: 0px;
}
diff --git a/usr/local/www/themes/the_wall/all.css b/usr/local/www/themes/the_wall/all.css
index 9cf0c71..111cd9f 100644
--- a/usr/local/www/themes/the_wall/all.css
+++ b/usr/local/www/themes/the_wall/all.css
@@ -5,6 +5,30 @@ html, body, td, th, input, select {
}
+.alertboxleft {
+ background-color: #990000;
+ color: #000000;
+ font-size: 11px;
+ padding-top: 1px;
+ padding-bottom: 1px;
+ padding-right: 1px;
+ padding-left: 1px;
+ width: 36px;
+ align: center;
+ valign: center;
+}
+
+.alertboxright {
+ background-color: #FFD9D1;
+ color: #000000;
+ font-size: 11px;
+ padding-left: 8px;
+ padding-top: 6px;
+ width: 36px;
+ align: center;
+ valign: center;
+}
+
div.GraphLink {
position: relative;
}
--
cgit v1.1