summaryrefslogtreecommitdiff
path: root/swat/esptest/session.esp
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-05-30 08:23:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:15 -0500
commit1bf7a917b2d2ba2806e018ca385e44557c7dbf56 (patch)
tree4605000b5f4197033e94cb0628cb8329394a472b /swat/esptest/session.esp
parent0f7314ea019a42e202346fc429330f1e8dfa9b7d (diff)
downloadsamba-1bf7a917b2d2ba2806e018ca385e44557c7dbf56.tar.gz
samba-1bf7a917b2d2ba2806e018ca385e44557c7dbf56.tar.bz2
samba-1bf7a917b2d2ba2806e018ca385e44557c7dbf56.zip
r7094: use the Form() object in a few more places
(This used to be commit 9b8546f92179dba826e7ca5ed009b24486ef7a2c)
Diffstat (limited to 'swat/esptest/session.esp')
-rw-r--r--swat/esptest/session.esp21
1 files changed, 11 insertions, 10 deletions
diff --git a/swat/esptest/session.esp b/swat/esptest/session.esp
index ec747df442..6de7edab67 100644
--- a/swat/esptest/session.esp
+++ b/swat/esptest/session.esp
@@ -2,17 +2,18 @@
<h1>Samba4 session test</h1>
-<form name="SessionTest" method="POST" action="@@request['SCRIPT_NAME']">
- Name: <input name="Name" type="text" value=""><br>
- Value: <input name="Value" type="text" value=""><br>
- Timeout: <input name="Timeout" type="text" value=""><br>
- <input name="submit" type="submit" value="Append">
- <input name="submit" type="submit" value="Reset">
- <input name="submit" type="submit" value="Destroy">
- <input name="submit" type="submit" value="Cancel"><br>
-</form>
-
<%
+var f = Form("SessionTest", 3, 4);
+f.element[0].label = "Name";
+f.element[1].label = "Value";
+f.element[2].label = "Timeout";
+f.submit[0] = "Append";
+f.submit[1] = "Reset";
+f.submit[2] = "Destroy";
+f.submit[3] = "Cancel";
+
+display_form(f);
+
/* if its a post then the user has filled in the form, so
report the values
*/