source: trunk/templates/domlist.tmpl@ 353

Last change on this file since 353 was 275, checked in by Kris Deugau, 13 years ago

/trunk

Convert domStatus() and caller to zoneStatus() for reverse DNS
Add status change to revzones page handling
See #26

File size: 2.8 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_IF resultmsg>
8<div class="result"><TMPL_VAR NAME=resultmsg></div>
9</TMPL_IF>
10<TMPL_IF errmsg>
11<div class="errmsg"><TMPL_VAR NAME=errmsg></div>
12</TMPL_IF>
13
14<table width="98%">
15<tr><th colspan="3"><div class="center maintitle"><TMPL_IF domlist>Domain<TMPL_ELSE>Reverse zone</TMPL_IF> list</div></th></tr>
16<tr>
17<td class="leftthird"><TMPL_INCLUDE NAME="pgcount.tmpl"></td>
18<td align="center"><TMPL_INCLUDE NAME="fpnla.tmpl"></td>
19<td class="rightthird"><TMPL_INCLUDE NAME="sbox.tmpl"></td>
20</tr>
21<TMPL_IF domlist><tr><td colspan="3" align="center"><TMPL_INCLUDE NAME="lettsearch.tmpl"></td></tr></TMPL_IF>
22<tr><td colspan="3" align="right">
23<TMPL_IF domain_create>
24<TMPL_IF domlist>
25<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=newdomain">New Domain</a>
26<TMPL_ELSE>
27<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=newrevzone">New Reverse Zone</a>
28</TMPL_IF>
29</TMPL_IF>
30</td></tr>
31</table>
32
33<table width="98%" border="0" cellspacing="4" cellpadding="3">
34<tr>
35<TMPL_LOOP NAME=colheads>
36<td class="datahead_<TMPL_IF firstcol>l<TMPL_ELSE>s</TMPL_IF>"><a href="dns.cgi?sid=<TMPL_VAR
37NAME=sid>&amp;page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&amp;offset=<TMPL_VAR
38NAME=offset></TMPL_IF>&amp;sortby=<TMPL_VAR NAME=sortby>&amp;order=<TMPL_VAR NAME=order>"><TMPL_VAR
39NAME=colname></a><TMPL_IF NAME=sortorder>&nbsp;<img alt="<TMPL_VAR NAME=sortorder>"
40src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></td>
41</TMPL_LOOP>
42<TMPL_IF domain_edit> <td class="datahead_s">Change Status</td></TMPL_IF>
43<TMPL_IF domain_delete> <td class="datahead_s">Delete</td></TMPL_IF>
44</tr>
45<TMPL_IF name=domtable>
46<TMPL_LOOP name=domtable>
47<tr class="row<TMPL_IF __odd__>1<TMPL_ELSE>0</TMPL_IF>">
48 <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>
49 <td><TMPL_IF status>Active<TMPL_ELSE>Inactive</TMPL_IF></td>
50 <td><TMPL_VAR name=group></td>
51<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>
52<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>
53</tr>
54</TMPL_LOOP>
55<TMPL_ELSE>
56<tr><td colspan="5" align="center">No <TMPL_IF domlist>domains<TMPL_ELSE>reverse zones</TMPL_IF> found</td></tr>
57</TMPL_IF>
58</table>
59
60</td>
61</tr>
62</table>
Note: See TracBrowser for help on using the repository browser.