예제 #1
0
 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();
     }
 }
예제 #2
0
 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') . '&nbsp;' . $e . '<br />';
         }
         $this->setRedirect('index.php?option=com_bids&task=showadmimportform', $msg, 'notice');
     }
 }