Changeset 38 for trunk


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)
Location:
trunk
Files:
1 deleted
26 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r37 r38  
    175175  return ('FAIL',"Need domain status") if !defined($state);
    176176
     177  my $sth = $dbh->prepare("SELECT domain_id FROM domains WHERE domain=?");
    177178  my $dom_id;
     179
     180# quick check to start to see if we've already got one
     181  $sth->execute($domain);
     182  ($dom_id) = $sth->fetchrow_array;
     183
     184  return ('FAIL', "Domain already exists") if $dom_id;
    178185
    179186  # Allow transactions, and raise an exception on errors so we can catch it later.
     
    292299  local $dbh->{RaiseError} = 1;
    293300
     301  my $sth = $dbh->prepare("SELECT group_id FROM groups WHERE group_name=?");
     302  my $group_id;
     303
     304# quick check to start to see if we've already got one
     305  $sth->execute($groupname);
     306  ($group_id) = $sth->fetchrow_array;
     307
     308  return ('FAIL', "Group already exists") if $group_id;
     309
    294310  # Wrap all the SQL in a transaction
    295311  eval {
    296     my $sth = $dbh->prepare("INSERT INTO groups (parent_group_id,group_name) VALUES (?,?)");
     312    $sth = $dbh->prepare("INSERT INTO groups (parent_group_id,group_name) VALUES (?,?)");
    297313    $sth->execute($pargroup,$groupname);
    298314
     
    454470  my $phone = shift || '';      # not going format-check
    455471
     472  my $sth = $dbh->prepare("SELECT user_id FROM users WHERE username=?");
    456473  my $user_id;
     474
     475# quick check to start to see if we've already got one
     476  $sth->execute($username);
     477  ($user_id) = $sth->fetchrow_array;
     478
     479  return ('FAIL', "User already exists") if $user_id;
    457480
    458481  # Allow transactions, and raise an exception on errors so we can catch it later.
  • trunk/dns.cgi

    r37 r38  
    2525
    2626my @debugbits;  # temp, to be spit out near the end of processing
     27my $debugenv = 0;
    2728
    2829# Let's do these templates right...
     
    6869
    6970# default
    70 my $perpage = 15;
    71 #my $perpage = 3;
     71#my $perpage = 15;
     72my $perpage = 3;
    7273my $offset = ($webvar{offset} ? $webvar{offset} : 0);
    7374
     
    481482    $msg = "Passwords don't match";
    482483  } else {
    483     ($code,$msg) = addUser($dbh,$webvar{username}, $webvar{group}, $webvar{pass1},
     484    ($code,$msg) = addUser($dbh,$webvar{uname}, $webvar{group}, $webvar{pass1},
    484485        ($webvar{makeactive} eq 'on' ? 1 : 0), $webvar{accttype},
    485486        $webvar{fname}, $webvar{lname}, $webvar{phone});
     
    490491    changepage(page => "useradmin");
    491492  } else {
    492 # oooh, yeah, this is supposed to be a redirect.  er, maybe.  whee.
    493 #    $page = HTML::Template->new(filename => "$templatedir/newuser.tmpl");
     493# oddity - apparently, xhtml 1.0 strict swallows username as an HTML::Template var.  O_o
    494494    $page->param(add_failed => 1);
    495     $page->param(username => $webvar{username});
     495    $page->param(uname => $webvar{uname});
    496496    $page->param(fname => $webvar{fname});
    497497    $page->param(lname => $webvar{lname});
     
    502502  }
    503503
    504   $page->param(add_failed => 1);
     504#  $page->param(add_failed => 1);
    505505
    506506} elsif ($webvar{page} eq 'deluser') {
     
    654654  # stuff for menu group change.  nb: this is icky.
    655655  fill_grouplist("grouplist");
    656   $page->param(whereami => $ENV{REQUEST_URI});
     656# @#$%@%@#% XHTML - & in a URL must be escaped.  >:(
     657  my $tmp_ruri = $ENV{REQUEST_URI};
     658  $tmp_ruri =~ s/\&([a-z])/\&amp\;$1/g;
     659#  $page->param(whereami => $ENV{REQUEST_URI});
     660  $page->param(whereami => $tmp_ruri);
    657661}
    658662
     
    662666print $page->output;
    663667
    664 print "<div id=debug>webvar keys: <pre>\n";
    665 foreach my $key (keys %webvar) {
    666   print "key: $key\tval: $webvar{$key}\n";
    667 }
    668 print "</pre>\nsession:\n<pre>\n";
    669 my $sesdata = $session->dataref();
    670 foreach my $key (keys %$sesdata) {
    671   print "key: $key\tval: ".$sesdata->{$key}."\n";
    672 }
    673 print "</pre>\nENV:\n<pre>\n";
    674 foreach my $key (keys %ENV) {
    675   print "key: $key\tval: $ENV{$key}\n";
    676 }
    677 print "</pre></div>\n";
     668if ($debugenv) {
     669  print "<div id=\"debug\">webvar keys: <pre>\n";
     670  foreach my $key (keys %webvar) {
     671    print "key: $key\tval: $webvar{$key}\n";
     672  }
     673  print "</pre>\nsession:\n<pre>\n";
     674  my $sesdata = $session->dataref();
     675  foreach my $key (keys %$sesdata) {
     676    print "key: $key\tval: ".$sesdata->{$key}."\n";
     677  }
     678  print "</pre>\nENV:\n<pre>\n";
     679  foreach my $key (keys %ENV) {
     680    print "key: $key\tval: $ENV{$key}\n";
     681  }
     682  print "</pre></div>\n";
     683}
    678684
    679685print $footer->output;
  • trunk/templates/axfr.tmpl

    r35 r38  
    55<td align="center" valign="top">
    66
    7 <form action="dns.cgi" method="POST">
    8 <input type=hidden name="sid" value="<TMPL_VAR NAME=sid>">
    9 <input type=hidden name="page" value="axfr">
    10 <input type=hidden name="doit" value="y">
     7<form action="dns.cgi" method="post">
     8<fieldset>
     9<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
     10<input type="hidden" name="page" value="axfr" />
     11<input type="hidden" name="doit" value="y" />
    1112
    1213<table>
    13 <TMPL_IF errmsg><tr><td class="errhead" colspan=2>Error: <TMPL_VARNAME=errmsg></td></tr></TMPL_IF>
    14 <tr class="tableheader"><td align="center" colspan=2>Import domains via AXFR</td></tr>
     14<TMPL_IF errmsg><tr><td class="errhead" colspan="2">Error: <TMPL_VARNAME=errmsg></td></tr></TMPL_IF>
     15<tr class="tableheader"><td align="center" colspan="2">Import domains via AXFR</td></tr>
    1516<tr class="datalinelight">
    1617        <td>Import from host:</td>
    17         <td><input name="ifrom"<TMPL_IF ifrom> value="<TMPL_VAR NAME=ifrom>"</TMPL_IF>></td>
     18        <td><input name="ifrom"<TMPL_IF ifrom> value="<TMPL_VAR NAME=ifrom>"</TMPL_IF> /></td>
    1819</tr>
    1920<tr class="datalinelight">
     
    2122        <td>
    2223                <select name="group">
    23                 <TMPL_LOOP NAME=grouplist><option value="<TMPL_VAR NAME=groupval>"<TMPL_IF NAME=groupactive> selected</TMPL_IF>><TMPL_VAR NAME=groupname></option>
     24                <TMPL_LOOP NAME=grouplist><option value="<TMPL_VAR NAME=groupval>"<TMPL_IF NAME=groupactive> selected="selected"</TMPL_IF>><TMPL_VAR NAME=groupname></option>
    2425                </TMPL_LOOP></select>
    2526        </td>
     
    2728<tr class="datalinelight">
    2829        <td>Rewrite SOA to group default?</td>
    29         <td><input type=checkbox name="rwsoa"<TMPL_IF rwsoa> checked</TMPL_IF>></td>
     30        <td><input type="checkbox" name="rwsoa"<TMPL_IF rwsoa> checked="checked"</TMPL_IF> /></td>
    3031</tr>
    3132<tr class="datalinelight">
    3233        <td>Rewrite NS to group default?</td>
    33         <td><input type=checkbox name="rwns"<TMPL_IF rwns> checked</TMPL_IF>></td>
     34        <td><input type="checkbox" name="rwns"<TMPL_IF rwns> checked="checked"</TMPL_IF> /></td>
    3435</tr>
    3536<tr class="datalinelight">
    3637        <td>Import as active?</td>
    37         <td><input type=checkbox name="domactive"<TMPL_UNLESS dominactive> checked</TMPL_UNLESS>></td>
     38        <td><input type="checkbox" name="domactive"<TMPL_UNLESS dominactive> checked="checked"</TMPL_UNLESS> /></td>
    3839</tr>
    3940<tr class="datalinelight">
    4041        <td valign="top">Domains to import:<br />(one per line)</td>
    41         <td><textarea name="importdoms" rows=10><TMPL_IF importdoms><TMPL_VAR NAME=importdoms></TMPL_IF></textarea></td>
     42        <td><textarea name="importdoms" rows="10" cols="25"><TMPL_IF importdoms><TMPL_VAR NAME=importdoms></TMPL_IF></textarea></td>
    4243</tr>
    4344<tr class="datalinelight">
    44         <td colspan=2 align="center"><input type=submit value=" Import domains "></td>
     45        <td colspan="2" align="center"><input type="submit" value=" Import domains " /></td>
    4546</tr>
    4647</table>
    4748
     49</fieldset>
    4850</form>
    4951
     
    5153<br />
    5254<table>
    53 <tr class="tableheader"><td colspan=2>AXFR Import Results</td></tr>
     55<tr class="tableheader"><td colspan="2">AXFR Import Results</td></tr>
    5456<TMPL_LOOP NAME=axfrresults>
    5557<tr class="datalinelight">
  • trunk/templates/conf_del.tmpl

    r2 r38  
    44<td align="center">
    55<h3>Are you really sure you want to delete <TMPL_VAR NAME=ftype> record <TMPL_VAR NAME=recval>?</h3>
    6 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delrec&del=cancel&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>">cancel</a> &nbsp; | &nbsp; <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delrec&del=ok&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>">confirm</a>
     6<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=delrec&amp;del=cancel&amp;id=<TMPL_VAR NAME=id>&amp;defrec=<TMPL_VAR NAME=defrec>">cancel</a> &nbsp; | &nbsp; <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=delrec&amp;del=ok&amp;id=<TMPL_VAR NAME=id>&amp;defrec=<TMPL_VAR NAME=defrec>">confirm</a>
    77</td>
    88
  • trunk/templates/deldom.tmpl

    r22 r38  
    55<td align="center">
    66<h3>Are you really sure you want to delete domain <TMPL_VAR NAME=domain>?</h3>
    7 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=deldom&del=cancel&id=<TMPL_VAR NAME=id>">cancel</a> &nbsp; | &nbsp; <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=deldom&del=ok&id=<TMPL_VAR NAME=id>">confirm</a>
     7<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=deldom&amp;del=cancel&amp;id=<TMPL_VAR NAME=id>">cancel</a> &nbsp; | &nbsp; <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=deldom&amp;del=ok&amp;id=<TMPL_VAR NAME=id>">confirm</a>
    88</td></tr></table>
    99
  • trunk/templates/delgrp.tmpl

    r23 r38  
    55<td align="center">
    66<h3>Are you really sure you want to delete group <TMPL_VAR NAME=delgroupname>?</h3>
    7 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delgrp&del=cancel&id=<TMPL_VAR NAME=id>">cancel</a> &nbsp; | &nbsp;
    8 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delgrp&del=ok&id=<TMPL_VAR NAME=id>">confirm</a>
     7<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=delgrp&amp;del=cancel&amp;id=<TMPL_VAR NAME=id>">cancel</a> &nbsp; | &nbsp;
     8<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=delgrp&amp;del=ok&amp;id=<TMPL_VAR NAME=id>">confirm</a>
    99</td></tr></table>
    1010
  • trunk/templates/delrec.tmpl

    r3 r38  
    44
    55<td align="center">
    6 <h3>Are you really sure you want to delete record:<br>
     6<h3>Are you really sure you want to delete record:<br />
    77<TMPL_VAR NAME=host> <TMPL_VAR NAME=ftype> <TMPL_VAR NAME=recval></h3>
    8 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delrec&del=cancel&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>">cancel</a> &nbsp; | &nbsp; <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delrec&del=ok&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>">confirm</a>
     8<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=delrec&amp;del=cancel&amp;id=<TMPL_VAR NAME=id>&amp;defrec=<TMPL_VAR NAME=defrec>">cancel</a> &nbsp; | &nbsp; <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=delrec&amp;del=ok&amp;id=<TMPL_VAR NAME=id>&amp;defrec=<TMPL_VAR NAME=defrec>">confirm</a>
    99</td></tr></table>
    1010
  • trunk/templates/deluser.tmpl

    r28 r38  
    44
    55<td align="center">
    6 <h3>Are you really sure you want to delete user <TMPL_VAR NAME=user>?</h3><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=deluser&del=cancel&id=<TMPL_VAR NAME=id>">cancel</a> &nbsp; | &nbsp; <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=deluser&del=ok&id=<TMPL_VAR NAME=id>">confirm</a>
     6<h3>Are you really sure you want to delete user <TMPL_VAR NAME=user>?</h3>
     7<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=deluser&amp;del=cancel&amp;id=<TMPL_VAR NAME=id>">cancel</a> &nbsp; | &nbsp; <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=deluser&amp;del=ok&amp;id=<TMPL_VAR NAME=id>">confirm</a>
    78</td></tr></table>
    89
  • trunk/templates/dns.css

    r34 r38  
    1818        border: 0;
    1919}
     20img {
     21        border: 0px;
     22}
     23fieldset {
     24        border: none;
     25        padding: 0px;
     26        margin: 0px;
     27}
    2028
    2129table.login {
     
    2735        background-color: #F0F0F0;
    2836}
     37table.container {
     38        background-color: #FFFFFF;
     39        border: none;
     40}
    2941table.wholepage {
    3042        width: 100%;
    3143}
     44
    3245tr.row0 {
    3346        background-color: #FFFFFF;
     
    4760        background-color: #F0F0F0;
    4861}
     62
    4963td.tblsubmit {
     64        background-color: #F0F0F0;
    5065        text-align: center;
    5166}
  • trunk/templates/dnsq.tmpl

    r31 r38  
    77<TMPL_IF errmsg><div class="errmsg">Query error: <TMPL_VARNAME=errmsg></div></TMPL_IF>
    88
    9 <form action="dns.cgi" method="POST">
    10 <input type=hidden name="sid" value="<TMPL_VAR NAME=sid>">
    11 <input type=hidden name="page" value="dnsq">
     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" />
    1213
    1314<table>
    14 <tr class="tableheader"><td align="center" colspan=2>DNS Query</td></tr>
     15<tr class="tableheader"><td align="center" colspan="2">DNS Query</td></tr>
    1516<tr class="datalinelight">
    1617        <td>Host/Name:</td>
    17         <td><input name="qfor" value="<TMPL_VAR NAME=qfor>"></td>
     18        <td><input name="qfor" value="<TMPL_VAR NAME=qfor>" /></td>
    1819</tr>
    1920<tr class="datalinelight">
     
    2223        <select name="type">
    2324        <TMPL_LOOP NAME=typelist>
    24                 <option value="<TMPL_VAR NAME=recval>"<TMPL_IF NAME=tselect> selected</TMPL_IF>><TMPL_VAR NAME=recname></option>
     25                <option value="<TMPL_VAR NAME=recval>"<TMPL_IF NAME=tselect> selected="selected"</TMPL_IF>><TMPL_VAR NAME=recname></option>
    2526        </TMPL_LOOP>
    2627        </select>
     
    2930<tr class="datalinelight">
    3031        <td>Non-recursive query:</td>
    31         <td><input type=checkbox name="nrecurse"<TMPL_IF nrecurse> checked</TMPL_IF>></td>
     32        <td><input type="checkbox" name="nrecurse"<TMPL_IF nrecurse> checked="checked"</TMPL_IF> /></td>
    3233</tr>
    3334<tr class="datalinelight">
    3435        <td>Use this server:</td>
    35         <td><input name="resolver" value="<TMPL_VAR NAME=resolver>"></td>
     36        <td><input name="resolver" value="<TMPL_VAR NAME=resolver>" /></td>
    3637</tr>
    37 <tr class="datalinelight"><td align="center" colspan=2><input type=submit value=" Query DNS "></td></tr>
     38<tr class="datalinelight"><td align="center" colspan="2"><input type="submit" value=" Query DNS " /></td></tr>
    3839</table>
    3940
     41</fieldset>
    4042</form>
    4143
     
    4345<TMPL_IF NAME=showresults>
    4446<table width="350px">
    45 <tr class="tableheader"><td colspan=3>Query:</td></tr>
     47<tr class="tableheader"><td colspan="3">Query:</td></tr>
    4648<tr class="datalinelight">
    4749        <td>
    4850                <TMPL_VAR NAME=qfor>
    4951        </td>
    50         <td colspan=2>
     52        <td colspan="2">
    5153                <TMPL_VAR NAME=frtype>
    5254        </td>
    5355</tr>
    54 <tr class="tableheader"><td colspan=3>Response from <TMPL_VAR NAME=usedresolver>:</td></tr>
     56<tr class="tableheader"><td colspan="3">Response from <TMPL_VAR NAME=usedresolver>:</td></tr>
    5557<TMPL_LOOP NAME=answer><tr class="datalinelight" valign="top">
    5658<td><TMPL_VAR NAME=host></td>
     
    5961</TMPL_LOOP>
    6062<TMPL_IF authority>
    61 <tr class="tableheader"><td colspan=3>Authority:</td></tr>
     63<tr class="tableheader"><td colspan="3">Authority:</td></tr>
    6264<TMPL_LOOP NAME=authority><tr class="datalinelight">
    6365<td><TMPL_VAR NAME=host></td>
     
    6769</TMPL_IF>
    6870<TMPL_IF additional>
    69 <tr class="tableheader"><td colspan=3>Additional information:</td></tr>
     71<tr class="tableheader"><td colspan="3">Additional information:</td></tr>
    7072<TMPL_LOOP NAME=additional><tr class="datalinelight">
    7173<td><TMPL_VAR NAME=host></td>
  • trunk/templates/domlist.tmpl

    r30 r38  
    1010
    1111<table width="98%">
    12 <tr><td colspan=3 align=center>Domain list</td></tr>
     12<tr><td colspan="3" align="center">Domain list</td></tr>
    1313<tr><td><TMPL_INCLUDE NAME="pgcount.tmpl"></td>
    1414<td>
    1515<TMPL_INCLUDE NAME="fpnla.tmpl">
    16 </td><td align=right>insert search box here</td></tr>
     16</td><td align="right">insert search box here</td></tr>
    1717
    18 <tr><td colspan=3 align=center>insert letter search here</td></tr>
     18<tr><td colspan="3" align="center">insert letter search here</td></tr>
    1919
    20 <tr><td colspan=3 align=right><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=newdomain">New Domain</a></td></tr>
     20<tr><td colspan="3" align="right"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=newdomain">New Domain</a></td></tr>
    2121</table>
    2222
    23 <table border=0 cellspacing="5" cellpadding="3">
     23<table border="0" cellspacing="5" cellpadding="3">
    2424<tr>
    2525<TMPL_IF NAME=foobarbaz>
    2626<!-- This block to be un-TMPL_IF'ed once we care about sort order - by default, we sort by domain, ascending -->
    27         <td class="underline" nowrap><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist&offset=<TMPL_VAR NAME=offset>">Domain<TMPL_IF NAME=sortdomain>&nbsp;<img border=0 alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png"></TMPL_IF></a></td>
    28         <td class="underline" nowrap><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist&offset=<TMPL_VAR NAME=offset>">Status<TMPL_IF NAME=sortstatus>&nbsp;<img border=0 alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png"></TMPL_IF></a></td>
    29         <td class="underline" align="center" nowrap><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist&offset=<TMPL_VAR NAME=offset>">Group<TMPL_IF NAME=sortgroup>&nbsp;<img border=0 alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png"></TMPL_IF></a></td>
     27        <td><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=domlist&amp;offset=<TMPL_VAR NAME=offset>">Domain<TMPL_IF NAME=sortdomain>&nbsp;<img border="0" alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></a></td>
     28        <td><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=domlist&amp;offset=<TMPL_VAR NAME=offset>">Status<TMPL_IF NAME=sortstatus>&nbsp;<img border="0" alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></a></td>
     29        <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=domlist&amp;offset=<TMPL_VAR NAME=offset>">Group<TMPL_IF NAME=sortgroup>&nbsp;<img border="0" alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></a></td>
    3030<TMPL_ELSE>
    31         <td class="underline" nowrap>Domain</td>
    32         <td class="underline" nowrap>Status</td>
    33         <td class="underline" align="center" nowrap>Group</td>
     31        <td>Domain</td>
     32        <td>Status</td>
     33        <td align="center">Group</td>
    3434</TMPL_IF>
    35         <td class="underline" align="center" nowrap>Change Status</td>
    36         <td class="underline" width="1%">Delete</td>
     35        <td align="center">Change Status</td>
     36        <td>Delete</td>
    3737</tr>
    3838<TMPL_IF name=domtable>
    3939<TMPL_LOOP name=domtable>
    4040<tr class="row<TMPL_VAR name=bg>">
    41         <td><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=reclist&id=<TMPL_VAR NAME=domainid>&defrec=n"><TMPL_VAR NAME=domain></a></td>
    42         <td width="1%" nowrap><TMPL_VAR name=status></td>
    43         <td width="1%" nowrap><TMPL_VAR name=group></td>
    44         <td width="1%" nowrap align=center><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist<TMPL_IF NAME=offset>&offset=<TMPL_VAR NAME=offset></TMPL_IF>&id=<TMPL_VAR NAME=domainid>&action=<TMPL_IF NAME=mkactive>domon<TMPL_ELSE>domoff</TMPL_IF>"><TMPL_IF NAME=mkactive>activate<TMPL_ELSE>deactivate</TMPL_IF></a></td>
    45         <td width="1%" nowrap align=center><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=deldom&id=<TMPL_VAR NAME=domainid>"><img src="images/trash2.png" border=0></a></td>
     41        <td><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=reclist&amp;id=<TMPL_VAR NAME=domainid>&amp;defrec=n"><TMPL_VAR NAME=domain></a></td>
     42        <td><TMPL_VAR name=status></td>
     43        <td><TMPL_VAR name=group></td>
     44        <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=domlist<TMPL_IF NAME=offset>&amp;offset=<TMPL_VAR NAME=offset></TMPL_IF>&amp;id=<TMPL_VAR NAME=domainid>&amp;action=<TMPL_IF NAME=mkactive>domon<TMPL_ELSE>domoff</TMPL_IF>"><TMPL_IF NAME=mkactive>activate<TMPL_ELSE>deactivate</TMPL_IF></a></td>
     45        <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=deldom&amp;id=<TMPL_VAR NAME=domainid>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td>
    4646</tr>
    4747</TMPL_LOOP>
    4848<TMPL_ELSE>
    49 <tr><td colspan=5>No domains found</td></tr>
     49<tr><td colspan="5">No domains found</td></tr>
    5050</TMPL_IF>
    5151</table>
  • trunk/templates/editsoa.tmpl

    r2 r38  
    6666</table>   
    6767
    68 <hr><hr>
     68<hr /><hr />
    6969
    7070
  • trunk/templates/footer.tmpl

    r2 r38  
    33
    44<div id="footer">
    5 <div id="contact">contact: <a href="mailto:kdeugau@deepnet.cx">Kris Deugau</a> (c) 2008 - <a href="http://www.deepnet.cx">deepnet</a><br />
     5<div id="contact">contact: <a href="mailto:kdeugau@deepnet.cx">Kris Deugau</a> (c) 2008-2009 - <a href="http://www.deepnet.cx">deepnet</a><br />
    66Get a real browser: <a href="http://www.firefox.com">FireFox</a>/<a href="http://www.mozilla.org">Mozilla</a>
    77</div>
  • trunk/templates/fpnla.tmpl

    r4 r38  
    1 <TMPL_IF navfirst><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=curpage>&offset=0<TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF>"><img src="images/frev.png" border=0>first</a><TMPL_ELSE><img src="images/frev.png" border=0>first</TMPL_IF>&nbsp;
    2 <TMPL_IF navprev><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=curpage>&offset=<TMPL_VAR NAME=prevoffs><TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF>"><img src="images/rev.png" border=0>previous</a><TMPL_ELSE><img src="images/rev.png" border=0>previous</TMPL_IF>&nbsp;
    3 <TMPL_IF navnext><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=curpage>&offset=<TMPL_VAR NAME=nextoffs><TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF>">next<img src="images/fwd.png" border=0></a><TMPL_ELSE>next<img src="images/fwd.png" border=0></TMPL_IF>&nbsp;
    4 <TMPL_IF navlast><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=curpage>&offset=<TMPL_VAR NAME=lastoffs><TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF>">last<img src="images/ffwd.png" border=0></a><TMPL_ELSE>last<img src="images/ffwd.png" border=0></TMPL_IF>&nbsp;
    5 <TMPL_IF navall><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=curpage>&offset=all<TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF>">all</a><TMPL_ELSE>all</TMPL_IF>
     1<TMPL_IF navfirst><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=<TMPL_VAR NAME=curpage>&amp;offset=0<TMPL_IF id>&amp;id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&amp;defrec=<TMPL_VAR NAME=defrec></TMPL_IF>"><img src="images/frev.png" alt="[ First ]" />first</a><TMPL_ELSE><img src="images/frev.png" alt="[ First ]" />first</TMPL_IF>&nbsp;
     2<TMPL_IF navprev><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=<TMPL_VAR NAME=curpage>&amp;offset=<TMPL_VAR NAME=prevoffs><TMPL_IF id>&amp;id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF>"><img src="images/rev.png" alt="[ Previous ]" />previous</a><TMPL_ELSE><img src="images/rev.png" alt="[ Previous ]" />previous</TMPL_IF>&nbsp;
     3<TMPL_IF navnext><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=<TMPL_VAR NAME=curpage>&amp;offset=<TMPL_VAR NAME=nextoffs><TMPL_IF id>&amp;id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF>">next<img src="images/fwd.png" alt="[ Next ]" /></a><TMPL_ELSE>next<img src="images/fwd.png" alt="[ Next ]" /></TMPL_IF>&nbsp;
     4<TMPL_IF navlast><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=<TMPL_VAR NAME=curpage>&amp;offset=<TMPL_VAR NAME=lastoffs><TMPL_IF id>&amp;id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&amp;defrec=<TMPL_VAR NAME=defrec></TMPL_IF>">last<img src="images/ffwd.png" alt="[ Last ]" /></a><TMPL_ELSE>last<img src="images/ffwd.png" alt="[ Last ]" /></TMPL_IF>&nbsp;
     5<TMPL_IF navall><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=<TMPL_VAR NAME=curpage>&amp;offset=all<TMPL_IF id>&amp;id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF>">all</a><TMPL_ELSE>all</TMPL_IF>
  • trunk/templates/grpman.tmpl

    r23 r38  
    1010
    1111<table width="98%">
    12 <tr><td colspan=3 align=center><span class="pgtitle">Manage groups</span></td></tr>
     12<tr><td colspan="3" align="center"><span class="pgtitle">Manage groups</span></td></tr>
    1313<tr><td><TMPL_INCLUDE NAME="pgcount.tmpl"></td>
    1414<td>
    1515<TMPL_INCLUDE NAME="fpnla.tmpl">
    16 </td><td align=right>insert search box here</td></tr>
     16</td><td align="right">insert search box here</td></tr>
    1717
    18 <tr><td colspan=3 align=center>insert letter search here</td></tr>
     18<tr><td colspan="3" align="center">insert letter search here</td></tr>
    1919
    20 <tr><td colspan=3 align=right><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=newgrp">New Group</a></td></tr>
     20<tr><td colspan="3" align="right"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=newgrp">New Group</a></td></tr>
    2121</table>
    2222
    23 <table border=0 cellspacing="5" cellpadding="3">
     23<table border="0" cellspacing="5" cellpadding="3">
    2424<tr>
    2525<TMPL_IF NAME=foobarbaz>
    2626<!-- This block to be un-TMPL_IF'ed once we care about sort order - by default, we sort by domain, ascending -->
    27         <td class="underline" nowrap><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist&offset=<TMPL_VAR NAME=offset>">Domain<TMPL_IF NAME=sortdomain>&nbsp;<img border=0 alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png"></TMPL_IF></a></td>
    28         <td class="underline" nowrap><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist&offset=<TMPL_VAR NAME=offset>">Status<TMPL_IF NAME=sortstatus>&nbsp;<img border=0 alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png"></TMPL_IF></a></td>
    29         <td class="underline" align="center" nowrap><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist&offset=<TMPL_VAR NAME=offset>">Group<TMPL_IF NAME=sortgroup>&nbsp;<img border=0 alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png"></TMPL_IF></a></td>
    30 <TMPL_ELSE>
    31         <td class="underline" nowrap>Group</td>
    32         <td class="underline" nowrap width="5%">Parent Group</td>
    33         <td class="underline" nowrap width="5%">Users</td>
    34         <td class="underline" align="center" nowrap width="5%">Domains</td>
     27        <td class="underline"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=domlist&amp;offset=<TMPL_VAR NAME=offset>">Domain<TMPL_IF NAME=sortdomain>&nbsp;<img border=0 alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png"></TMPL_IF></a></td>
     28        <td class="underline"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=domlist&amp;offset=<TMPL_VAR NAME=offset>">Status<TMPL_IF NAME=sortstatus>&nbsp;<img border=0 alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png"></TMPL_IF></a></td>
     29        <td class="underline" align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=domlist&amp;offset=<TMPL_VAR NAME=offset>">Group<TMPL_IF NAME=sortgroup>&nbsp;<img border=0 alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png"></TMPL_IF></a></td> <TMPL_ELSE>
     30        <td class="underline">Group</td>
     31        <td class="underline">Parent Group</td>
     32        <td class="underline">Users</td>
     33        <td class="underline" align="center">Domains</td>
    3534</TMPL_IF>
    36         <td class="underline" width="1%">Delete</td>
     35        <td class="underline">Delete</td>
    3736</tr>
    3837<TMPL_IF name=grouptable>
    3938<TMPL_LOOP name=grouptable>
    4039<tr class="row<TMPL_VAR name=bg>">
    41         <td><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=grpman&action=chgroup&group=<TMPL_VAR NAME=groupid>"><TMPL_VAR NAME=groupname></a></td>
    42         <td width="5%" nowrap><TMPL_VAR name=pgroup></td>
    43         <td width="5%" nowrap><TMPL_VAR name=nusers></td>
    44         <td width="5%" nowrap><TMPL_VAR name=ndomains></td>
    45         <td width="1%" nowrap align=center><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delgrp&id=<TMPL_VAR NAME=groupid>"><img src="images/trash2.png" border=0></a></td>
     40        <td><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=grpman&amp;action=chgroup&amp;group=<TMPL_VAR NAME=groupid>"><TMPL_VAR NAME=groupname></a></td>
     41        <td><TMPL_VAR name=pgroup></td>
     42        <td><TMPL_VAR name=nusers></td>
     43        <td><TMPL_VAR name=ndomains></td>
     44        <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=delgrp&amp;id=<TMPL_VAR NAME=groupid>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td>
    4645</tr>
    4746</TMPL_LOOP>
    4847<TMPL_ELSE>
    49 <tr><td colspan=5>No groups found</td></tr>
     48<tr><td colspan="5">No groups found</td></tr>
    5049</TMPL_IF>
    5150</table>
    5251
    5352</td>
     53</tr>
    5454</table>
  • trunk/templates/header.tmpl

    r2 r38  
    11<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    2 <html>
     2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    33    <head>
    44        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  • trunk/templates/login.tmpl

    r26 r38  
    1 <center>
     1<form method="post" action="dns.cgi">
     2<fieldset>
     3<input type="hidden" name="action" value="login" />
     4<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
     5<input type="hidden" name="page" value="login" />
     6
    27<table id="login">
    3 <TMPL_IF NAME=loginfailed><tr><td colspan=2 class="errmsg" align="center">Error logging in:  Invalid username or password</td></tr></TMPL_IF>
    4 <tr><td colspan=2 class="title" align="center">Please log in:</td></tr>
    5 <form method="POST" action="dns.cgi">
    6 <input type="hidden" name="action" value="login">
    7 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>">
    8 <input type="hidden" name="page" value="login">
    9 <tr><td class="inputlabel">Username:</td><td><input type="text" name="username"></td></tr>
    10 <tr><td class="inputlabel">Password:</td><td><input type="password" name="password"></td></tr>
    11 <tr><td colspan=2 class="tblsubmit" align="right"><input type="submit" value="Login"></td></tr>
     8<TMPL_IF NAME=loginfailed><tr><td colspan="2" class="errmsg" align="center">Error logging in:  Invalid username or password</td></tr></TMPL_IF>
     9<tr><td colspan="2" class="title" align="center">Please log in:</td></tr>
     10<tr><td class="inputlabel">Username:</td><td><input type="text" name="username" /></td></tr>
     11<tr><td class="inputlabel">Password:</td><td><input type="password" name="password" /></td></tr>
     12<tr><td colspan="2" class="tblsubmit" align="right"><input type="submit" value="Login" /></td></tr>
     13</table>
     14
     15</fieldset>
    1216</form>
    13 </table>
    14 </center>
  • trunk/templates/menu.tmpl

    r30 r38  
    11<td class="menu">
    22<TMPL_VAR NAME=username> logged in<br />
    3 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&action=logout">Log out</a>
    4 <hr>
    5 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist">Domains</a><br />
    6 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=useradmin">Users</a><br />
    7 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=log">Log</a><br />
    8 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=reclist&id=<TMPL_VAR NAME=group>&defrec=y">Default Records</a><br />
    9 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=axfr">AXFR Import</a><br />
    10 <hr>
     3<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;action=logout">Log out</a>
     4<hr />
     5<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=domlist">Domains</a><br />
     6<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=useradmin">Users</a><br />
     7<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=log">Log</a><br />
     8<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=reclist&amp;id=<TMPL_VAR NAME=group>&amp;defrec=y">Default Records</a><br />
     9<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=axfr">AXFR Import</a><br />
     10<hr />
    1111Current group:
    12 <form action="<TMPL_VAR NAME=whereami>" method="POST">
     12<form action="<TMPL_VAR NAME=whereami>" method="post">
     13<fieldset>
    1314<select name="group">
    14         <TMPL_LOOP NAME=grouplist><option value="<TMPL_VAR NAME=groupval>"<TMPL_IF NAME=groupactive> selected</TMPL_IF>><TMPL_VAR NAME=groupname></option>
     15        <TMPL_LOOP NAME=grouplist><option value="<TMPL_VAR NAME=groupval>"<TMPL_IF NAME=groupactive> selected="selected"</TMPL_IF>><TMPL_VAR NAME=groupname></option>
    1516        </TMPL_LOOP>
    1617</select>
    17 <input type=hidden name=action value="chgroup">
    18 <input type=submit value="Change group">
     18<input type="hidden" name="action" value="chgroup" />
     19<input type="submit" value="Change group" />
     20</fieldset>
    1921</form>
    20 <hr>
    21 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=grpman">Manage groups</a><br />
     22<hr />
     23<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=grpman">Manage groups</a><br />
    2224<TMPL_VAR NAME=grptree>
    2325<!-- hmm:  <TMPL_VAR NAME=groupname> -->
    24 <hr>
    25 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=dnsq">DNS Query</a><br />
    26 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=whoisq">WHOIS Query</a><br />
     26<hr />
     27<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=dnsq">DNS Query</a><br />
     28<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=whoisq">WHOIS Query</a><br />
    2729</td>
  • trunk/templates/newdomain.tmpl

    r24 r38  
    44
    55<td align="center">
    6 <TMPL_IF add_failed><span class="errmsg">Error adding domain <TMPL_VAR NAME=domain>: <TMPL_VAR
    7 NAME=errmsg></span></TMPL_IF>
     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="adddomain">
    12 <input type="hidden" name="newdomain" value="yes">
     10<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
     11<input type="hidden" name="page" value="adddomain" />
     12<input type="hidden" name="newdomain" value="yes" />
    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 Domain</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 domain <TMPL_VAR NAME=domain>: <TMPL_VAR NAME=errmsg></td></tr></TMPL_IF>
     18        <tr class="darkrowheader"><td colspan="2" align="center">Add Domain</td></tr>
    1819
    19         <tr bgcolor="#eeeeee">
    20                 <td width="50%">Domain Name:</td>
    21                 <td align="left"><input type="text" name="domain" value="<TMPL_VAR NAME=domain>"></td>
     20        <tr class="datalinelight">
     21                <td>Domain Name:</td>
     22                <td align="left"><input type="text" name="domain" value="<TMPL_VAR NAME=domain>" /></td>
    2223        </tr>
    23         <tr bgcolor="#eeeeee">
     24        <tr class="datalinelight">
    2425                <td>Add domain to group:</td>
    25                 <td><select name=group>
    26 <TMPL_LOOP name=grouplist>              <option value="<TMPL_VAR NAME=groupval>"<TMPL_IF groupactive> selected</TMPL_IF>><TMPL_VAR name=groupname></option>
     26                <td><select name="group">
     27<TMPL_LOOP name=grouplist>              <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 bgcolor="#eeeeee">
    31                 <td>Make domain active on next DNS propagation</td><td><input type=checkbox name=makeactive checked></td>
     31        <tr class="datalinelight">
     32                <td>Make domain active on next DNS propagation</td><td><input type="checkbox" name="makeactive" checked="checked" /></td>
    3233        </tr>
    33         <tr><td colspan=2 align="center"><input type="submit" value="Add domain"></td></tr>
    34 <tr><td>tmp note:  radio button select "group template" vs "clone domain"?</td></tr>
     34        <tr><td colspan="2" class="tblsubmit"><input type="submit" value="Add domain" /></td></tr>
     35<tr><td colspan="2">tmp note:  radio button select "group template" vs "clone domain"?</td></tr>
    3536    </table>
    3637    </td>
     
    3839</table>
    3940
     41</fieldset>
    4042</form>
    4143
  • 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
  • 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 
  • trunk/templates/newuser.tmpl

    r24 r38  
    44
    55<td align="center">
    6 <TMPL_IF add_failed><span class="errmsg">Error adding user <TMPL_VAR NAME=username>: <TMPL_VAR
    7 NAME=errmsg></span></TMPL_IF>
    8 <form action="dns.cgi">
    96
    10 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>">
    11 <input type="hidden" name="page" value="adduser">
    12 <input type="hidden" name="newuser" value="yes">
     7<form action="dns.cgi" method="post">
     8<fieldset>
    139
    14 <table border=0 width="450" bgcolor="white">
     10<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
     11<input type="hidden" name="page" value="adduser" />
     12<input type="hidden" name="newuser" value="yes" />
     13
     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 User</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 user <TMPL_VAR NAME=uname>: <TMPL_VAR NAME=errmsg></td></tr></TMPL_IF>
     18        <tr class="darkrowheader"><td colspan="2" align="center">Add User</td></tr>
    1819
    19         <tr bgcolor="#eeeeee">
    20                 <td width="50%">Username:</td>
    21                 <td align="left"><input type="text" name="username" value="<TMPL_VAR NAME=username>"></td>
     20        <tr class="datalinelight">
     21                <td>Username:</td>
     22                <td align="left"><input type="text" name="uname" value="<TMPL_VAR NAME=uname>" /></td>
    2223        </tr>
    23         <tr bgcolor="#eeeeee">
     24        <tr class="datalinelight">
    2425                <td>First Name:</td>
    25                 <td align="left"><input type="text" name="fname" value="<TMPL_VAR NAME=fname>"></td>
     26                <td align="left"><input type="text" name="fname" value="<TMPL_VAR NAME=fname>" /></td>
    2627        </tr>
    27         <tr bgcolor="#eeeeee">
     28        <tr class="datalinelight">
    2829                <td>Last Name:</td>
    29                 <td align="left"><input type="text" name="lname" value="<TMPL_VAR NAME=lname>"></td>
     30                <td align="left"><input type="text" name="lname" value="<TMPL_VAR NAME=lname>" /></td>
    3031        </tr>
    31         <tr bgcolor="#eeeeee">
     32        <tr class="datalinelight">
    3233                <td>Password:</td>
    33                 <td align="left"><input type="password" name="pass1" value="<TMPL_VAR NAME=pass1>"></td>
     34                <td align="left"><input type="password" name="pass1" value="<TMPL_VAR NAME=pass1>" /></td>
    3435        </tr>
    35         <tr bgcolor="#eeeeee">
     36        <tr class="datalinelight">
    3637                <td>Confirm Password:</td>
    37                 <td align="left"><input type="password" name="pass2" value="<TMPL_VAR NAME=pass2>"></td>
     38                <td align="left"><input type="password" name="pass2" value="<TMPL_VAR NAME=pass2>" /></td>
    3839        </tr>
    39         <tr bgcolor="#eeeeee">
     40        <tr class="datalinelight">
    4041                <td>Account Type:</td>
    41                 <td align="left"><select name=accttype>
    42 <TMPL_LOOP name=actypelist>             <option value="<TMPL_VAR NAME=actypeval>"<TMPL_IF typesel> selected</TMPL_IF>><TMPL_VAR NAME=actypename></option>
     42                <td align="left"><select name="accttype">
     43<TMPL_LOOP name=actypelist>             <option value="<TMPL_VAR NAME=actypeval>"<TMPL_IF typesel> selected="selected"</TMPL_IF>><TMPL_VAR NAME=actypename></option>
    4344</TMPL_LOOP>            </select></td>
    4445        </tr>
    45         <tr bgcolor="#eeeeee">
     46        <tr class="datalinelight">
    4647                <td>Add user in group:</td>
    47                 <td><select name=group>
    48 <TMPL_LOOP name=grouplist>              <option value="<TMPL_VAR NAME=groupval>"<TMPL_IF groupactive> selected</TMPL_IF>><TMPL_VAR name=groupname></option>
     48                <td><select name="group">
     49<TMPL_LOOP name=grouplist>              <option value="<TMPL_VAR NAME=groupval>"<TMPL_IF groupactive> selected="selected"</TMPL_IF>><TMPL_VAR name=groupname></option>
    4950</TMPL_LOOP>            </select></td>
    5051        </tr>
    51         <tr bgcolor="#eeeeee">
    52                 <td>Create as active user</td><td><input type=checkbox name=makeactive checked></td>
     52        <tr class="datalinelight">
     53                <td>Create as active user</td><td><input type="checkbox" name="makeactive" checked="checked" /></td>
    5354        </tr>
    54         <tr><td colspan=2 align="center"><input type="submit" value="Add user"></td></tr>
    55 <tr><td>tmp note:  radio button select "group template" vs "clone user"?</td></tr>
     55        <tr><td colspan="2" class="tblsubmit"><input type="submit" value="Add user" /></td></tr>
     56<tr><td colspan="2">tmp note:  radio button select "group template" vs "clone user"?</td></tr>
    5657    </table>
    5758    </td>
     
    5960</table>
    6061
     62</fieldset>
    6163</form>
    6264
  • 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>
  • trunk/templates/record.tmpl

    r17 r38  
    55<td align="center">
    66
    7 <TMPL_IF failed><div class="errmsg">Error <TMPL_VAR NAME=wastrying> record: <TMPL_VARNAME=errmsg></div></TMPL_IF>
    8 <form action="dns.cgi" method="POST">
    9 <input type="hidden" name="page" value="record">
    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>">
    13 <input type="hidden" name="id" value="<TMPL_VAR NAME=id>">
    14 <input type="hidden" name="recact" value="<TMPL_VAR NAME=recact>">
    15         <table border=0 bgcolor="white">
     7<form action="dns.cgi" method="post">
     8<fieldset>
    169
     10<input type="hidden" name="page" value="record" />
     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>" />
     14<input type="hidden" name="id" value="<TMPL_VAR NAME=id>" />
     15<input type="hidden" name="recact" value="<TMPL_VAR NAME=recact>" />
     16
     17<table class="container" width="450">
    1718<tr><td>
    1819
    19         <table border=0 width="100%">
    20         <tr class="tableheader"><td align="center" colspan=2><TMPL_VAR NAME=todo>: <TMPL_VAR NAME=dohere></td></tr>
     20    <table border="0" cellspacing="2" cellpadding="2" width="100%">
     21<TMPL_IF failed><tr><td class="errhead" colspan="2">Error <TMPL_VAR NAME=wastrying> record: <TMPL_VARNAME=errmsg></td></tr></TMPL_IF>
     22        <tr class="tableheader"><td align="center" colspan="2"><TMPL_VAR NAME=todo>: <TMPL_VAR NAME=dohere></td></tr>
    2123        <tr class="datalinelight">
    2224                <td>Hostname</td>
    23                 <td><input type="text" name="name" value="<TMPL_VAR NAME=name>"></td>
     25                <td><input type="text" name="name" value="<TMPL_VAR NAME=name>" /></td>
    2426        </tr>
    2527        <tr class="datalinelight">
     
    2729                <td><select name="type">
    2830        <TMPL_LOOP NAME=typelist>
    29                         <option value="<TMPL_VAR NAME=recval>"<TMPL_IF NAME=tselect> selected</TMPL_IF>><TMPL_VAR NAME=recname></option>
     31                        <option value="<TMPL_VAR NAME=recval>"<TMPL_IF NAME=tselect> selected="selected"</TMPL_IF>><TMPL_VAR NAME=recname></option>
    3032        </TMPL_LOOP>
    3133                </select></td>
     
    3335        <tr class="datalinelight">
    3436                <td>Address</td>
    35                 <td><input type="text" name="address" value="<TMPL_VAR NAME=address>"></td>
     37                <td><input type="text" name="address" value="<TMPL_VAR NAME=address>" /></td>
    3638        </tr>
    3739        <tr class="datalinelight">
    3840                <td>Distance (MX and SRV only)</td>
    39                 <td><input type="text" name="distance" value="<TMPL_VAR NAME=distance>" size=5 maxlength=10></td>
     41                <td><input type="text" name="distance" value="<TMPL_VAR NAME=distance>" size="5" maxlength="10" /></td>
    4042        </tr>
    4143        <tr class="datalinelight">
    4244                <td>Weight (SRV only)</td>
    43                 <td><input type="text" name="weight" value="<TMPL_VAR NAME=weight>" size=5 maxlength=10></td>
     45                <td><input type="text" name="weight" value="<TMPL_VAR NAME=weight>" size="5" maxlength="10" /></td>
    4446        </tr>
    4547        <tr class="datalinelight">
    4648                <td>Port (SRV only)</td>
    47                 <td><input type="text" name="port" value="<TMPL_VAR NAME=port>" size=5 maxlength=10></td>
     49                <td><input type="text" name="port" value="<TMPL_VAR NAME=port>" size="5" maxlength="10" /></td>
    4850        </tr>
    4951        <tr class="datalinelight">
    5052                <td>TTL</td>
    51                 <td><input size=7 maxlenth=20 type="text" name="ttl" value="<TMPL_VAR NAME=ttl>">
     53                <td><input size="7" maxlength="20" type="text" name="ttl" value="<TMPL_VAR NAME=ttl>" /></td>
    5254        </tr>
    5355        <tr class="datalinelight">
    54                 <td colspan=2 align=center><input type="submit" value=" <TMPL_VAR NAME=todo> "></td>
     56                <td colspan="2" align="center"><input type="submit" value=" Add record " /></td>
    5557        </tr>
    5658        </table>
     
    5961</table>
    6062
     63</fieldset>
    6164</form>   
    6265
    63 
    64 </td></tr></table>
    65 
     66</td>
     67</tr>
     68</table>
  • trunk/templates/soadata.tmpl

    r2 r38  
    1 <table name=soahead border=0 cellspacing=3 cellpadding=3 width="100%">
     1<table id="soahead" border="0" cellspacing="3" cellpadding="3" width="100%">
    22<tr class="darkrowheader">
    33        <td>SOA:</td>
    4         <td width="5%"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=editsoa&recid=<TMPL_VAR NAME=recid>&defrec=<TMPL_VAR NAME=defrec>">edit</a></td>
     4        <td><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=editsoa&amp;recid=<TMPL_VAR NAME=recid>&amp;defrec=<TMPL_VAR NAME=defrec>">edit</a></td>
    55</tr>
    66</table>
    77
    8 <table name=soadetail>
     8<table id="soadetail">
    99<tr class="datalinelight">
    10         <td width="10%" nowrap>Contact address:</td>
    11         <td width="40%" nowrap><TMPL_VAR NAME=contact></td>
    12         <td width="10%" nowrap>Primary Nameserver:</td>
    13         <td width="40%" nowrap><TMPL_VAR NAME=prins></td>
     10        <td>Contact address:</td>
     11        <td><TMPL_VAR NAME=contact></td>
     12        <td>Primary Nameserver:</td>
     13        <td><TMPL_VAR NAME=prins></td>
    1414</tr>
    1515<tr class="datalinelight">
    16         <td width="10%" nowrap>Serial Number:</td>
    17         <td width="40%" nowrap><TMPL_VAR NAME=serial></td>
    18         <td width="10%" nowrap>Refresh:</td>
    19         <td width="40%" nowrap><TMPL_VAR NAME=refresh></td>
     16        <td>Serial Number:</td>
     17        <td><TMPL_VAR NAME=serial></td>
     18        <td>Refresh:</td>
     19        <td><TMPL_VAR NAME=refresh></td>
    2020</tr>
    2121<tr class="datalinelight">
    22         <td width="10%" nowrap>Retry:</td>
    23         <td width="40%" nowrap><TMPL_VAR NAME=retry></td>
    24         <td width="10%" nowrap>Expiration:</td>
    25         <td width="40%" nowrap><TMPL_VAR NAME=expire></td>
     22        <td>Retry:</td>
     23        <td><TMPL_VAR NAME=retry></td>
     24        <td>Expiration:</td>
     25        <td><TMPL_VAR NAME=expire></td>
    2626</tr>
    2727<tr class="datalinelight">
    28         <td width="10%" nowrap>Minimum TTL:</td>
    29         <td width="40%" nowrap><TMPL_VAR NAME=minttl></td>
    30         <td width="10%" nowrap>Default TTL:</td>
    31         <td width="40%" nowrap><TMPL_VAR NAME=ttl></td>
     28        <td>Minimum TTL:</td>
     29        <td><TMPL_VAR NAME=minttl></td>
     30        <td>Default TTL:</td>
     31        <td><TMPL_VAR NAME=ttl></td>
    3232</tr>
    3333</table>
  • trunk/templates/useradmin.tmpl

    r25 r38  
    1010
    1111<table width="98%">
    12 <tr><td colspan=3 align=center><span class="pgtitle">Manage users</span></td></tr>
     12<tr><td colspan="3" align="center"><span class="pgtitle">Manage users</span></td></tr>
    1313<tr><td><TMPL_INCLUDE NAME="pgcount.tmpl"></td>
    1414<td>
    1515<TMPL_INCLUDE NAME="fpnla.tmpl">
    16 </td><td align=right>insert search box here</td></tr>
     16</td><td align="right">insert search box here</td></tr>
    1717
    18 <tr><td colspan=3 align=center>insert letter search here</td></tr>
     18<tr><td colspan="3" align="center">insert letter search here</td></tr>
    1919
    20 <tr><td colspan=3 align=right><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=newuser">New User</a></td></tr>
     20<tr><td colspan="3" align="right"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=newuser">New User</a></td></tr>
    2121</table>
    2222
    23 <table border=0 cellspacing="5" cellpadding="3">
     23<table border="0" cellspacing="5" cellpadding="3">
    2424<tr>
    2525<TMPL_IF NAME=foobarbaz>
    2626<!-- This block to be un-TMPL_IF'ed once we care about sort order - by default, we sort by domain, ascending -->
    27         <td class="underline" nowrap><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist&offset=<TMPL_VAR NAME=offset>">Domain<TMPL_IF NAME=sortdomain>&nbsp;<img border=0 alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png"></TMPL_IF></a></td>
    28         <td class="underline" nowrap><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist&offset=<TMPL_VAR NAME=offset>">Status<TMPL_IF NAME=sortstatus>&nbsp;<img border=0 alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png"></TMPL_IF></a></td>
    29         <td class="underline" align="center" nowrap><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist&offset=<TMPL_VAR NAME=offset>">Group<TMPL_IF NAME=sortuser>&nbsp;<img border=0 alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png"></TMPL_IF></a></td>
    30 <TMPL_ELSE>
    31         <td class="underline" nowrap>Username</td>
    32         <td class="underline" nowrap>Full name</td>
    33         <td class="underline" nowrap>Type</td>
    34         <td class="underline" nowrap width="5%">Group</td>
    35         <td class="underline" nowrap>Status</td>
     27        <td class="underline" nowrap><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=domlist&amp;offset=<TMPL_VAR NAME=offset>">Domain<TMPL_IF NAME=sortdomain>&nbsp;<img alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></a></td>
     28        <td class="underline" nowrap><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=domlist&amp;offset=<TMPL_VAR NAME=offset>">Status<TMPL_IF NAME=sortstatus>&nbsp;<img alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></a></td>
     29        <td class="underline" align="center" nowrap><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=domlist&amp;offset=<TMPL_VAR NAME=offset>">Group<TMPL_IF NAME=sortuser>&nbsp;<img alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></a></td> <TMPL_ELSE>
     30        <td>Username</td>
     31        <td>Full name</td>
     32        <td>Type</td>
     33        <td>Group</td>
     34        <td>Status</td>
    3635</TMPL_IF>
    37         <td class="underline" width="1%">Delete</td>
     36        <td>Delete</td>
    3837</tr>
    3938<TMPL_IF name=usertable>
    4039<TMPL_LOOP name=usertable>
    4140<tr class="row<TMPL_VAR name=bg>">
    42         <td><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=userman&action=chuser&user=<TMPL_VAR NAME=userid>"><TMPL_VAR NAME=username></a></td>
    43         <td width="5%" nowrap><TMPL_VAR name=userfull></td>
    44         <td width="5%" nowrap><TMPL_VAR name=usertype></td>
    45         <td width="5%" nowrap><TMPL_VAR name=usergroup></td>
    46         <td width="1%" nowrap align=center><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=useradmin<TMPL_IF
    47 NAME=offset>&offset=<TMPL_VAR NAME=offset></TMPL_IF>&id=<TMPL_VAR NAME=userid>&action=<TMPL_IF
    48 NAME=mkactive>useron<TMPL_ELSE>useroff</TMPL_IF>"><TMPL_IF
    49 NAME=mkactive>enabled<TMPL_ELSE>disabled</TMPL_IF></a></td>
    50         <td width="1%" nowrap align=center><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=deluser&id=<TMPL_VAR NAME=userid>"><img src="images/trash2.png" border=0></a></td>
     41        <td><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=userman&amp;action=chuser&amp;user=<TMPL_VAR NAME=userid>"><TMPL_VAR NAME=username></a></td>
     42        <td><TMPL_VAR name=userfull></td>
     43        <td><TMPL_VAR name=usertype></td>
     44        <td><TMPL_VAR name=usergroup></td>
     45        <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=useradmin<TMPL_IF NAME=offset>&amp;offset=<TMPL_VAR NAME=offset></TMPL_IF>&amp;id=<TMPL_VAR NAME=userid>&amp;action=<TMPL_IF NAME=mkactive>useron<TMPL_ELSE>useroff</TMPL_IF>"><TMPL_IF NAME=mkactive>enabled<TMPL_ELSE>disabled</TMPL_IF></a></td>
     46        <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=deluser&amp;id=<TMPL_VAR NAME=userid>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td>
    5147</tr>
    5248</TMPL_LOOP>
    5349<TMPL_ELSE>
    54 <tr><td colspan=5>No users found</td></tr>
     50<tr><td colspan="5">No users found</td></tr>
    5551</TMPL_IF>
    5652</table>
    5753
    5854</td>
     55</tr>
    5956</table>
Note: See TracChangeset for help on using the changeset viewer.