summaryrefslogtreecommitdiff
path: root/swat/esptest/formtest.esp
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-05-30 08:50:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:15 -0500
commit33d21d35feaa0f7f9d4067e90495ca19374cea78 (patch)
tree1537d38006a602a506ac91696e888059704997de /swat/esptest/formtest.esp
parent314bc44afe44ac6e9fcb194d54b8e1848adf94ed (diff)
downloadsamba-33d21d35feaa0f7f9d4067e90495ca19374cea78.tar.gz
r7096: added support for select lists in forms
Diffstat (limited to 'swat/esptest/formtest.esp')
-rw-r--r--swat/esptest/formtest.esp9
1 files changed, 8 insertions, 1 deletions
diff --git a/swat/esptest/formtest.esp b/swat/esptest/formtest.esp
index 6dd1f911ea5..481217d42b1 100644
--- a/swat/esptest/formtest.esp
+++ b/swat/esptest/formtest.esp
@@ -1,14 +1,21 @@
<% page_header("columns", "ESP Form Test"); %>
<%
-var f = Form("FormTest", 2, 2);
+var f = Form("FormTest", 3, 2);
f.element[0].label = "First Name";
f.element[0].name = "firstName";
+f.element[0].value = form['firstName'];
f.element[1].label = "Last Name";
f.element[1].name = "lastName";
+f.element[1].value = form['lastName'];
+f.element[2].label = "Color";
+f.element[2].type = "select";
+f.element[2].list = new Array("Red", "Green", "Blue", "Yellow");
+f.element[2].value = form['Color'];
f.submit[0] = "OK";
f.submit[1] = "Cancel";
+printVars(f);
display_form(f);
<%