diff options
| author | ivan <ivan> | 2007-01-30 20:59:14 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2007-01-30 20:59:14 +0000 |
| commit | 15777da47bab33e8f0021e6dd9aa6b434fa9be30 (patch) | |
| tree | 83359450ba8dcac02c86bdbd0c85db45a699fc06 /httemplate/browse/rate.cgi | |
| parent | 655b4043942c7d361224d283accb4c2a02ef7359 (diff) | |
its all about control
Diffstat (limited to 'httemplate/browse/rate.cgi')
| -rw-r--r-- | httemplate/browse/rate.cgi | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/httemplate/browse/rate.cgi b/httemplate/browse/rate.cgi index 9bdbe2d0c..584891aea 100644 --- a/httemplate/browse/rate.cgi +++ b/httemplate/browse/rate.cgi @@ -1,22 +1,3 @@ -% -% -%my $html_init = -% 'Rate plans, regions and prefixes for VoIP and call billing.<BR><BR>'. -% qq!<A HREF="${p}edit/rate.cgi"><I>Add a rate plan</I></A>!. -% qq! | <A HREF="${p}edit/rate_region.cgi"><I>Add a region</I></A>!. -% '<BR><BR> -% <SCRIPT> -% function rate_areyousure(href) { -% if (confirm("Are you sure you want to delete this rate plan?") == true) -% window.location.href = href; -% } -% </SCRIPT>'; -% -%my $count_query = 'SELECT COUNT(*) FROM rate'; -% -%my $link = [ $p.'edit/rate.cgi?', 'ratenum' ]; -% -% <% include( 'elements/browse.html', 'title' => 'Rate plans', 'menubar' => [ 'Main menu' => $p, ], @@ -32,3 +13,25 @@ 'links' => [ $link, $link ], ) %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + +my $html_init = +'Rate plans, regions and prefixes for VoIP and call billing.<BR><BR>'. +qq!<A HREF="${p}edit/rate.cgi"><I>Add a rate plan</I></A>!. +qq! | <A HREF="${p}edit/rate_region.cgi"><I>Add a region</I></A>!. +'<BR><BR> + <SCRIPT> + function rate_areyousure(href) { + if (confirm("Are you sure you want to delete this rate plan?") == true) + window.location.href = href; + } + </SCRIPT>'; + +my $count_query = 'SELECT COUNT(*) FROM rate'; + +my $link = [ $p.'edit/rate.cgi?', 'ratenum' ]; + +</%init> |
