source: trunk/templates/domlist.tmpl@ 505

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

/trunk

Overhaul session handling; pure URL-based sessions are subject to
copy-paste session-stealing. Convert to cookie-based session tracking
instead. This also provides bonuses in terms of inlinks from other
utilities or copy-paste links.
While session-handling was in pieces, add "pick-up-where-I-left-off"
login handling so that logins don't always end up only on the initial
domain list. This is especially handy for copy-paste links.

Also clean up some of the docucomments, use the CGI::Simple object to
do 302 redirects, and bring the revzone default sort field setup into
line with other thing-lists.

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