1 <% include("/elements/header.html",'Call Detail Record Import') %>
3 <& /elements/form-file_upload.html,
4 'name' => 'CDRImportForm',
5 'action' => 'process/cdr-import.html',
7 'fields' => [ 'format', 'cdrbatch', ],
8 'message' => 'CDR import successful',
9 'url' => $p."search/cdr.html?cdrbatch=$cdrbatch",
10 'onsubmit' => "document.CDRImportForm.submitButton.disabled=true;",
13 Import a file containing Call Detail Records (CDRs).<BR><BR>
15 <INPUT TYPE="hidden" NAME="cdrbatch" VALUE="<% $cdrbatch %>"%>
17 <% ntable('#cccccc', 2) %>
22 <SELECT NAME="format">
23 % foreach my $format ( keys %formats ) {
24 <OPTION VALUE="<% $format %>"><% $formats{$format} %></OPTION>
30 <% include( '/elements/file-upload.html',
32 'label' => 'Filename',
37 <TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px">
38 <INPUT TYPE = "submit"
50 <% include('/elements/footer.html') %>
55 unless $FS::CurrentUser::CurrentUser->access_right('Import');
57 tie my %formats, 'Tie::IxHash', FS::cdr->import_formats;
59 my $cdrbatch = time2str('webimport-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time);