diff msitegen.inc.php @ 349:61c4dda0ec03

New message/confirmation boxes code done in JS + CSS instead of relying on the browser's internal ones.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 02 Dec 2013 05:52:29 +0200
parents 49094cfbd674
children 7e906c827e68
line wrap: on
line diff
--- a/msitegen.inc.php	Mon Dec 02 05:51:38 2013 +0200
+++ b/msitegen.inc.php	Mon Dec 02 05:52:29 2013 +0200
@@ -66,9 +66,11 @@
     
   if ($errorSet)
   {
-    echo "Following errors occured:\n";
+    echo "<h1>Following errors occured</h1>\n".
+      "<ul>\n";
     foreach ($errorMsgs as $msg)
-      echo " - ".$msg."\n";
+      echo " <li>".chentities($msg)."</li>\n";
+    echo "</ul>\n";
   }
 }
 
@@ -623,6 +625,8 @@
     require_once $pageUrchin;
   else
     require_once "urchin.inc.php";
+
+  echo "<div id=\"messageBox\"></div>\n";
   
   if ($useContents)
     echo "<div id=\"contents\">\n";