diff options
author | khoff <khoff> | 2004-03-10 19:06:21 +0000 |
---|---|---|
committer | khoff <khoff> | 2004-03-10 19:06:21 +0000 |
commit | 432a10eb5431f3ef973f6273539b2a685f665807 (patch) | |
tree | 5d6bd5f5ac7489c27b66f0c6816443c44c4796b7 /httemplate | |
parent | 6f2e2ea05362732731d08bc2fdeb26946fa4d3bc (diff) |
Added hide/show customer router link.
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/browse/router.cgi | 17 |
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> | <%=$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, ' '; |