source: branches/secondaryzones/templates/secondaryzones.tmpl@ 911

Last change on this file since 911 was 911, checked in by Kris Deugau, 31 hours ago

/branches/secondaryzones

First chunk of adding secondary zone management

  • Menu link
  • Zone list page
  • Extend getZoneCount() and getZoneList() to read the secondary zone table
File size: 2.7 KB
Line 
1<body>
2<div id="main">
3
4<table class="wholepage"><tr>
5<TMPL_INCLUDE NAME="menu.tmpl">
6
7<td align="center" valign="top">
8
9<TMPL_INCLUDE NAME="msgblock.tmpl">
10
11<table width="98%">
12<tr><th colspan="3"><div class="center maintitle">Secondary zones</div></th></tr>
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>
18<tr><td colspan="3" align="center"><TMPL_INCLUDE NAME="lettsearch.tmpl"></td></tr>
19<tr><td colspan="3" align="right">
20<TMPL_IF secondary_create>
21<a href="<TMPL_VAR NAME=script_self>&amp;page=newsecondary">New Secondary Zone</a>
22</TMPL_IF>
23</td></tr>
24</table>
25
26<table width="98%" border="0" cellspacing="4" cellpadding="3" class="altrows">
27<tr>
28<TMPL_LOOP NAME=colheads> <td class="datahead_<TMPL_IF __first__>l<TMPL_ELSE>s</TMPL_IF>"><a href="<TMPL_VAR
29 NAME=script_self>&amp;page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&amp;offset=<TMPL_VAR
30 NAME=offset></TMPL_IF>&amp;sortby=<TMPL_VAR NAME=sortby>&amp;order=<TMPL_VAR NAME=order>"><TMPL_VAR
31 NAME=colname></a><TMPL_IF NAME=sortorder>&nbsp;<img alt="<TMPL_VAR NAME=sortorder>" src="images/<TMPL_VAR
32 NAME=sortorder>.png" /></TMPL_IF></td>
33</TMPL_LOOP>
34<TMPL_IF secondary_edit> <td class="datahead_s">Change Status</td></TMPL_IF>
35<TMPL_IF secondary_delete> <td class="datahead_s">Delete</td></TMPL_IF>
36</tr>
37<TMPL_IF name=zonetable>
38<TMPL_LOOP name=zonetable>
39<tr>
40<!-- <td align="left"><a href="<TMPL_VAR NAME=script_self>&amp;page=reclist&amp;id=<TMPL_VAR NAME=zoneid>&amp;secondary=y"><TMPL_VAR NAME=zone></a><TMPL_IF location> (<TMPL_VAR NAME=location>)</TMPL_IF></td> -->
41 <td align="left"><a href="<TMPL_VAR NAME=script_self>&amp;page=editsecondary&amp;id=<TMPL_VAR NAME=zoneid>"><TMPL_VAR NAME=zone></a><TMPL_IF location> (<TMPL_VAR NAME=location>)</TMPL_IF></td>
42 <td><TMPL_VAR name=primaryserver></td>
43 <td><TMPL_IF status>Active<TMPL_ELSE>Inactive</TMPL_IF></td>
44 <td><TMPL_VAR name=group></td>
45<TMPL_IF secondary_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>
46<TMPL_IF secondary_delete> <td align="center"><a href="<TMPL_VAR NAME=script_self>&amp;page=delsecondary&amp;id=<TMPL_VAR NAME=zoneid>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td></TMPL_IF>
47</tr>
48</TMPL_LOOP>
49<TMPL_ELSE>
50<tr><td colspan="6" align="center">No secondary zones found</td></tr>
51</TMPL_IF>
52</table>
53
54<TMPL_IF zonetable><div class="center vpad"><TMPL_INCLUDE NAME="fpnla.tmpl"></div></TMPL_IF>
55
56</td>
57</tr>
58</table>
Note: See TracBrowser for help on using the repository browser.