diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-10-29 23:48:05 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-10-29 23:48:05 +0000 |
commit | a5ab2196c3a18d0ea531e2a0c2f4b55a3e2fd581 (patch) | |
tree | 0f977cc9f5937bf014dc87119112865413b39950 /usr/local/www/guiconfig.inc | |
parent | 68c97918d0e7c6204139652d0872c4c8348f278b (diff) | |
download | pfsense-a5ab2196c3a18d0ea531e2a0c2f4b55a3e2fd581.zip pfsense-a5ab2196c3a18d0ea531e2a0c2f4b55a3e2fd581.tar.gz |
Allow alert box to be themed
Diffstat (limited to 'usr/local/www/guiconfig.inc')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 31 |
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> <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> <br> +EOF; + } function exec_rc_script($scriptname) { |