diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-05-30 08:30:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:15 -0500 |
commit | 2f055ca68b76f1eff5ebce5c2fb29e0294be3a4c (patch) | |
tree | 0d381c7da0a459b2ab50bc15ebd48da0580bac72 | |
parent | 1bf7a917b2d2ba2806e018ca385e44557c7dbf56 (diff) | |
download | samba-2f055ca68b76f1eff5ebce5c2fb29e0294be3a4c.tar.gz samba-2f055ca68b76f1eff5ebce5c2fb29e0294be3a4c.tar.bz2 samba-2f055ca68b76f1eff5ebce5c2fb29e0294be3a4c.zip |
r7095: more html tidying
(This used to be commit 314bc44afe44ac6e9fcb194d54b8e1848adf94ed)
-rw-r--r-- | swat/esptest/include.esp | 4 | ||||
-rw-r--r-- | swat/esptest/loadparm.esp | 15 |
2 files changed, 7 insertions, 12 deletions
diff --git a/swat/esptest/include.esp b/swat/esptest/include.esp index f7fd5e0b91..37772fd03f 100644 --- a/swat/esptest/include.esp +++ b/swat/esptest/include.esp @@ -11,8 +11,4 @@ calling a function from test.esp ...<p> <% res = testfn('foo'); %> result is: @@res -<form name="Cancel" method="POST" action="/"> - <input name="submit" type="submit" value="Cancel"><br> -</form> - <% page_footer(); %> diff --git a/swat/esptest/loadparm.esp b/swat/esptest/loadparm.esp index 0ed69d939a..5e45e4262c 100644 --- a/swat/esptest/loadparm.esp +++ b/swat/esptest/loadparm.esp @@ -2,14 +2,13 @@ <h1>Samba4 loadparm test</h1> -<form name="LoadparmTest" method="POST" action="@@request['SCRIPT_NAME']"> - Share: <input name="Share" type="text" value=""><br> - Parameter: <input name="Name" type="text" value=""><br> - <input name="submit" type="submit" value="OK"> - <input name="submit" type="submit" value="Cancel"><br> -</form> - <% +var f = Form("LoadparmTest", 2, 1); +f.element[0].label = "Share"; +f.element[1].label = "Parameter"; +f.submit[0] = "OK"; + +display_form(f); function stringVar(v) { var type = typeof(v); @@ -40,7 +39,7 @@ if (request['REQUEST_METHOD'] == "POST") { var v; share = form['Share']; - name = form['Name']; + name = form['Parameter']; if (share && name) { v = lpGet(share, name); } else if (name) { |