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>
6 <& /elements/form-file_upload.html,
7 'name' => 'ImportForm',
8 'action' => 'process/huawei_hlr-import_sim.html',
10 'fields' => [ 'exportnum', 'classnum', 'agentnum', ],
11 'message' => 'Inventory import successful',
12 'onsubmit' => "document.ImportForm.submitButton.disabled=true;",
14 <TABLE CLASS="inv" WIDTH="100%">
15 <INPUT TYPE="hidden" NAME="exportnum" VALUE="<%$exportnum%>">
16 <& /elements/file-upload.html,
18 'label' => 'Filename',
20 <& /elements/tr-select-agent.html,
23 <& /elements/tr-select-table.html,
24 'table' => 'inventory_class',
25 'name_col' => 'classname',
26 'label' => 'Inventory class',
31 <TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px">
32 <INPUT TYPE = "submit"
46 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
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";