diff options
Diffstat (limited to 'httemplate/misc/enable_or_disable_tax.html')
-rwxr-xr-x | httemplate/misc/enable_or_disable_tax.html | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/httemplate/misc/enable_or_disable_tax.html b/httemplate/misc/enable_or_disable_tax.html deleted file mode 100755 index 0efd07d..0000000 --- a/httemplate/misc/enable_or_disable_tax.html +++ /dev/null @@ -1,37 +0,0 @@ -<% include('/elements/header-popup.html', ucfirst($action). ' Tax Rates') %> -<% include('/elements/error.html') %> - -<FORM ACTION="<% popurl(1) %>process/enable_or_disable_tax.html" METHOD=POST> -<INPUT TYPE="hidden" NAME="action" VALUE="<% $action %>"> -<INPUT TYPE="hidden" NAME="data_vendor" VALUE="<% $cgi->param('data_vendor') %>"> -<INPUT TYPE="hidden" NAME="geocode" VALUE="<% $cgi->param('geocode') %>"> -<INPUT TYPE="hidden" NAME="taxclassnum" VALUE="<% $cgi->param('taxclassnum') %>"> -<INPUT TYPE="hidden" NAME="tax_type" VALUE="<% $cgi->param('tax_type') %>"> -<INPUT TYPE="hidden" NAME="tax_cat" VALUE="<% $cgi->param('tax_cat') %>"> -<INPUT TYPE="hidden" NAME="showdisabled" VALUE="<% $cgi->param('showdisabled') |h %>"> - -This will <B><% $action %></B> <% $count %> tax -<% $count == 1 ? 'rate' : 'rates' %>. Are you <B>certain</B> you want to do -this? -<BR><BR><INPUT TYPE="submit" VALUE="Yes"> -</FORM> - -<%init> - -die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); - -my $action = ''; -if ( $cgi->param('action') =~ /^(\w+)$/ ) { - $action = $1; -} - -my ($query, $count_query) = FS::tax_rate::browse_queries(scalar($cgi->Vars)); - -my $count_sth = dbh->prepare($count_query) - or die "Error preparing $count_query: ". dbh->errstr; -$count_sth->execute - or die "Error executing $count_query: ". $count_sth->errstr; -my $count = $count_sth->fetchrow_arrayref->[0]; - -</%init> |