Last change
on this file since 754 was 513, checked in by Kris Deugau, 12 years ago |
/branches/htmlform
Finally dug up a least-nasty way to effectively get rid of the
useless <legend> tag (required in a <fieldset>, in turn required
in a <form>, if you want to be valid HTML 4.01 Strict).
See #3.
|
File size:
1.1 KB
|
Line | |
---|
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
---|
2 | <html>
|
---|
3 | <head>
|
---|
4 | <title>IP Database - Add new city</title>
|
---|
5 | <link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME=webpath>/ipdb.css">
|
---|
6 | <link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME=webpath>/local.css">
|
---|
7 | <script src="<TMPL_VAR NAME=webpath>/templates/widgets.js" type="text/javascript"></script>
|
---|
8 | </head>
|
---|
9 |
|
---|
10 | <body onUnload="redoParent()">
|
---|
11 | <TMPL_IF city>
|
---|
12 | <div style="padding=3px;">
|
---|
13 | <TMPL_IF err>
|
---|
14 | Error adding city <TMPL_VAR NAME=city> to database: <TMPL_VAR NAME=err>
|
---|
15 | <TMPL_ELSE>
|
---|
16 | City <TMPL_VAR NAME=city> added. Closing this window should refresh the page.
|
---|
17 | </TMPL_IF>
|
---|
18 | </div>
|
---|
19 | <TMPL_ELSE>
|
---|
20 | <form action="newcity.cgi" method="POST">
|
---|
21 | <fieldset><legend class="noshow"> </legend>
|
---|
22 | <table>
|
---|
23 | <tr class="color1"><td>Enter new city:</td><td><input name="city"></td></tr>
|
---|
24 | <tr class="color2"><td>POP site?</td><td><input type=checkbox name="pop"></td></tr>
|
---|
25 | <tr class="color1"><td colspan=2 align=center><input type=submit value="Add city"></td></tr>
|
---|
26 | </table>
|
---|
27 | </fieldset>
|
---|
28 | </form>
|
---|
29 | </TMPL_IF>
|
---|
30 | </body>
|
---|
31 | </html>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.