source: trunk/templates/dnsq.tmpl@ 548

Last change on this file since 548 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: 2.2 KB
RevLine 
[30]1<table class="wholepage"><tr>
2<TMPL_INCLUDE NAME="menu.tmpl">
3
[100]4<td align="center" valign="top">
[30]5
6<TMPL_IF errmsg><div class="errmsg">Query error: <TMPL_VARNAME=errmsg></div></TMPL_IF>
7
[493]8<form action="<TMPL_VAR NAME=script_self>" method="post">
[38]9<fieldset>
10<input type="hidden" name="page" value="dnsq" />
[30]11
12<table>
[38]13<tr class="tableheader"><td align="center" colspan="2">DNS Query</td></tr>
[30]14<tr class="datalinelight">
15 <td>Host/Name:</td>
[38]16 <td><input name="qfor" value="<TMPL_VAR NAME=qfor>" /></td>
[30]17</tr>
18<tr class="datalinelight">
19 <td>Record type:</td>
20 <td>
21 <select name="type">
22 <TMPL_LOOP NAME=typelist>
[38]23 <option value="<TMPL_VAR NAME=recval>"<TMPL_IF NAME=tselect> selected="selected"</TMPL_IF>><TMPL_VAR NAME=recname></option>
[30]24 </TMPL_LOOP>
25 </select>
26 </td>
27</tr>
28<tr class="datalinelight">
[31]29 <td>Non-recursive query:</td>
[38]30 <td><input type="checkbox" name="nrecurse"<TMPL_IF nrecurse> checked="checked"</TMPL_IF> /></td>
[30]31</tr>
32<tr class="datalinelight">
[31]33 <td>Use this server:</td>
[38]34 <td><input name="resolver" value="<TMPL_VAR NAME=resolver>" /></td>
[30]35</tr>
[38]36<tr class="datalinelight"><td align="center" colspan="2"><input type="submit" value=" Query DNS " /></td></tr>
[30]37</table>
38
[38]39</fieldset>
[30]40</form>
41
[31]42<br />
[30]43<TMPL_IF NAME=showresults>
44<table width="350px">
[38]45<tr class="tableheader"><td colspan="3">Query:</td></tr>
[30]46<tr class="datalinelight">
47 <td>
48 <TMPL_VAR NAME=qfor>
49 </td>
[38]50 <td colspan="2">
[30]51 <TMPL_VAR NAME=frtype>
52 </td>
53</tr>
[38]54<tr class="tableheader"><td colspan="3">Response from <TMPL_VAR NAME=usedresolver>:</td></tr>
[30]55<TMPL_LOOP NAME=answer><tr class="datalinelight" valign="top">
56<td><TMPL_VAR NAME=host></td>
57<td><TMPL_VAR NAME=ftype></td>
58<td><TMPL_VAR NAME=rdata></td></tr>
59</TMPL_LOOP>
60<TMPL_IF authority>
[38]61<tr class="tableheader"><td colspan="3">Authority:</td></tr>
[30]62<TMPL_LOOP NAME=authority><tr class="datalinelight">
63<td><TMPL_VAR NAME=host></td>
64<td><TMPL_VAR NAME=ftype></td>
65<td><TMPL_VAR NAME=rdata></td></tr>
66</TMPL_LOOP>
67</TMPL_IF>
68<TMPL_IF additional>
[38]69<tr class="tableheader"><td colspan="3">Additional information:</td></tr>
[30]70<TMPL_LOOP NAME=additional><tr class="datalinelight">
71<td><TMPL_VAR NAME=host></td>
72<td><TMPL_VAR NAME=ftype></td>
73<td><TMPL_VAR NAME=rdata></td></tr>
74</TMPL_LOOP>
75</TMPL_IF>
76</table>
77</TMPL_IF>
78
79</td>
80</tr>
81</table>
82
Note: See TracBrowser for help on using the repository browser.