summaryrefslogtreecommitdiff
path: root/httemplate/misc/tax-fetch_and_replace.cgi
blob: ff64e63209cfb170679af263c9f18d4c9634c5ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<% include("/elements/header.html",'Tax Rate Download and Import') %>

Replace tax data.
<BR><BR>

<% include( '/elements/progress-init.html', 'TaxRateImport',[ 'format', ],
              'process/tax-fetch_and_replace.cgi', { 'message' => 'Tax rates replaced' },
          )
%>

<FORM NAME="TaxRateImport" ACTION="javascript:void()" METHOD="POST">
<% &ntable("#cccccc", 2) %>

  <TR>
    <TH ALIGN="right">Format</TH>
    <TD>
      <SELECT NAME="format">
        <OPTION VALUE="cch">CCH import
      </SELECT>
    </TD>
  </TR>
  <TR>
    <TH ALIGN="right">Update Password</TH>
    <TD>
      <INPUT TYPE="text" NAME="password">
    </TD>
  </TR>

  <TR>
    <TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px">
      <INPUT TYPE    = "submit"
             NAME    = "submitButton"
             VALUE   = "Download and Import"
             onClick = "document.TaxRateImport.submitButton.disabled=true; process();"
      >
    </TD>
  </TR>

</TABLE>

</FORM>

<% include('/elements/footer.html') %>
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Import');

</%init>