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/newgrp.tmpl

    r24 r38  
    33<TMPL_INCLUDE NAME="menu.tmpl">
    44
    5 <td align=center>
    6 <TMPL_IF add_failed><span class="errmsg">Error adding group <TMPL_VAR NAME=newgroup>: <TMPL_VAR
    7 NAME=errmsg></span></TMPL_IF>
     5<td align="center">
     6
    87<form action="dns.cgi">
     8<fieldset>
    99
    10 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>">
    11 <input type="hidden" name="page" value="newgrp">
    12 <input type="hidden" name="action" value="add">
     10<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
     11<input type="hidden" name="page" value="newgrp" />
     12<input type="hidden" name="action" value="add" />
    1313
    14 <table border=0 width="450" bgcolor="white">
     14<table class="container" width="450">
    1515<tr><td>
    16     <table border=0 cellspacing=2 cellpadding=2 width="100%">
    17         <tr bgcolor="#cccccc"><td colspan=2 align="center">Add Group</td></tr>
     16    <table border="0" cellspacing="2" cellpadding="2" width="100%">
     17<TMPL_IF add_failed>    <tr><td class="errhead" colspan="2">Error adding group <TMPL_VAR NAME=newgroup>: <TMPL_VAR NAME=errmsg></td></tr></TMPL_IF>
     18        <tr class="darkrowheader"><td colspan="2" align="center">Add Group</td></tr>
    1819
    19         <tr bgcolor="#eeeeee">
    20                 <td width="50%">Group Name:</td>
    21                 <td width="50%" align="left"><input type="text" name="newgroup" value="<TMPL_VAR NAME=newgroup>"></td>
     20        <tr class="datalinelight">
     21                <td>Group Name:</td>
     22                <td align="left"><input type="text" name="newgroup" value="<TMPL_VAR NAME=newgroup>" /></td>
    2223        </tr>
    23         <tr bgcolor="#eeeeee">
     24        <tr class="datalinelight">
    2425                <td>Add as subgroup of:</td>
    25                 <td><select name=pargroup>
    26 <TMPL_LOOP name=pargroup>               <option value="<TMPL_VAR NAME=groupval>"<TMPL_IF groupactive> selected</TMPL_IF>><TMPL_VAR name=groupname></option>
     26                <td><select name="pargroup">
     27<TMPL_LOOP name=pargroup>               <option value="<TMPL_VAR NAME=groupval>"<TMPL_IF groupactive> selected="selected"</TMPL_IF>><TMPL_VAR name=groupname></option>
    2728</TMPL_LOOP>
    2829                </select></td>
    2930        </tr>
    30         <tr><td colspan=2 align="center"><input type="submit" value="Add group"></td></tr>
    31 <tr><td colspan=2>tmp note:  radio button select "group template" vs "clone group"?</td></tr>
     31        <tr><td colspan="2" align="center"><input type="submit" value="Add group" /></td></tr>
     32<tr><td colspan="2">tmp note:  radio button select "group template" vs "clone group"?</td></tr>
    3233    </table>
    3334    </td>
     
    3536</table>
    3637
     38</fieldset>
    3739</form>
    3840
Note: See TracChangeset for help on using the changeset viewer.