Ignore:
Timestamp:
11/20/09 17:32:04 (14 years ago)
Author:
Kris Deugau
Message:

/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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/reclist.tmpl

    r36 r38  
    66domain details
    77<!-- FIXME:  long data in records causes record list table to overflow one or another container -->
    8 <div id=tableholder width=100%>
     8
     9<!-- not sure WTF I thought I needed this for: div id=tableholder width=100% -->
    910
    1011<TMPL_INCLUDE NAME=soadata.tmpl>
    1112
    12 <table border=0 width="100%">
     13<table border="0" width="100%">
    1314<tr class="darkrowheader">
    14         <td colspan>
     15        <td>
    1516        <TMPL_INCLUDE NAME="pgcount.tmpl">
    1617        </td>
    17         <td align=center>
     18        <td align="center">
    1819        <TMPL_INCLUDE NAME="fpnla.tmpl">
    1920        </td>
    2021        <td>
    2122                <form action="dns.cgi">
    22                 <input type=hidden name=sid value="<TMPL_VAR NAME=sid>">
    23                 <input name=search>
    24                 <input type=submit value="Filter">
     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>
    2528                </form>
    2629        </td>
    2730</tr>
    2831<tr class="darkrowheader">
    29         <td colspan=2>Records</td>
    30         <td align=right><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=record&parentid=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&recact=new">Add record</a>
    31         <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=showlog&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>">View log</a>
     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>
    3235        </td>
    3336</tr>
     
    3538</table>
    3639
     40<TMPL_IF reclist>
    3741<table>
    3842<tr class="darkrowheader">
    39 <td nowrap>Name</td>
    40 <td width="5%">Type</td>
    41 <td>Address</td>
    42 <td>Distance</td><td>Weight</td><td>Port</td><td>TTL</td><td>Delete</td></tr>
     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>
    4347<TMPL_LOOP NAME=reclist>
    4448<tr class="row<TMPL_VAR NAME=row>">
    45 <td width="20%" nowrap><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=record&parentid=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&recact=edit&id=<TMPL_VAR NAME=record_id>"><TMPL_VAR NAME=host></a></td>
    46 <td width="5%" nowrap><TMPL_VAR NAME=type></td>
    47 <td nowrap><TMPL_VAR NAME=val></td>
    48 <td width="10%" nowrap><TMPL_VAR NAME=distance></td>
    49 <td width="10%" nowrap><TMPL_VAR NAME=weight></td>
    50 <td width="5%" nowrap><TMPL_VAR NAME=port></td>
    51 <td width="5%" nowrap><TMPL_VAR NAME=ttl></td>
    52 <td width="5%" align="center" nowrap><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delrec&id=<TMPL_VAR NAME=record_id>&defrec=<TMPL_VAR NAME=defrec>"><img border=0 src="images/trash2.png"></a></td>
     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>
    5358</TMPL_LOOP>
    5459</table>
     60<TMPL_ELSE>
     61<tr><td colspan="5">No records found</td></tr>
     62</TMPL_IF>
    5563
    5664</td></tr></table>
Note: See TracChangeset for help on using the changeset viewer.