source: trunk/templates/record.tmpl@ 515

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

/trunk

Overhaul session handling; pure URL-based sessions are subject to
copy-paste session-stealing. Convert to cookie-based session tracking
instead. This also provides bonuses in terms of inlinks from other
utilities or copy-paste links.
While session-handling was in pieces, add "pick-up-where-I-left-off"
login handling so that logins don't always end up only on the initial
domain list. This is especially handy for copy-paste links.

Also clean up some of the docucomments, use the CGI::Simple object to
do 302 redirects, and bring the revzone default sort field setup into
line with other thing-lists.

File size: 3.1 KB
Line 
1<table class="wholepage"><tr>
2<TMPL_INCLUDE NAME="menu.tmpl">
3
4<td align="center" valign="top">
5
6<TMPL_IF perm_err>
7<div class='errmsg'><TMPL_VAR NAME=perm_err></div>
8<TMPL_ELSE>
9
10<form action="<TMPL_VAR NAME=script_self>" method="post">
11<fieldset>
12
13<input type="hidden" name="page" value="record" />
14<input type="hidden" name="defrec" value="<TMPL_VAR NAME=defrec>" />
15<input type="hidden" name="revrec" value="<TMPL_VAR NAME=revrec>" />
16<input type="hidden" name="parentid" value="<TMPL_VAR NAME=parentid>" />
17<input type="hidden" name="id" value="<TMPL_VAR NAME=id>" />
18<input type="hidden" name="recact" value="<TMPL_VAR NAME=recact>" />
19
20<table class="container" width="450">
21<tr><td>
22
23 <table border="0" cellspacing="2" cellpadding="2" width="100%">
24<TMPL_IF failed> <tr><td class="errhead" colspan="2">Error <TMPL_VAR NAME=wastrying> record: <TMPL_VAR NAME=errmsg></td></tr></TMPL_IF>
25 <tr class="tableheader"><td align="center" colspan="2"><TMPL_VAR NAME=todo>: <TMPL_VAR NAME=dohere></td></tr>
26 <tr class="datalinelight">
27<TMPL_IF fwdzone>
28 <td>Hostname</td>
29 <td><input type="text" name="name" value="<TMPL_VAR NAME=name>" size="30" /></td>
30<TMPL_ELSE>
31 <td>IP Address</td>
32 <td><input type="text" name="address" value="<TMPL_VAR ESCAPE=HTML NAME=address>" size="30" /></td>
33</TMPL_IF>
34 </tr>
35 <tr class="datalinelight">
36 <td>Type</td>
37 <td><select name="type">
38<TMPL_LOOP NAME=typelist>
39 <option value="<TMPL_VAR NAME=recval>"<TMPL_IF NAME=tselect> selected="selected"</TMPL_IF>><TMPL_VAR NAME=recname></option>
40</TMPL_LOOP>
41 </select></td>
42 </tr>
43 <tr class="datalinelight">
44<TMPL_IF fwdzone>
45 <td>Address</td>
46 <td><input type="text" name="address" value="<TMPL_VAR ESCAPE=HTML NAME=address>" size="30" /></td>
47<TMPL_ELSE>
48 <td>Hostname</td>
49 <td><input type="text" name="name" value="<TMPL_VAR NAME=name>" size="30" /></td>
50</TMPL_IF>
51 </tr>
52<TMPL_IF fwdzone>
53 <tr class="datalinelight">
54 <td>Distance (MX and SRV only)</td>
55 <td><input type="text" name="distance" value="<TMPL_VAR NAME=distance>" size="5" maxlength="10" /></td>
56 </tr>
57 <tr class="datalinelight">
58 <td>Weight (SRV only)</td>
59 <td><input type="text" name="weight" value="<TMPL_VAR NAME=weight>" size="5" maxlength="10" /></td>
60 </tr>
61 <tr class="datalinelight">
62 <td>Port (SRV only)</td>
63 <td><input type="text" name="port" value="<TMPL_VAR NAME=port>" size="5" maxlength="10" /></td>
64 </tr>
65</TMPL_IF>
66 <tr class="datalinelight">
67 <td>TTL</td>
68 <td><input size="7" maxlength="20" type="text" name="ttl" value="<TMPL_VAR NAME=ttl>" /></td>
69 </tr>
70<TMPL_IF location_view>
71 <tr class="datalinelight">
72 <td>Location/view</td>
73<TMPL_IF record_locchg>
74 <td><select name="location">
75<TMPL_LOOP name=loclist> <option value="<TMPL_VAR NAME=loc>"<TMPL_IF selected> selected="selected"</TMPL_IF>><TMPL_VAR NAME=locname></option>
76</TMPL_LOOP>
77 </select></td>
78<TMPL_ELSE>
79 <td><TMPL_VAR NAME=loc_name></td>
80</TMPL_IF>
81 </tr>
82</TMPL_IF>
83 <tr class="datalinelight">
84 <td colspan="2" align="center"><input type="submit" value=" <TMPL_VAR NAME=todo> " /></td>
85 </tr>
86 </table>
87
88</td></tr>
89</table>
90
91</fieldset>
92</form>
93
94</TMPL_IF>
95
96</td>
97</tr>
98</table>
Note: See TracBrowser for help on using the repository browser.