r12892: Add a 'Migrate from Windows' page to our installation section in SWAT.
[kai/samba.git] / swat / esptest / exception.esp
index abea890d987122faa53e90400b4008d9b3bec889..ff28d6318e776241e0687d2b0572c834d6855628 100644 (file)
@@ -1,20 +1,18 @@
-<% page_header("columns", "ESP Exception test"); %>
+<% page_header("columns", "ESP Exception test", "esptest"); 
+   include("/scripting/forms.js");
+%>
 
 <h1>Samba4 exception test</h1>
 
-<form name="ExceptionTest" method="POST" action="@@request['SCRIPT_NAME']"> 
-    <input name="submit" type="submit" value="Generate Exception">
-    <input name="submit" type="submit" value="No Exception">
-    <input name="submit" type="submit" value="Cancel"><br>
-</form>
 
 <%
-if (request['REQUEST_METHOD'] == "POST") {
-       /* if they cancelled then take them back to the list of tests */
-       if (form['submit'] == "Cancel") {
-               redirect("/");
-       }
+var f = FormObj("ExceptionTest", 0, 2);
+f.submit[0] = "Generate Exception";
+f.submit[1] = "No Exception";
 
+f.display();
+
+if (request['REQUEST_METHOD'] == "POST") {
        function TestFunction(arg1, arg2) {
                 return "OK";
        }