Ignore:
Timestamp:
10/02/12 18:15:38 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Caught some inconsistencies getting the RPC CGI updated.

  • Normalize to use of odd in record list, same as other lists. Also normalize which case is which in templates so all lists look consistent.
  • Normalize calling convention and database calls in list-getting subs
    • getZoneList, with light tweak to template for field name
    • getDomRecs, with conversion from fixed arguments to hash
  • Normalize checks on list offsets to the best one, from getZoneList
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/domlist.tmpl

    r379 r397  
    3939<TMPL_IF name=domtable>
    4040<TMPL_LOOP name=domtable>
    41 <tr class="row<TMPL_IF __odd__>1<TMPL_ELSE>0</TMPL_IF>">
    42         <td align="left"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=reclist&amp;id=<TMPL_VAR NAME=domainid>&amp;defrec=n<TMPL_UNLESS domlist>&amp;revrec=y</TMPL_UNLESS>"><TMPL_VAR NAME=domain></a></td>
     41<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
     42        <td align="left"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=reclist&amp;id=<TMPL_VAR NAME=domain_id>&amp;defrec=n<TMPL_UNLESS domlist>&amp;revrec=y</TMPL_UNLESS>"><TMPL_VAR NAME=domain></a></td>
    4343        <td><TMPL_IF status>Active<TMPL_ELSE>Inactive</TMPL_IF></td>
    4444        <td><TMPL_VAR name=group></td>
Note: See TracChangeset for help on using the changeset viewer.