Ignore:
Timestamp:
11/20/09 17:32:04 (15 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/newrec.tmpl

    r2 r38  
    55<td align="center">
    66
    7 <TMPL_IF add_failed><span class="errmsg">Error adding record: <TMPL_VARNAME=errmsg></span></TMPL_IF>
    8 <form action="dns.cgi">
    9 <input type="hidden" name="page" value="addrec">
    10 <input type="hidden" name="defrec" value="<TMPL_VAR NAME=defrec>">
    11 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>">
    12 <input type="hidden" name="parentid" value="<TMPL_VAR NAME=parentid>">
     7<form action="dns.cgi" method="post">
     8<fieldset>
    139
    14         <table border=0 bgcolor="white">
     10<input type="hidden" name="page" value="addrec" />
     11<input type="hidden" name="defrec" value="<TMPL_VAR NAME=defrec>" />
     12<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
     13<input type="hidden" name="parentid" value="<TMPL_VAR NAME=parentid>" />
    1514
     15<table class="container" width="450">
    1616<tr><td>
    1717
    18         <table border=0 width="100%">
    19         <tr class="tableheader"><td align="center" colspan=2>Add Record to <TMPL_VAR NAME=domain></td></tr>
     18    <table border="0" cellspacing="2" cellpadding="2" width="100%">
     19<TMPL_IF add_failed>    <tr><td class="errhead" colspan="2">Error adding record: <TMPL_VAR NAME=errmsg></td></tr></TMPL_IF>
     20        <tr class="tableheader"><td align="center" colspan="2">Add Record to <TMPL_VAR NAME=domain></td></tr>
    2021        <tr class="datalinelight">
    2122                <td>Hostname</td>
    22                 <td><input type="text" name="name" value="<TMPL_VAR NAME=name>"></td>
     23                <td><input type="text" name="name" value="<TMPL_VAR NAME=name>" /></td>
    2324        </tr>
    2425        <tr class="datalinelight">
     
    2627                <td><select name="type">
    2728        <TMPL_LOOP NAME=typelist>
    28                         <option value="<TMPL_VAR NAME=recval>" <TMPL_IF NAME=tselect>selected</TMPL_IF>><TMPL_VAR NAME=recname></option>
     29                        <option value="<TMPL_VAR NAME=recval>"<TMPL_IF NAME=tselect> selected="selected"</TMPL_IF>><TMPL_VAR NAME=recname></option>
    2930        </TMPL_LOOP>
    3031                </select></td>
     
    3233        <tr class="datalinelight">
    3334                <td>Address</td>
    34                 <td><input type="text" name="address" value="<TMPL_VAR NAME=address>"></td>
     35                <td><input type="text" name="address" value="<TMPL_VAR NAME=address>" /></td>
    3536        </tr>
    3637        <tr class="datalinelight">
    3738                <td>Distance (MX and SRV only)</td>
    38                 <td><input type="text" name="distance" value="<TMPL_VAR NAME=distance>" size=5 maxlength=10></td>
     39                <td><input type="text" name="distance" value="<TMPL_VAR NAME=distance>" size="5" maxlength="10" /></td>
    3940        </tr>
    4041        <tr class="datalinelight">
    4142                <td>Weight (SRV only)</td>
    42                 <td><input type="text" name="weight" value="<TMPL_VAR NAME=weight>" size=5 maxlength=10></td>
     43                <td><input type="text" name="weight" value="<TMPL_VAR NAME=weight>" size="5" maxlength="10" /></td>
    4344        </tr>
    4445        <tr class="datalinelight">
    4546                <td>Port (SRV only)</td>
    46                 <td><input type="text" name="port" value="<TMPL_VAR NAME=port>" size=5 maxlength=10></td>
     47                <td><input type="text" name="port" value="<TMPL_VAR NAME=port>" size=5 maxlength="10" /></td>
    4748        </tr>
    4849        <tr class="datalinelight">
    4950                <td>TTL</td>
    50                 <td><input size=7 maxlenth=20 type="text" name="ttl" value="<TMPL_VAR NAME=ttl>">
     51                <td><input size="7" maxlenth="20" type="text" name="ttl" value="<TMPL_VAR NAME=ttl>" /></td>
    5152        </tr>
    5253        <tr class="datalinelight">
    53                 <td colspan=2 align=center><input type="submit" value=" Add record "></td>
     54                <td colspan="2" align="center"><input type="submit" value=" Add record "></td>
    5455        </tr>
    5556        </table>
     
    5859</table>
    5960
     61</fieldset>
    6062</form>   
    6163
     64</td>
     65</tr>
     66</table>
    6267
    63 </td></tr></table>
    64 
Note: See TracChangeset for help on using the changeset viewer.