source: trunk/templates/domlist.tmpl@ 19

Last change on this file since 19 was 17, checked in by Kris Deugau, 15 years ago

/trunk

checkpoint
dns.cgi:

  • misc group-handling tweaks/fixme-fixes
  • misc code and SQL formatting normalizations
  • add group management list-the-groups page
  • extend common-template-parameters section

DNSDB.pm:

  • fix start point for returned records in record list
  • fix several return-on-error conditions for record add/update

templates/

  • add group management/comment to menu
  • use fpnla.tmpl in domlist.tmpl
  • misc minor fixups
File size: 2.6 KB
Line 
1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
4
5<td align="center">
6<table width="98%">
7<tr><td colspan=3 align=center>Domain list</td></tr>
8<tr><td><TMPL_INCLUDE NAME="pgcount.tmpl"></td>
9<td>
10<TMPL_INCLUDE NAME="fpnla.tmpl">
11</td><td align=right>insert search box here</td></tr>
12
13<tr><td colspan=3 align=center>insert letter search here</td></tr>
14
15<tr><td colspan=3 align=right><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=newdomain">New Domain</a></td></tr>
16</table>
17
18<table border=0 cellspacing="5" cellpadding="3">
19<tr>
20<TMPL_IF NAME=foobarbaz>
21<!-- This block to be un-TMPL_IF'ed once we care about sort order - by default, we sort by domain, ascending -->
22 <td class="underline" nowrap><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist&offset=<TMPL_VAR NAME=offset>">Domain<TMPL_IF NAME=sortdomain>&nbsp;<img border=0 alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png"></TMPL_IF></a></td>
23 <td class="underline" nowrap><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist&offset=<TMPL_VAR NAME=offset>">Status<TMPL_IF NAME=sortstatus>&nbsp;<img border=0 alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png"></TMPL_IF></a></td>
24 <td class="underline" align="center" nowrap><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist&offset=<TMPL_VAR NAME=offset>">Group<TMPL_IF NAME=sortgroup>&nbsp;<img border=0 alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png"></TMPL_IF></a></td>
25<TMPL_ELSE>
26 <td class="underline" nowrap>Domain</td>
27 <td class="underline" nowrap>Status</td>
28 <td class="underline" align="center" nowrap>Group</td>
29</TMPL_IF>
30 <td class="underline" align="center" nowrap>Change Status</td>
31 <td class="underline" width="1%">Delete</td>
32</tr>
33<TMPL_IF name=domtable>
34<TMPL_LOOP name=domtable>
35<tr class="row<TMPL_VAR name=bg>">
36 <td><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=reclist&id=<TMPL_VAR NAME=domainid>&defrec=n"><TMPL_VAR NAME=domain></a></td>
37 <td width="1%" nowrap><TMPL_VAR name=status></td>
38 <td width="1%" nowrap><TMPL_VAR name=group></td>
39 <td width="1%" nowrap align=center><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist<TMPL_IF NAME=offset>&offset=<TMPL_VAR NAME=offset></TMPL_IF>&id=<TMPL_VAR NAME=domainid>&action=<TMPL_IF NAME=mkactive>domon<TMPL_ELSE>domoff</TMPL_IF>"><TMPL_IF NAME=mkactive>activate<TMPL_ELSE>deactivate</TMPL_IF></a></td>
40 <td width="1%" nowrap align=center><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=deldom&id=<TMPL_VAR NAME=domainid>"><img src="images/trash2.png" border=0></a></td>
41</tr>
42</TMPL_LOOP>
43<TMPL_ELSE>
44<tr><td colspan=5>No domains found</td></tr>
45</TMPL_IF>
46</table>
47
48</td>
49</table>
Note: See TracBrowser for help on using the repository browser.