
<h2>E-Mail statisztika</h2>
<?if($stats):?>

<table width="90%" cellpadding="0" cellspacing="0" border="1" align="center">
<tr style="background-color:black;color:white;font-size:14px;font-weight:bold;">
	<td style="padding:5px;">Típus</td>
	<td style="padding:5px;">Kattintás</td>
	<td style="padding:5px;">Egyedi kattintás (érdeklődők száma)</td>
</tr>
<?foreach($types as $t):?>
<tr>
	<td style="padding:5px;font-weight:bold;"><?=$t->type?></td>
	<td align="center"><?=$counts[$t->type][0]->count?></td>
	<td align="center"><?=$counts_dist[$t->type][0]->count_dist?></td>
</tr>
<?endforeach;?>
</table>

<br /><br />

<?=$this->pagination->create_links()?>

	<table width="100%" cellpadding="0" cellspacing="5">
		<tr>
			<td><b>Időpont</b></td>
			<td><b>E-mail</b></td>
			<td><b>Típus</b></td>
			<td><b>Oldal</b></td>
		</tr>

		<?foreach($stats as $stat):?>
			<tr>
				<td><?=date('Y. m. d.',$stat->date)?></td>
				<td><?=$stat->email?></td>
				<td><?=$stat->type?></td>
				<td><?=$stat->link?></td>
			</tr>
		<?endforeach;?>
	</table>
<?endif;?>