<?php
/**
 * Cron result page
 *
 * @package 	CSVIVirtueMart
 * @subpackage 	Cron
 * @author 		Roland Dalmulder
 * @link 		http://www.csvimproved.com
 * @copyright 	Copyright (C) 2006 - 2012 RolandD Cyber Produksi
 * @license 	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 * @version 	$Id: cron.php 1892 2012-02-11 11:01:09Z RolandD $
 */
 
defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); 

$csvilog = JRequest::getVar('csvilog');

// Display any messages there are
if (!empty($csvilog->logmessage)) echo $csvilog->logmessage;
else {
	echo JText::sprintf('COM_CSVIVIRTUEMART_RESULTS_FOR', $csvilog->getFilename())."\n";
	echo str_repeat("=", (strlen(JText::_('COM_CSVIVIRTUEMART_RESULTS_FOR'))+strlen($csvilog->getFilename())+1))."\n";
	if (!empty($this->logresult['result'])) {
		echo JText::_('COM_CSVIVIRTUEMART_TOTAL')."\t\t".JText::_('COM_CSVIVIRTUEMART_RESULT')."\t\t".JText::_('COM_CSVIVIRTUEMART_STATUS')."\n";
		foreach ($this->logresult['result'] as $result => $log) {
			echo $log->total_result."\t\t".$log->result."\t\t".JText::_('COM_CSVIVIRTUEMART_'.$log->status)."\n";
		}
	}
	else echo JText::_('COM_CSVIVIRTUEMART_NO_RESULTS_FOUND')."\n"; 
}
?>