X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fcontact-import.cgi;fp=httemplate%2Fmisc%2Fcontact-import.cgi;h=ae2e3494fab49d3184f5a7aadcfaf67771a57dd9;hb=0c8c33892661b2774fd29423e3791d08a257d0fe;hp=0000000000000000000000000000000000000000;hpb=35ac50b0ff66fc78aaa11baf8ae0199280645b96;p=freeside.git diff --git a/httemplate/misc/contact-import.cgi b/httemplate/misc/contact-import.cgi new file mode 100644 index 000000000..ae2e3494f --- /dev/null +++ b/httemplate/misc/contact-import.cgi @@ -0,0 +1,102 @@ +<% include("/elements/header.html",'Batch Contacts Import') %> + +Import a file containing customer contact records. +

+ +<& /elements/form-file_upload.html, + 'name' => 'ContactImportForm', + 'action' => 'process/contact-import.cgi', + 'num_files' => 1, + 'fields' => [ 'custbatch', 'format' ], + 'message' => 'Customer contacts import successful', + 'onsubmit' => "document.ContactImportForm.submitButton.disabled=true;", +&> + +<% &ntable("#cccccc", 2) %> + + + + + Format + + + + + + <% include( '/elements/file-upload.html', + 'field' => 'file', + 'label' => 'Filename', + ) + %> + + + + + + + + + + + +
+ +Uploaded files can be CSV (comma-separated value) files or Excel spreadsheets. The file should have a .CSV or .XLS extension. +

+ +Default Format has the following field order: +
+custnum<%$req%>, last<%$req%>, first<%$req%>, title<%$req%>, comment, selfservice_access, emailaddress, workphone, mobilephone, homephone +

+ +Field information: +
+You must include a customer number and either a last name, first name or title. + + + +
+ +<% include('/elements/footer.html') %> + +<%once> + +my $req = qq!*!; + + +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Import'); + +my $custbatch = time2str('webimport-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time); + + \ No newline at end of file