source: trunk/templates/location.tmpl@ 410

Last change on this file since 410 was 375, checked in by Kris Deugau, 12 years ago

/trunk

Checkpoint adding locations/views. See #10.

  • Tweak new locations table again with an internal serial for sorting and finding the "highest" previous location
  • Complete "Add location" stub
  • Fill in initial display page for "Edit location"
  • Tweak location add/edit/update template a little, add new comments field to match new field in table
  • Tweak location import so we don't end up with great long space-free fields similar to what can't be avoided with TXT (usually SPF/DomainKeys) records
  • Fill in addLoc() stub
  • Add getLoc()
  • Tweak location export to strip commas and whitespace properly
File size: 1.6 KB
Line 
1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
4
5<td align="center" valign="top">
6
7<TMPL_IF perm_err>
8<div class='errmsg'><TMPL_VAR NAME=perm_err></div>
9<TMPL_ELSE>
10
11<form action="dns.cgi" method="post">
12<fieldset>
13
14<input type="hidden" name="page" value="location" />
15<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
16<TMPL_IF id><input type="hidden" name="id" value="<TMPL_VAR NAME=id>" /></TMPL_IF>
17<input type="hidden" name="locact" value="<TMPL_VAR NAME=locact>" />
18
19<table class="container" width="450">
20<tr><td>
21
22 <table border="0" cellspacing="2" cellpadding="2" width="100%">
23<TMPL_IF failed> <tr><td class="errhead" colspan="2">Error <TMPL_VAR NAME=wastrying> location: <TMPL_VAR NAME=errmsg></td></tr></TMPL_IF>
24 <tr class="tableheader"><td align="center" colspan="2"><TMPL_VAR NAME=todo>: <TMPL_VAR NAME=dohere></td></tr>
25 <tr class="datalinelight">
26 <td>Location name/description</td>
27 <td><input type="text" name="locname" value="<TMPL_VAR ESCAPE=HTML NAME=locname>" size="30" maxlength="40" /></td>
28 </tr>
29 <tr class="datalinelight">
30 <td>IP list</td>
31 <td><input type="text" name="iplist" value="<TMPL_VAR ESCAPE=HTML NAME=iplist>" size="30" /></td>
32 </tr>
33 <tr class="datalinelight">
34 <td>Comments</td>
35 <td><textarea name="comments" cols="50" rows="5"><TMPL_VAR ESCAPE=HTML NAME=comments></textarea></td>
36 </tr>
37 <tr class="datalinelight">
38 <td colspan="2" align="center"><input type="submit" value=" <TMPL_VAR NAME=todo> " /></td>
39 </tr>
40 </table>
41
42</td></tr>
43</table>
44
45</fieldset>
46</form>
47
48</TMPL_IF>
49
50</td>
51</tr>
52</table>
Note: See TracBrowser for help on using the repository browser.