diff options
| author | ivan <ivan> | 2006-03-08 12:14:04 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2006-03-08 12:14:04 +0000 |
| commit | 6d2cd8e6fc566b4fccd0075156e3e1ddd59fa042 (patch) | |
| tree | 5c08fa887aca0ca1b19adb009d06e4beb85a56b6 /httemplate/misc/inventory_item-import.html | |
| parent | 600a0939e7e7e589dae4f4f5bfef3650728940b7 (diff) | |
Add an option to the web interface to batch upload new entries to the
inventory_item table.
Diffstat (limited to 'httemplate/misc/inventory_item-import.html')
| -rw-r--r-- | httemplate/misc/inventory_item-import.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/httemplate/misc/inventory_item-import.html b/httemplate/misc/inventory_item-import.html new file mode 100644 index 000000000..a702fbc49 --- /dev/null +++ b/httemplate/misc/inventory_item-import.html @@ -0,0 +1,20 @@ +<% + +my $classnum = $cgi->param('classnum'); +$classnum =~ /^(\d+)$/ or eidiot "illegal classnum $classnum"; +$classnum = $1; +my $inventory_class = qsearchs('inventory_class', { 'classnum' => $classnum } ); + +%><%= include("/elements/header.html", $inventory_class->classname. 's') %> + +<FORM ACTION="process/inventory_item-import.html" METHOD="POST" ENCTYPE="multipart/form-data"> +<INPUT TYPE="hidden" NAME="classnum" VALUE="<%= $classnum %>"> +Import a file containing <%= $inventory_class->classname %>s, one per line.<BR><BR> + +Filename: <INPUT TYPE="file" NAME="filename"><BR><BR> + +<INPUT TYPE="submit" VALUE="Upload"> +</FORM> + +<%= include('/elements/footer.html') %> + |
