summaryrefslogtreecommitdiffstats
path: root/usr/local/www/guiconfig.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-10-29 23:48:05 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-10-29 23:48:05 +0000
commita5ab2196c3a18d0ea531e2a0c2f4b55a3e2fd581 (patch)
tree0f977cc9f5937bf014dc87119112865413b39950 /usr/local/www/guiconfig.inc
parent68c97918d0e7c6204139652d0872c4c8348f278b (diff)
downloadpfsense-a5ab2196c3a18d0ea531e2a0c2f4b55a3e2fd581.zip
pfsense-a5ab2196c3a18d0ea531e2a0c2f4b55a3e2fd581.tar.gz
Allow alert box to be themed
Diffstat (limited to 'usr/local/www/guiconfig.inc')
-rwxr-xr-xusr/local/www/guiconfig.inc31
1 files changed, 21 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 "<p><table border=\"0\" cellspacing=\"0\" cellpadding=\"4\" width=\"100%\">\n";
- echo "<tr><td bgcolor=\"#990000\" width=\"36\" align=\"center\" valign=\"top\"><img src=\"./themes/".$g['theme']."/images/icons/icon_error.gif\" width=\"28\" height=\"32\"></td>\n";
- echo "<td bgcolor=\"#FFD9D1\" style=\"padding-left: 8px; padding-top: 6px\">";
- echo "<span class=\"errmsg\"><p>The following input errors were detected:<ul>\n";
- foreach ($input_errors as $ierr) {
- echo "<li>" . htmlspecialchars($ierr) . "</li>\n";
- }
- echo "</ul></span>";
-
- echo "</td></tr></table></p>&nbsp;<br>";
+ print <<<EOF
+ <p>
+ <table border="0" cellspacing="0" cellpadding="4" width="100%">
+ <tr>
+ <td class="alertboxleft">
+ <img src="./themes/{$g['theme']}/images/icons/icon_error.gif" width="28" height="32">
+ </td>
+ <td class="alertboxright">
+ <span class="errmsg"><p>
+ The following input errors were detected:
+ <ul>
+ <?php foreach ($input_errors as $ierr): ?>
+ <li><?=htmlspecialchars($ierr)?></li>
+ <?php endforeach; ?>
+ </ul>
+ </span>
+ </td></tr>
+ </table>
+ </p>&nbsp;<br>
+EOF;
+
}
function exec_rc_script($scriptname) {
OpenPOWER on IntegriCloud