blob: 2b3272763f376dc8ecbce34816b8809b509bd2f7 [file] [log] [blame]
<?php $impressions = $this->getImpressions();?>
<form method="POST" action="">
<input name="state" value="exportCsv" type="hidden">
<input class="btn btn-primary" type="submit" value="Export CSV" name="exportCsv">
</form>
<hr>
<table class="table">
<thead>
<tr>
<th>campaignKey</th>
<th>date</th>
<th>impressions</th>
<th>clicks</th>
<th>Ratio (%)</th>
</tr>
</thead>
<tbody>
<?php foreach($impressions as $row):?>
<tr>
<td><?php print $row['campaignKey']?></td>
<td><?php print $row['date']?></td>
<td><?php print $row['impressions']?></td>
<td><?php print $row['clicks']?></td>
<td><?php print $row['ratio']?>%</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>