source: trunk/templates/domlist.tmpl@ 782

Last change on this file since 782 was 731, checked in by Kris Deugau, 8 years ago

/trunk

Refine pages with alternating row colours to use CSS instead of
HTML::Template's even/odd loop specials, and move the
bottom-of-page first/previous/next/last/all blob out of the data table
into its own div for consistent layout.

File size: 2.8 KB
RevLine 
[589]1<body>
2<div id="main">
3
[2]4<table class="wholepage"><tr>
5<TMPL_INCLUDE NAME="menu.tmpl">
6
[100]7<td align="center" valign="top">
[22]8
[378]9<TMPL_INCLUDE NAME="msgblock.tmpl">
[22]10
[2]11<table width="98%">
[239]12<tr><th colspan="3"><div class="center maintitle"><TMPL_IF domlist>Domain<TMPL_ELSE>Reverse zone</TMPL_IF> list</div></th></tr>
[41]13<tr>
14<td class="leftthird"><TMPL_INCLUDE NAME="pgcount.tmpl"></td>
15<td align="center"><TMPL_INCLUDE NAME="fpnla.tmpl"></td>
16<td class="rightthird"><TMPL_INCLUDE NAME="sbox.tmpl"></td>
17</tr>
[239]18<TMPL_IF domlist><tr><td colspan="3" align="center"><TMPL_INCLUDE NAME="lettsearch.tmpl"></td></tr></TMPL_IF>
19<tr><td colspan="3" align="right">
20<TMPL_IF domain_create>
21<TMPL_IF domlist>
[493]22<a href="<TMPL_VAR NAME=script_self>&amp;page=newdomain">New Domain</a>
[239]23<TMPL_ELSE>
[493]24<a href="<TMPL_VAR NAME=script_self>&amp;page=newrevzone">New Reverse Zone</a>
[239]25</TMPL_IF>
26</TMPL_IF>
27</td></tr>
[2]28</table>
29
[731]30<table width="98%" border="0" cellspacing="4" cellpadding="3" class="altrows">
[2]31<tr>
[493]32<TMPL_LOOP NAME=colheads> <td class="datahead_<TMPL_IF __first__>l<TMPL_ELSE>s</TMPL_IF>"><a href="<TMPL_VAR
33 NAME=script_self>&amp;page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&amp;offset=<TMPL_VAR
[379]34 NAME=offset></TMPL_IF>&amp;sortby=<TMPL_VAR NAME=sortby>&amp;order=<TMPL_VAR NAME=order>"><TMPL_VAR
35 NAME=colname></a><TMPL_IF NAME=sortorder>&nbsp;<img alt="<TMPL_VAR NAME=sortorder>" src="images/<TMPL_VAR
36 NAME=sortorder>.png" /></TMPL_IF></td>
[44]37</TMPL_LOOP>
[95]38<TMPL_IF domain_edit> <td class="datahead_s">Change Status</td></TMPL_IF>
39<TMPL_IF domain_delete> <td class="datahead_s">Delete</td></TMPL_IF>
[2]40</tr>
41<TMPL_IF name=domtable>
42<TMPL_LOOP name=domtable>
[731]43<tr>
[704]44 <td align="left"><a href="<TMPL_VAR NAME=script_self>&amp;page=reclist&amp;id=<TMPL_VAR NAME=zoneid>&amp;defrec=n<TMPL_UNLESS domlist>&amp;revrec=y</TMPL_UNLESS>"><TMPL_VAR NAME=zone></a><TMPL_IF location> (<TMPL_VAR NAME=location>)</TMPL_IF></td>
[239]45 <td><TMPL_IF status>Active<TMPL_ELSE>Inactive</TMPL_IF></td>
[38]46 <td><TMPL_VAR name=group></td>
[572]47<TMPL_IF domain_edit> <td align="center"><a href="<TMPL_VAR NAME=script_self>&amp;page=<TMPL_VAR NAME=curpage><TMPL_IF NAME=offset>&amp;offset=<TMPL_VAR NAME=offset></TMPL_IF>&amp;id=<TMPL_VAR NAME=zoneid>&amp;zonestatus=<TMPL_IF status>domoff<TMPL_ELSE>domon</TMPL_IF>"><TMPL_IF status>deactivate<TMPL_ELSE>activate</TMPL_IF></a></td></TMPL_IF>
[574]48<TMPL_IF domain_delete> <td align="center"><a href="<TMPL_VAR NAME=script_self>&amp;page=<TMPL_IF domlist>deldom<TMPL_ELSE>delrevzone</TMPL_IF>&amp;id=<TMPL_VAR NAME=zoneid>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td></TMPL_IF>
[2]49</tr>
50</TMPL_LOOP>
51<TMPL_ELSE>
[239]52<tr><td colspan="5" align="center">No <TMPL_IF domlist>domains<TMPL_ELSE>reverse zones</TMPL_IF> found</td></tr>
[2]53</TMPL_IF>
54</table>
55
[731]56<TMPL_IF domtable><div class="center vpad"><TMPL_INCLUDE NAME="fpnla.tmpl"></div></TMPL_IF>
57
[2]58</td>
[30]59</tr>
[2]60</table>
Note: See TracBrowser for help on using the repository browser.