Last change
on this file since 492 was 460, checked in by Kris Deugau, 14 years ago |
/branches/htmlform
Convert "new node" miniscript and page to template. See #3.
Update call from assign.tmpl to point to newcity.cgi.
Clean up errors and warnings from newnode.cgi in HTTPD error
log. See #31. (Also note newcity.cgi changes in r459 have
the same cleanups.)
|
File size:
1.2 KB
|
Rev | Line | |
---|
[460] | 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 tower/demarc switch</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 nodename>
|
---|
| 12 | <div style="padding: 3px;">
|
---|
| 13 | <TMPL_IF err>
|
---|
| 14 | Error adding node <TMPL_VAR NAME=nodename> to database: <TMPL_VAR NAME=err>
|
---|
| 15 | <TMPL_ELSE>
|
---|
| 16 | Node <TMPL_VAR NAME=nodename> added. Closing this window should refresh the page.
|
---|
| 17 | </TMPL_IF>
|
---|
| 18 | </div>
|
---|
| 19 | <TMPL_ELSE>
|
---|
| 20 | <form action="newnode.cgi" method="POST">
|
---|
| 21 | <fieldset><legend></legend>
|
---|
| 22 | <table>
|
---|
| 23 | <tr class="color1"><td>Enter new AP/switch name/location:</td><td><input name="nodename"></td></tr>
|
---|
| 24 | <tr class="color2"><td>Enter management IP:</td><td><input name="nodeip"></td></tr>
|
---|
| 25 | <tr class="color1"><td>Wifi tower or fibre demarc switch?</td>
|
---|
| 26 | <td><input type=radio name="type" value="bi">Wifi tower<br>
|
---|
| 27 | <input type=radio name="type" value="fr">Fibre demarc
|
---|
| 28 | </td></tr>
|
---|
| 29 | <tr class="color2"><td colspan=2 align=center><input type=submit value="Add"></td></tr>
|
---|
| 30 | </table>
|
---|
| 31 | </fieldset>
|
---|
| 32 | </form>
|
---|
| 33 | </TMPL_IF>
|
---|
| 34 | </body>
|
---|
| 35 | </html>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.