source: trunk/templates/index.tmpl@ 523

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

/trunk

Move SQL for index/summary page into IPDB.pm. See #34.
Tweak initialization of page templates to set loop_context_vars so
we don't have to manually maintain the row0/row1 entries
Commentstub subs for master and routed list pages.

File size: 829 bytes
Line 
1<br>
2<div class="center">
3<table class="center" width="98%" cellspacing="0">
4<tr class="heading">
5<td>Master netblock</td>
6<td>Routed netblocks</td>
7<td>Allocated netblocks</td>
8<td>Free netblocks</td>
9<td>Largest free block</td>
10</tr>
11<TMPL_LOOP NAME=masterlist>
12<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
13<td><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=showmaster&amp;block=<TMPL_VAR NAME=master>"><TMPL_VAR NAME=master></a></td>
14<td><TMPL_VAR NAME=routed></td>
15<td><TMPL_VAR NAME=allocated></td>
16<td><TMPL_VAR NAME=free></td>
17<td><TMPL_VAR NAME=bigfree></td>
18</tr>
19</TMPL_LOOP>
20</table>
21<TMPL_IF addmaster>
22<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=addmaster">Add new master block</a>
23</TMPL_IF>
24<br><br>
25Note: Free blocks noted here include both routed and unrouted blocks.
26</div>
27
Note: See TracBrowser for help on using the repository browser.