diff options
author | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
commit | c82d349f864e6bd9f96fd1156903bc1f7193a203 (patch) | |
tree | e117a87533656110b6acd56fc0ca64289892a9f5 /httemplate/misc/inventory_item-import.html | |
parent | 74e058c8a010ef6feb539248a550d0bb169c1e94 (diff) |
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'httemplate/misc/inventory_item-import.html')
-rw-r--r-- | httemplate/misc/inventory_item-import.html | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/httemplate/misc/inventory_item-import.html b/httemplate/misc/inventory_item-import.html deleted file mode 100644 index d264bafc5..000000000 --- a/httemplate/misc/inventory_item-import.html +++ /dev/null @@ -1,73 +0,0 @@ -<% include("/elements/header.html", PL($inventory_class->classname)) %> - -Import a file containing <% PL($inventory_class->classname) %>, one per line. -<BR><BR> - -<% include( '/elements/form-file_upload.html', - 'name' => 'InventoryItemImportForm', - 'action' => 'process/inventory_item-import.html', - 'num_files' => 1, - #'fields' => [ 'format', 'itembatch', 'classnum', 'agentnum' ], - 'fields' => [ 'format', 'classnum', 'agentnum', ], - 'message' => 'Inventory import successful', - #XXX redirect via $itembatch? or just back to class browse? - #'url' => $p."search/phone_avail.html?availbatch=$availbatch", - 'url' => $p."search/inventory_item.html?classnum=$classnum;avail=1", - ) -%> - -<% &ntable("#cccccc", 2) %> - - <INPUT TYPE="hidden" NAME="format" VALUE="default"> - - <INPUT TYPE="hidden" NAME="classnum" VALUE="<% $classnum %>"> - -%# <INPUT TYPE="hidden" NAME="itembatch" VALUE="<% $itembatch %>"> - - <% include('/elements/tr-select-agent.html', - 'viewall_right' => 'None', - ) - %> - - <% include( '/elements/file-upload.html', - 'field' => 'file', - 'label' => 'Filename', - ) - %> - - <TR> - <TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px"> - <INPUT TYPE = "submit" - ID = "submit" - VALUE = "Import file" - onClick = "document.InventoryItemImportForm.submit.disabled=true;" - > - </TD> - </TR> - -</TABLE> - -</FORM> - -<BR> - -Upload file can be a text file or Excel spreadsheet. If an Excel spreadsheet, - should have an .XLS extension. -<BR><BR> - -<% include('/elements/footer.html') %> - -<%init> - -die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Import'); - -$cgi->param('classnum') =~ /^(\d+)$/ or errorpage("illegal classnum"); -my $classnum = $1; -my $inventory_class = qsearchs('inventory_class', { 'classnum' => $classnum } ); - -#my $conf = new FS::Conf; -#my $itembatch = -# time2str('webimport-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time); - -</%init> |