From a205ffec778bd42eb084bcffec6884063263f634 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Fri, 22 Mar 2013 13:33:44 -0700 Subject: SIM/KI inventory for Huawei HLR export, #21514 --- .../misc/part_export/huawei_hlr-import_sim.html | 52 ++++++++++++++++++++++ .../part_export/process/huawei_hlr-import_sim.html | 10 +++++ 2 files changed, 62 insertions(+) create mode 100644 httemplate/misc/part_export/huawei_hlr-import_sim.html create mode 100644 httemplate/misc/part_export/process/huawei_hlr-import_sim.html (limited to 'httemplate/misc/part_export') diff --git a/httemplate/misc/part_export/huawei_hlr-import_sim.html b/httemplate/misc/part_export/huawei_hlr-import_sim.html new file mode 100644 index 000000000..9b87b3d2a --- /dev/null +++ b/httemplate/misc/part_export/huawei_hlr-import_sim.html @@ -0,0 +1,52 @@ +<& /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"; + diff --git a/httemplate/misc/part_export/process/huawei_hlr-import_sim.html b/httemplate/misc/part_export/process/huawei_hlr-import_sim.html new file mode 100644 index 000000000..d46700d5f --- /dev/null +++ b/httemplate/misc/part_export/process/huawei_hlr-import_sim.html @@ -0,0 +1,10 @@ +<% $server->process %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + +my $server = new FS::UI::Web::JSRPC + 'FS::part_export::huawei_hlr::process_import_sim', $cgi; + + -- cgit v1.2.1