X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fbatch-cust_pay.html;h=195856b5c6d20d0e285524ebac7cecbcd5610223;hb=4defa328b613d2867d687b505c5c8501ad97115c;hp=b40869476da064b60e1968aad6f4b02958784b1e;hpb=c1bb4ddb71147d0571bd301a6d8c452fdf0e1bc9;p=freeside.git diff --git a/httemplate/misc/batch-cust_pay.html b/httemplate/misc/batch-cust_pay.html index b40869476..195856b5c 100644 --- a/httemplate/misc/batch-cust_pay.html +++ b/httemplate/misc/batch-cust_pay.html @@ -1,17 +1,9 @@ -<%= include("/elements/header.html", 'Quick payment entry', - menubar( - 'Main Menu' => $p, #popurl(1), - 'Old-style quick payment entry' => - $p. 'search/cust_main-quickpay.html', - ), - ( $cgi->param('error') ? '' : 'onload="addRow()"' ), +<% include('/elements/header.html', 'Quick payment entry', '', + ( $cgi->param('error') ? '' : 'onload="addRow()"' ), ) %> -<% if ( $cgi->param('error') ) { %> - <%= $cgi->param('error') %>

-<% } %> - +<% include('/elements/error.html') %>
@@ -239,60 +231,60 @@ Check # +% my $row = 0; +% if ( $cgi->param('error') ) { +% my $param = $cgi->Vars; +% +% for ( $row = 0; exists($param->{"custnum$row"}); $row++ ) { -<% my $row = 0; - if ( $cgi->param('error') ) { - my $param = $cgi->Vars; -%> - - <% for ( $row = 0; exists($param->{"custnum$row"}); $row++ ) { %> - " rownum="<%= $row %>"> + " rownum="<% $row %>"> - " rownum="<%= $row %>"> + " rownum="<% $row %>"> - - $" > + $" > - " > + " > - <% if ( $param->{"error$row"} ) { %> - Error: <%= $param->{"error$row"} %> - <% } %> +% if ( $param->{"error$row"} ) { + + Error: <% $param->{"error$row"} %> +% } + +% } +% } - <% } %> - -<% } %> @@ -305,7 +297,7 @@
-<%= include('/elements/xmlhttp.html', +<% include('/elements/xmlhttp.html', 'url' => $p. 'misc/xmlhttp-cust_main-search.cgi', 'subs' => [qw( custnum_search smart_search )], ) @@ -313,7 +305,7 @@ - - +<% include('/elements/footer.html') %> + +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Post payment batch'); + +