source: trunk/templates/reclist.tmpl@ 38

Last change on this file since 38 was 38, checked in by Kris Deugau, 14 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.0 KB
Line 
1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
4
5<td align="center">
6domain details
7<!-- FIXME: long data in records causes record list table to overflow one or another container -->
8
9<!-- not sure WTF I thought I needed this for: div id=tableholder width=100% -->
10
11<TMPL_INCLUDE NAME=soadata.tmpl>
12
13<table border="0" width="100%">
14<tr class="darkrowheader">
15 <td>
16 <TMPL_INCLUDE NAME="pgcount.tmpl">
17 </td>
18 <td align="center">
19 <TMPL_INCLUDE NAME="fpnla.tmpl">
20 </td>
21 <td>
22 <form action="dns.cgi">
23 <fieldset>
24 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
25 <input name="search" />
26 <input type="submit" value="Filter" />
27 </fieldset>
28 </form>
29 </td>
30</tr>
31<tr class="darkrowheader">
32 <td colspan="2">Records</td>
33 <td align="right"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=record&amp;parentid=<TMPL_VAR NAME=id>&amp;defrec=<TMPL_VAR NAME=defrec>&amp;recact=new">Add record</a>
34 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=showlog&amp;id=<TMPL_VAR NAME=id>&amp;defrec=<TMPL_VAR NAME=defrec>">View log</a>
35 </td>
36</tr>
37
38</table>
39
40<TMPL_IF reclist>
41<table>
42<tr class="darkrowheader">
43 <td>Name</td>
44 <td>Type</td>
45 <td>Address</td>
46 <td>Distance</td><td>Weight</td><td>Port</td><td>TTL</td><td>Delete</td></tr>
47<TMPL_LOOP NAME=reclist>
48<tr class="row<TMPL_VAR NAME=row>">
49 <td><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=record&amp;parentid=<TMPL_VAR NAME=id>&amp;defrec=<TMPL_VAR NAME=defrec>&amp;recact=edit&amp;id=<TMPL_VAR NAME=record_id>"><TMPL_VAR NAME=host></a></td>
50 <td><TMPL_VAR NAME=type></td>
51 <td><TMPL_VAR NAME=val></td>
52 <td><TMPL_VAR NAME=distance></td>
53 <td><TMPL_VAR NAME=weight></td>
54 <td><TMPL_VAR NAME=port></td>
55 <td><TMPL_VAR NAME=ttl></td>
56 <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=delrec&amp;id=<TMPL_VAR NAME=record_id>&amp;defrec=<TMPL_VAR NAME=defrec>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td>
57</tr>
58</TMPL_LOOP>
59</table>
60<TMPL_ELSE>
61<tr><td colspan="5">No records found</td></tr>
62</TMPL_IF>
63
64</td></tr></table>
Note: See TracBrowser for help on using the repository browser.