<& /elements/header-popup.html, 'Import SIMs' &> Import a file containing SIM card properties.
Each row should contain the following fields, separated by spaces:
IMSI, ICCID, PIN1, PUK1, PIN2, PUK2, ACC, Ki

<& /elements/form-file_upload.html, 'name' => 'ImportForm', 'action' => 'process/huawei_hlr-import_sim.html', 'num_files' => 1, 'fields' => [ 'exportnum', 'classnum', 'agentnum', ], 'message' => 'Inventory import successful', 'onsubmit' => "document.ImportForm.submitButton.disabled=true;", &> <& /elements/file-upload.html, 'field' => 'file', 'label' => 'Filename', &> <& /elements/tr-select-agent.html, 'disable_empty' => 1, &> <& /elements/tr-select-table.html, 'table' => 'inventory_class', 'name_col' => 'classname', 'label' => 'Inventory class', 'disable_empty' => 1, &>
<%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); my ($exportnum) = $cgi->keywords; $exportnum =~ /^\d+$/ or die "bad exportnum '$exportnum'"; my $part_export = FS::part_export->by_key($exportnum) or die "export $exportnum not found";