function importcsv() { $err = BidsHelperTools::ImportFromCSV(0); if (count($err) <= 0) $this->setRedirect( JRoute::_('index.php?option=com_bids&task=myauctions', false), JText::_('COM_BIDS_AUCTIONS_IMPORTED')); else { $view = $this->getView('bulkimport', 'html'); $view->assign('errors', $err); $view->display(); } }
function importcsv() { $err = BidsHelperTools::ImportFromCSV(1); if (count($err) == 0) { $this->setRedirect('index.php?option=com_bids&task=showadmimportform', JText::_('COM_BIDS_SUCCES')); } else { $msg = ''; foreach ($err as $e) { $msg .= JText::_('COM_BIDS_LINE') . ' ' . $e . '<br />'; } $this->setRedirect('index.php?option=com_bids&task=showadmimportform', $msg, 'notice'); } }