diff options
-rwxr-xr-x | httemplate/browse/part_bill_event.cgi | 5 | ||||
-rwxr-xr-x | httemplate/search/cust_bill.html | 1 | ||||
-rw-r--r-- | httemplate/search/cust_bill_event.cgi | 25 | ||||
-rwxr-xr-x | httemplate/search/cust_pay_batch.cgi | 1 | ||||
-rw-r--r-- | httemplate/search/prepay_credit.html | 1 | ||||
-rw-r--r-- | httemplate/search/queue.html | 1 | ||||
-rw-r--r-- | httemplate/search/report_prepaid_income.cgi | 4 | ||||
-rwxr-xr-x | httemplate/search/report_tax.cgi | 3 | ||||
-rw-r--r-- | httemplate/search/sqlradius.cgi | 8 |
9 files changed, 21 insertions, 28 deletions
diff --git a/httemplate/browse/part_bill_event.cgi b/httemplate/browse/part_bill_event.cgi index 682058b1d..8a44b2bc6 100755 --- a/httemplate/browse/part_bill_event.cgi +++ b/httemplate/browse/part_bill_event.cgi @@ -1,4 +1,4 @@ -<% include("/elements/header.html",'Invoice Event Listing', menubar( 'Main Menu' => $p) ) %> +<% include('/elements/header.html', 'Invoice Event Listing') %> Invoice events are actions taken on open invoices.<BR><BR> @@ -102,9 +102,8 @@ % } % } +<% include('/elements/footer.html') %> -</BODY> -</HTML> <%init> die "access denied" diff --git a/httemplate/search/cust_bill.html b/httemplate/search/cust_bill.html index e23785ac8..4f0585d0c 100755 --- a/httemplate/search/cust_bill.html +++ b/httemplate/search/cust_bill.html @@ -190,7 +190,6 @@ my $html_init = join("\n", map { } qw( print_ email_ fax_ ) ); my $menubar = [ - 'Main menu' => $p, 'Print these invoices' => "javascript:print_process()", 'Email these invoices' => diff --git a/httemplate/search/cust_bill_event.cgi b/httemplate/search/cust_bill_event.cgi index f45c8a59d..06a52dc5d 100644 --- a/httemplate/search/cust_bill_event.cgi +++ b/httemplate/search/cust_bill_event.cgi @@ -130,16 +130,21 @@ my $html_init = join("\n", map { qq!</FORM>! } qw( print_ email_ fax_ ) ); -my $menubar = [ - 'Re-print these events' => - "javascript:print_process()", - 'Re-email these events' => - "javascript:email_process()", - ]; - -push @$menubar, 'Re-fax these events' => - "javascript:fax_process()" - if $conf->exists('hylafax'); +my $menubar = []; + +if ( $curuser->access_right('Resend invoices') ) { + + push @$menubar, 'Re-print these events' => + "javascript:print_process()", + 'Re-email these events' => + "javascript:email_process()", + ; + + push @$menubar, 'Re-fax these events' => + "javascript:fax_process()" + if $conf->exists('hylafax'); + +} my $link_cust = sub { my $cust_bill_event = shift; diff --git a/httemplate/search/cust_pay_batch.cgi b/httemplate/search/cust_pay_batch.cgi index c678febf1..60dca8cba 100755 --- a/httemplate/search/cust_pay_batch.cgi +++ b/httemplate/search/cust_pay_batch.cgi @@ -1,7 +1,6 @@ <% include('elements/search.html', 'title' => 'Batch payment details', 'name' => 'batch details', - 'menubar' => ['Main Menu' => $p,], 'query' => $sql_query, 'count_query' => $count_query, 'html_init' => $pay_batch ? $html_init : '', diff --git a/httemplate/search/prepay_credit.html b/httemplate/search/prepay_credit.html index 43fc6a96c..96391fcbd 100644 --- a/httemplate/search/prepay_credit.html +++ b/httemplate/search/prepay_credit.html @@ -2,7 +2,6 @@ 'title' => 'Unused Prepaid Cards'. ($agent ? ' for '. $agent->agent : ''), 'menubar' => [ - 'Main menu' => $p, 'Generate cards' => $p.'edit/prepay_credit.cgi', ], 'name' => 'prepaid cards', diff --git a/httemplate/search/queue.html b/httemplate/search/queue.html index c343014cc..125a6f7f6 100644 --- a/httemplate/search/queue.html +++ b/httemplate/search/queue.html @@ -1,6 +1,5 @@ <% include( 'elements/search.html', 'title' => 'Job Queue', - 'menubar' => [ 'Main menu' => $p, ], 'name' => 'jobs', 'html_form' => qq!<FORM NAME="jobForm" ACTION="$p/misc/queue.cgi" METHOD="POST">!, 'query' => { 'table' => 'queue', diff --git a/httemplate/search/report_prepaid_income.cgi b/httemplate/search/report_prepaid_income.cgi index fd9b01ec1..27dbcbf9f 100644 --- a/httemplate/search/report_prepaid_income.cgi +++ b/httemplate/search/report_prepaid_income.cgi @@ -1,5 +1,5 @@ -<% include("/elements/header.html", 'Prepaid Income (Unearned Revenue) Report', - menubar( 'Main Menu'=>$p, ) ) %> +<% include("/elements/header.html", 'Prepaid Income (Unearned Revenue) Report') %> + <% table() %> <TR> <TH>Actual Unearned Revenue</TH> diff --git a/httemplate/search/report_tax.cgi b/httemplate/search/report_tax.cgi index e82126a3c..62ba08702 100755 --- a/httemplate/search/report_tax.cgi +++ b/httemplate/search/report_tax.cgi @@ -7,8 +7,7 @@ ( $ending == 4294967295 ? 'now' : time2str('%h %o %Y', $ending ) - ), - menubar( 'Main Menu'=>$p, ) + ) ) %> diff --git a/httemplate/search/sqlradius.cgi b/httemplate/search/sqlradius.cgi index 324729b6a..24b17d3b3 100644 --- a/httemplate/search/sqlradius.cgi +++ b/httemplate/search/sqlradius.cgi @@ -1,10 +1,4 @@ -<% include( '/elements/header.html', 'RADIUS Sessions', - include('/elements/menubar.html', - 'Main menu' => $p, # popurl(2), - ), - - ) -%> +<% include( '/elements/header.html', 'RADIUS Sessions') %> % ### % # and finally, display the thing |