<h2>Letöltési statisztika</h2>

<?if($stats):?>
<p>
	<a href="/admin/dl_stat_xls">Excel</a>
	<?foreach($ctrs as $k => $c):?>
	&nbsp;&nbsp;-&nbsp;&nbsp;
	<a href="/admin/dl_stat_xls/<?=$k?>"><?=$c?></a>
	<?endforeach;?>
</p>
<?=$this->pagination->create_links()?>
	<table width="100%" cellpadding="0" cellspacing="5">
		<tr>
			<td><b>Időpont</b></td>
			<td><b>Név</b></td>
			<td><b>E-Mail</b></td>
			<td><b>Ország</b></td>
			<td><b>Típus</b></td>
		</tr>

		<?foreach($stats as $stat):?>
			<?if($stat->stat_version == 'full'):?>
				<tr>
			<?elseif($stat->stat_version == 'trial'):?>
				<tr>
			<?elseif($stat->stat_version == 'student'):?>
				<tr>
			<?endif;?>
				<td><?=date('Y. m. d. H:i',$stat->stat_date)?></td>
				<td><?=$stat->stat_first?></td>
				<td><?=$stat->stat_email?></td>
				<td><?=$stat->stat_country?></td>
				<td><?=$stat->stat_version?></td>
			</tr>
		<?endforeach;?>
	</table>
<?endif;?>