source: trunk/templates/listpool.tmpl@ 913

Last change on this file since 913 was 913, checked in by Kris Deugau, 7 years ago

/trunk

Add IP count and percent-free to the heading and showsubs layout 2 by request

File size: 1.6 KB
Line 
1<TMPL_IF webpath></TMPL_IF>
2<br>
3<div class="tbltitle">Listing pool IPs for <TMPL_VAR NAME=block><br>
4(<TMPL_VAR NAME=disptype> in <TMPL_VAR NAME=city>)<TMPL_IF vlan><br>
5VLAN <TMPL_VAR NAME=vlan></TMPL_IF>
6<TMPL_VAR NAME=poolpctfree>% free</div>
7
8<br>
9
10<TMPL_IF realblock>
11<div class="indent"><b>Reserved IPs:</b><br>
12<div class="indent">
13<table>
14<tr class="row0"><td>Network IP:</td><td><TMPL_VAR NAME=netip></td></tr>
15<tr class="row1"><td>Gateway:</td><td><TMPL_VAR NAME=gate></td></tr>
16<tr class="row0"><td>Broadcast:</td><td><TMPL_VAR NAME=bcast></td></tr>
17<tr class="row1"><td>Netmask:</td><td><TMPL_VAR NAME=mask></td></tr>
18</table>
19</div>
20</div>
21</TMPL_IF>
22
23<table width="98%" cellspacing="0" class="center altrows">
24<tr>
25<td class="heading">IP</td>
26<td class="heading">Customer ID</td>
27<td class="heading">Available?</td>
28<td class="heading">Description</td>
29<TMPL_IF maydel><td class="heading"></td></TMPL_IF>
30</tr>
31
32<TMPL_LOOP name=poolips>
33<tr>
34<td>
35<TMPL_IF delme>
36<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&amp;id=<TMPL_VAR NAME=id>&amp;basetype=i"><TMPL_VAR NAME=ip></a>
37<TMPL_ELSE>
38<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=assign&amp;block=<TMPL_VAR NAME=id>&amp;parent=<TMPL_VAR NAME=parent>&amp;fbtype=i"><TMPL_VAR NAME=ip></a>
39</TMPL_IF>
40</td>
41<td><TMPL_VAR NAME=custid></td>
42<td><TMPL_VAR NAME=available></td>
43<td><TMPL_VAR NAME=desc></td>
44<TMPL_IF maydel><td><TMPL_IF delme>
45<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=delete&amp;block=<TMPL_VAR NAME=id>&amp;basetype=i&amp;parent=<TMPL_VAR NAME=parent>">Unassign this IP</a>
46</TMPL_IF></td></TMPL_IF>
47</tr>
48</TMPL_LOOP>
49
50</table>
51
52<br>
Note: See TracBrowser for help on using the repository browser.