SIM/KI inventory for Huawei HLR export, #21514
[freeside.git] / httemplate / misc / part_export / huawei_hlr-import_sim.html
1 <& /elements/header-popup.html, 'Import SIMs' &>
2 Import a file containing SIM card properties.<BR>
3 Each row should contain the following fields, separated by spaces:<BR>
4 IMSI, ICCID, PIN1, PUK1, PIN2, PUK2, ACC, Ki<BR>
5 <BR>
6 <& /elements/form-file_upload.html,
7      'name'      => 'ImportForm',
8      'action'    => 'process/huawei_hlr-import_sim.html',
9      'num_files' => 1,
10      'fields'    => [ 'exportnum', 'classnum', 'agentnum', ],
11      'message'   => 'Inventory import successful',
12      'onsubmit'  => "document.ImportForm.submitButton.disabled=true;",
13 &>
14 <TABLE CLASS="inv" WIDTH="100%">
15   <INPUT TYPE="hidden" NAME="exportnum" VALUE="<%$exportnum%>">
16   <& /elements/file-upload.html,
17     'field' => 'file',
18     'label' => 'Filename',
19   &>
20   <& /elements/tr-select-agent.html,
21     'disable_empty' => 1,
22   &>
23   <& /elements/tr-select-table.html,
24     'table'     => 'inventory_class',
25     'name_col'  => 'classname',
26     'label'     => 'Inventory class',
27     'disable_empty' => 1,
28   &>
29
30   <TR>
31     <TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px">
32       <INPUT TYPE  = "submit"
33              NAME  = "submitButton"
34              ID    = "submitButton"
35              VALUE = "Import file"
36       >
37     </TD>
38   </TR>
39
40 </TABLE>
41
42 </FORM>
43
44 <%init>
45 die "access denied"
46   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
47
48 my ($exportnum) = $cgi->keywords;
49 $exportnum =~ /^\d+$/ or die "bad exportnum '$exportnum'";
50 my $part_export = FS::part_export->by_key($exportnum)
51   or die "export $exportnum not found";
52 </%init>