source: trunk/templates/domlist.tmpl@ 393

Last change on this file since 393 was 379, checked in by Kris Deugau, 12 years ago

/trunk

Normalize the formatting for the column-header-creator loop in the
templates. Use first instead of generating this by hand in Perl.

Also fix up whitespace to remove some newlines that showed up in odd
places in the output.

File size: 2.7 KB
Line 
1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
4
5<td align="center" valign="top">
6
7<TMPL_INCLUDE NAME="msgblock.tmpl">
8
9<table width="98%">
10<tr><th colspan="3"><div class="center maintitle"><TMPL_IF domlist>Domain<TMPL_ELSE>Reverse zone</TMPL_IF> list</div></th></tr>
11<tr>
12<td class="leftthird"><TMPL_INCLUDE NAME="pgcount.tmpl"></td>
13<td align="center"><TMPL_INCLUDE NAME="fpnla.tmpl"></td>
14<td class="rightthird"><TMPL_INCLUDE NAME="sbox.tmpl"></td>
15</tr>
16<TMPL_IF domlist><tr><td colspan="3" align="center"><TMPL_INCLUDE NAME="lettsearch.tmpl"></td></tr></TMPL_IF>
17<tr><td colspan="3" align="right">
18<TMPL_IF domain_create>
19<TMPL_IF domlist>
20<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=newdomain">New Domain</a>
21<TMPL_ELSE>
22<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=newrevzone">New Reverse Zone</a>
23</TMPL_IF>
24</TMPL_IF>
25</td></tr>
26</table>
27
28<table width="98%" border="0" cellspacing="4" cellpadding="3">
29<tr>
30<TMPL_LOOP NAME=colheads> <td class="datahead_<TMPL_IF __first__>l<TMPL_ELSE>s</TMPL_IF>"><a href="dns.cgi?sid=<TMPL_VAR
31 NAME=sid>&amp;page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&amp;offset=<TMPL_VAR
32 NAME=offset></TMPL_IF>&amp;sortby=<TMPL_VAR NAME=sortby>&amp;order=<TMPL_VAR NAME=order>"><TMPL_VAR
33 NAME=colname></a><TMPL_IF NAME=sortorder>&nbsp;<img alt="<TMPL_VAR NAME=sortorder>" src="images/<TMPL_VAR
34 NAME=sortorder>.png" /></TMPL_IF></td>
35</TMPL_LOOP>
36<TMPL_IF domain_edit> <td class="datahead_s">Change Status</td></TMPL_IF>
37<TMPL_IF domain_delete> <td class="datahead_s">Delete</td></TMPL_IF>
38</tr>
39<TMPL_IF name=domtable>
40<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>
43 <td><TMPL_IF status>Active<TMPL_ELSE>Inactive</TMPL_IF></td>
44 <td><TMPL_VAR name=group></td>
45<TMPL_IF domain_edit> <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=<TMPL_VAR NAME=curpage><TMPL_IF NAME=offset>&amp;offset=<TMPL_VAR NAME=offset></TMPL_IF>&amp;id=<TMPL_VAR NAME=domainid>&amp;zonestatus=<TMPL_IF status>domoff<TMPL_ELSE>domon</TMPL_IF>"><TMPL_IF status>deactivate<TMPL_ELSE>activate</TMPL_IF></a></td></TMPL_IF>
46<TMPL_IF domain_delete> <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=<TMPL_IF domlist>deldom<TMPL_ELSE>delrevzone</TMPL_IF>&amp;id=<TMPL_VAR NAME=domainid>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td></TMPL_IF>
47</tr>
48</TMPL_LOOP>
49<TMPL_ELSE>
50<tr><td colspan="5" align="center">No <TMPL_IF domlist>domains<TMPL_ELSE>reverse zones</TMPL_IF> found</td></tr>
51</TMPL_IF>
52</table>
53
54</td>
55</tr>
56</table>
Note: See TracBrowser for help on using the repository browser.