summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorkhoff <khoff>2004-03-10 19:06:21 +0000
committerkhoff <khoff>2004-03-10 19:06:21 +0000
commit432a10eb5431f3ef973f6273539b2a685f665807 (patch)
tree5d6bd5f5ac7489c27b66f0c6816443c44c4796b7 /httemplate
parent6f2e2ea05362732731d08bc2fdeb26946fa4d3bc (diff)
Added hide/show customer router link.
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/browse/router.cgi17
1 files changed, 16 insertions, 1 deletions
diff --git a/httemplate/browse/router.cgi b/httemplate/browse/router.cgi
index 4eee96167..149db4903 100644
--- a/httemplate/browse/router.cgi
+++ b/httemplate/browse/router.cgi
@@ -11,7 +11,21 @@ my $p2 = popurl(2);
<BR><BR>
<% } %>
-<A HREF="<%=$p2%>edit/router.cgi"><I>Add a new router</I></A><BR><BR>
+<%
+my $hidecustomerrouters = 0;
+my $hideurl = '';
+if ($cgi->param('hidecustomerrouters') eq '1') {
+ $hidecustomerrouters = 1;
+ $cgi->param('hidecustomerrouters', 0);
+ $hideurl = '<A HREF="' . $cgi->self_url() . '">Show customer routers</A>';
+} else {
+ $hidecustomerrouters = 0;
+ $cgi->param('hidecustomerrouters', 1);
+ $hideurl = '<A HREF="' . $cgi->self_url() . '">Hide customer routers</A>';
+}
+%>
+
+<A HREF="<%=$p2%>edit/router.cgi">Add a new router</A>&nbsp;|&nbsp;<%=$hideurl%>
<%=table()%>
<TR>
@@ -19,6 +33,7 @@ my $p2 = popurl(2);
<TD><B>Address block(s)</B></TD>
</TR>
<% foreach my $router (sort {$a->routernum <=> $b->routernum} @router) {
+ next if $hidecustomerrouters && $router->svcnum;
my @addr_block = $router->addr_block;
if (scalar(@addr_block) == 0) {
push @addr_block, '&nbsp;';