[freeside-commits] freeside/httemplate/misc/process cdr-import.html, NONE, 1.1

Ivan,,, ivan at wavetail.420.am
Sat Feb 18 03:14:22 PST 2006


Update of /home/cvs/cvsroot/freeside/httemplate/misc/process
In directory wavetail:/tmp/cvs-serv25276/httemplate/misc/process

Added Files:
	cdr-import.html 
Log Message:
CDR schema and class

--- NEW FILE: cdr-import.html ---
<%

  my $fh = $cgi->upload('csvfile');

  my $error = defined($fh)
    ? FS::cdr::batch_import( {
        'filehandle' => $fh,
        'format'     => $cgi->param('format'),
      } )
    : '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