summaryrefslogtreecommitdiff
path: root/httemplate/misc/inventory_item-import.html
blob: a702fbc4902db31c2d0124245888aea87e584106 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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') %>