source: trunk/templates/dnsq.tmpl@ 92

Last change on this file since 92 was 38, checked in by Kris Deugau, 15 years ago

/trunk

checkpoint - big changes!

dns.cgi and DNSDB.pm:

  • all output pages should validate as XHTML 1.0 Strict. For at least another five minutes.
  • add variable to control env dump (which doesn't validate...)
  • fiddle username add to use "uname" as username field, since username seems to cause HTML::Template to barf suddenly... O_o
  • tweak "change current group" form URI for XHTML's idiotic "all ampersands must be exscapededed ALL EVARWERE!!!one11!"
  • check for existence of group, domain, user at beginning of respective add* subs in DNSDB.pm

templates/*:

  • adjust all templates to account for oddities and stupidities of XHTML 1.0. Templates do NOT validate on their own, but the final output should. WTFisms include (but are not limited to):
    • escaped ampersands in links?
    • "<form> can't go here"?
    • <td> can't use nowrap, width?
    • "<fieldset>"?
    • and now that the form fields are enclosed in a fieldset... apparently you can't right-click in "noncontent" space "inside" that element. GRRRRRRR!!!!!
  • CSS now needs work to make things appear properly, due largely to the WTFisms above
  • all this XHTML fixing got me to also normalize and clean up inconsistent usage, general structures, and things that wouldn't even pass HTML 4.0.1 Transitional (I think) - eg missing closing tags on <tr> or <td>
  • delete raw dump of Vega's login page (need to delete a couple others)
File size: 2.3 KB
Line 
1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
4
5<td align="center">
6
7<TMPL_IF errmsg><div class="errmsg">Query error: <TMPL_VARNAME=errmsg></div></TMPL_IF>
8
9<form action="dns.cgi" method="post">
10<fieldset>
11<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
12<input type="hidden" name="page" value="dnsq" />
13
14<table>
15<tr class="tableheader"><td align="center" colspan="2">DNS Query</td></tr>
16<tr class="datalinelight">
17 <td>Host/Name:</td>
18 <td><input name="qfor" value="<TMPL_VAR NAME=qfor>" /></td>
19</tr>
20<tr class="datalinelight">
21 <td>Record type:</td>
22 <td>
23 <select name="type">
24 <TMPL_LOOP NAME=typelist>
25 <option value="<TMPL_VAR NAME=recval>"<TMPL_IF NAME=tselect> selected="selected"</TMPL_IF>><TMPL_VAR NAME=recname></option>
26 </TMPL_LOOP>
27 </select>
28 </td>
29</tr>
30<tr class="datalinelight">
31 <td>Non-recursive query:</td>
32 <td><input type="checkbox" name="nrecurse"<TMPL_IF nrecurse> checked="checked"</TMPL_IF> /></td>
33</tr>
34<tr class="datalinelight">
35 <td>Use this server:</td>
36 <td><input name="resolver" value="<TMPL_VAR NAME=resolver>" /></td>
37</tr>
38<tr class="datalinelight"><td align="center" colspan="2"><input type="submit" value=" Query DNS " /></td></tr>
39</table>
40
41</fieldset>
42</form>
43
44<br />
45<TMPL_IF NAME=showresults>
46<table width="350px">
47<tr class="tableheader"><td colspan="3">Query:</td></tr>
48<tr class="datalinelight">
49 <td>
50 <TMPL_VAR NAME=qfor>
51 </td>
52 <td colspan="2">
53 <TMPL_VAR NAME=frtype>
54 </td>
55</tr>
56<tr class="tableheader"><td colspan="3">Response from <TMPL_VAR NAME=usedresolver>:</td></tr>
57<TMPL_LOOP NAME=answer><tr class="datalinelight" valign="top">
58<td><TMPL_VAR NAME=host></td>
59<td><TMPL_VAR NAME=ftype></td>
60<td><TMPL_VAR NAME=rdata></td></tr>
61</TMPL_LOOP>
62<TMPL_IF authority>
63<tr class="tableheader"><td colspan="3">Authority:</td></tr>
64<TMPL_LOOP NAME=authority><tr class="datalinelight">
65<td><TMPL_VAR NAME=host></td>
66<td><TMPL_VAR NAME=ftype></td>
67<td><TMPL_VAR NAME=rdata></td></tr>
68</TMPL_LOOP>
69</TMPL_IF>
70<TMPL_IF additional>
71<tr class="tableheader"><td colspan="3">Additional information:</td></tr>
72<TMPL_LOOP NAME=additional><tr class="datalinelight">
73<td><TMPL_VAR NAME=host></td>
74<td><TMPL_VAR NAME=ftype></td>
75<td><TMPL_VAR NAME=rdata></td></tr>
76</TMPL_LOOP>
77</TMPL_IF>
78</table>
79</TMPL_IF>
80
81</td>
82</tr>
83</table>
84
Note: See TracBrowser for help on using the repository browser.