source: trunk/templates/record.tmpl@ 523

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