source: trunk/templates/dnsq.tmpl@ 867

Last change on this file since 867 was 589, checked in by Kris Deugau, 11 years ago

/trunk

Le sigh. Move a small fragment of HTML from the header back to all the
individual pages that need it, so we can selectively load and use
Javascript, and do some initial tweaking with body.onload.

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