source: branches/htmlform/templates/newcity.tmpl@ 503

Last change on this file since 503 was 459, checked in by Kris Deugau, 14 years ago

/branches/htmlform

Convert "new city" miniscript and page to template, move the "reload
parent" JavaScript fragment into widgets.js. See #3.
Update calls from assign.tmpl and admin.cgi to point to newcity.cgi.

File size: 1021 bytes
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="/ip/ipdb.css">
6 <link rel="stylesheet" type="text/css" href="/ip/local.css">
7 <script src="/ip/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>
14Error adding city <TMPL_VAR NAME=city> to database: <TMPL_VAR NAME=err>
15<TMPL_ELSE>
16City <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></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.