[freeside-commits] freeside/httemplate/misc
inventory_item-import.html, NONE, 1.1
Ivan,,,
ivan at wavetail.420.am
Wed Mar 8 04:14:06 PST 2006
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail:/tmp/cvs-serv11473/httemplate/misc
Added Files:
inventory_item-import.html
Log Message:
Add an option to the web interface to batch upload new entries to the
inventory_item table.
--- NEW FILE: inventory_item-import.html ---
<%
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') %>
More information about the freeside-commits
mailing list