[freeside-commits] freeside/httemplate/misc/process
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/process
In directory wavetail:/tmp/cvs-serv11473/httemplate/misc/process
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 $fh = $cgi->upload('filename');
my $error = defined($fh)
? FS::inventory_item::batch_import( {
'filehandle' => $fh,
'classnum' => $cgi->param('classnum'),
} )
: 'No file';
if ( $error ) {
%>
<!-- mason kludge -->
<%
eidiot($error);
# $cgi->param('error', $error);
# print $cgi->redirect( "${p}cust_main-import.cgi
} else {
%>
<!-- mason kludge -->
<%= include("/elements/header.html",'Import sucessful') %>
<!-- XXX redirect to batch search like the payment entry... -->
<%= include("/elements/footer.html",'Import sucessful') %> <%
}
%>
More information about the freeside-commits
mailing list