1 <% include("/elements/header.html",'Import Rate Plan') %>
3 <& /elements/form-file_upload.html,
4 'name' => 'RateImportForm',
5 'action ' => 'process/rate-import.html',
7 'fields' => [ 'ratename' ],
8 'message' => 'Rate plan import successful',
9 #'url' => $p."browse/rate_detail.cgi?ratenum=$ratenum", #XXX how?
10 'onsubmit' => "document.RateImportForm.submitButton.disabled=true;",
13 <% &ntable("#cccccc", 2) %>
18 <INPUT TYPE="text" NAME="ratename" SIZE=32 VALUE="">
22 <% include( '/elements/file-upload.html',
24 'label' => 'Filename',
29 <TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px">
30 <INPUT TYPE = "submit"
33 VALUE = "Import rate plan"
44 <!--Upload file can be a text file or Excel spreadsheet. If an Excel spreadsheet,
45 should have an .XLS extension.
48 File format is CSV (comma-separated value), with the following field order:
51 <li>Country code / Prefix. See below for formatting rules.
54 <li>(Optional) Included minutes
55 <li>(Optional) Granularity
59 Formatting rules for second field:
61 <li>Simple entries contain just a countrycode or a countrycode and single prefix for example, "61" or "52 33". Whitespace, plus and dash are ignored.
62 <li>Additional prefixes may be appended after a comma (appropriately quoted), but country code should only be listed once at the beginning. For example, "61 38,39".
66 Have caution when importing prefix data that is mismatched to your current
69 <% include('/elements/footer.html') %>
74 unless $FS::CurrentUser::CurrentUser->access_right('Import');