This commit was generated by cvs2svn to compensate for changes in r8690,
[freeside.git] / httemplate / misc / tax-import.cgi
1 <% include("/elements/header.html",'Batch Tax Rate Import') %>
2
3 Import a CSV file set containing tax rate records.
4 <BR><BR>
5
6 <% include( '/elements/form-file_upload.html',
7               'name'      => 'TaxRateUpload',
8               'action'    => 'process/tax-import.cgi', 
9               'num_files' => 6,
10               'fields'    => [ 'format', ],
11               'message'   => 'Tax rates imported',
12           )
13 %>
14
15 <% &ntable("#cccccc", 2) %>
16
17   <TR>
18     <TH ALIGN="right">Format</TH>
19     <TD>
20       <SELECT NAME="format">
21         <OPTION VALUE="cch-update" SELECTED>CCH update (CSV)
22         <OPTION VALUE="cch">CCH initial import (CSV)
23         <OPTION VALUE="cch-fixed-update">CCH update (fixed length)
24         <OPTION VALUE="cch-fixed">CCH initial import (fixed length)
25       </SELECT>
26     </TD>
27   </TR>
28
29   <% include( '/elements/file-upload.html',
30                 'field'    => [ 'geofile',
31                                 'codefile',
32                                 'plus4file',
33                                 'zipfile',
34                                 'txmatrix',
35                                 'detail',
36                               ],
37                 'label'    => [ 'geocode filename',
38                                 'code filename',
39                                 'plus4 filename',
40                                 'zip filename',
41                                 'txmatrix filename',
42                                 'detail filename',
43                               ],
44                 'debug'    => 0,
45             )
46   %>
47
48   <TR>
49     <TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px">
50       <INPUT TYPE    = "submit"
51              VALUE   = "Import CSV files"
52              onClick = "document.TaxRateUpload.submit.disabled=true;"
53       >
54     </TD>
55   </TR>
56
57 </TABLE>
58
59 </FORM>
60
61 <% include('/elements/footer.html') %>
62 <%init>
63
64 die "access denied"
65   unless $FS::CurrentUser::CurrentUser->access_right('Import');
66
67 </%init>