Last change
on this file since 571 was 536, checked in by Kris Deugau, 12 years ago |
/trunk
Clean up and move SQL for post-update backlink to IPDB.pm. See #34.
Also rename getParent() to subParent() to fit in with ipParent() and
blockParent().
Fix a couple "Use of uninitialized..." log-noise bugs. See #31.
Move some HTML-entity-escaping into the template, and shuffle lines
munging the notes and restricted data on post-update value display
so we can properly munge in <br> for \n. Doesn't seem to be a way
to plug that into HTML::Template. :( See #3.
|
File size:
1.4 KB
|
Rev | Line | |
---|
[505] | 1 | <TMPL_IF err>
|
---|
| 2 | <div class="regular err">
|
---|
| 3 | <p><TMPL_VAR NAME=err></p>
|
---|
| 4 | <input type="button" value="Back" onclick="history.go(-1)">
|
---|
| 5 | </div>
|
---|
| 6 | <TMPL_ELSE>
|
---|
[475] | 7 | <div class="heading">Allocation info updated:</div>
|
---|
| 8 |
|
---|
| 9 | <table class="indent" cellspacing="1" cellpadding="1">
|
---|
| 10 |
|
---|
| 11 | <tr class="row0">
|
---|
| 12 | <td>IP block:</td>
|
---|
| 13 | <td><TMPL_VAR NAME=cidr></td>
|
---|
| 14 | </tr>
|
---|
| 15 |
|
---|
| 16 | <tr class="row1">
|
---|
| 17 | <td>City:</td>
|
---|
| 18 | <td><TMPL_VAR NAME=city></td>
|
---|
| 19 | </tr>
|
---|
| 20 |
|
---|
| 21 | <tr class="row0">
|
---|
| 22 | <td>Type:</td>
|
---|
| 23 | <td><TMPL_VAR NAME=disptype></td>
|
---|
| 24 | </tr>
|
---|
| 25 |
|
---|
| 26 | <tr class="row1">
|
---|
[476] | 27 | <td>Demarc/tower:</td>
|
---|
| 28 | <td><TMPL_IF nodename><TMPL_VAR NAME=nodename><TMPL_ELSE>N/A</TMPL_IF></td>
|
---|
| 29 | </tr>
|
---|
| 30 |
|
---|
| 31 | <tr class="row0">
|
---|
[475] | 32 | <td>Customer ID:</td>
|
---|
| 33 | <td><TMPL_VAR NAME=custid></td>
|
---|
| 34 | </tr>
|
---|
| 35 |
|
---|
[476] | 36 | <tr class="row1">
|
---|
[475] | 37 | <td>SWIPed?:</td>
|
---|
| 38 | <td><TMPL_VAR NAME=swip></td>
|
---|
| 39 | </tr>
|
---|
| 40 |
|
---|
[476] | 41 | <tr class="row0">
|
---|
[475] | 42 | <td>Circuit ID:</td>
|
---|
[536] | 43 | <td><TMPL_VAR ESCAPE=HTML NAME=circid></td>
|
---|
[475] | 44 | </tr>
|
---|
| 45 |
|
---|
[476] | 46 | <tr class="row1">
|
---|
[475] | 47 | <td valign="top">Description/Name:</td>
|
---|
[536] | 48 | <td><TMPL_VAR ESCAPE=HTML NAME=desc></td>
|
---|
[475] | 49 | </tr>
|
---|
| 50 |
|
---|
[476] | 51 | <tr class="row0">
|
---|
[475] | 52 | <td valign="top">Notes:</td>
|
---|
| 53 | <td><TMPL_VAR NAME=notes></td>
|
---|
| 54 | </tr>
|
---|
| 55 |
|
---|
| 56 | <TMPL_IF privdata>
|
---|
[476] | 57 | <tr class="row1">
|
---|
[475] | 58 | <td valign="top">Restricted data:</td>
|
---|
[476] | 59 | <td><TMPL_VAR NAME=privdata></td>
|
---|
[475] | 60 | </tr>
|
---|
| 61 | </TMPL_IF>
|
---|
| 62 |
|
---|
| 63 | </table>
|
---|
[476] | 64 |
|
---|
| 65 | <br>
|
---|
| 66 | <div class="backlink">
|
---|
[511] | 67 | <a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=<TMPL_IF backpool>listpool&pool=<TMPL_ELSE>showrouted&block=</TMPL_IF><TMPL_VAR NAME=backblock>">Back to <TMPL_VAR NAME=backblock></a>
|
---|
[475] | 68 | </div>
|
---|
[505] | 69 | </TMPL_IF>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.