<style>
.tabel-buyer th, .tabel-buyer td {
	border:0;
	border-bottom:1px dotted #333333;
}
.tabel-buyer th p {
	color:#FFFFFF;
	margin:0; padding: 8px 10px;
}
.tabel-buyer td p {
	margin:0; padding: 8px 10px;
}
</style>
<?php
echo '
<script>
window.location.replace("'.$thisPage.'");
</script>';

include_once($thisUrl."functions/visitor-reports-function.php");
$rekapVisitor = getVisitorData($conn2, $thisPage);
$counter = 0; $list_data = '';
//var_dump($rekapVisitor[0]);
foreach ($rekapVisitor[0] as $value){
	$counter++;
	$list_data .= '
	<tr>
		<td><p style="text-align:center">'.$counter.'</p></td>
		<td><p>'.$value["negara"].'</p></td>
		<td><p style="text-align:right">'.$value["total"].'</p></td>
		<td><p style="text-align:right">'.$value["total2"].'</p></td>
	</tr>';
}
echo '
<p>
	<table class="tabel-buyer table table-bordered table-hover table-striped">
		<thead>
			<tr>
				<th width="5%"  scope="col"><p style="text-align:center"><strong>No.</strong></p></th>
				<th width="55%" scope="col"><p><strong>Negara</strong></p></th>
				<th width="20%" scope="col"><p style="text-align:right"><strong>Registered</strong></p></th>
				<th width="20%" scope="col"><p style="text-align:right"><strong>Verified</strong></p></th>
			</tr>
		</thead>
		<tbody>
			<tr style="background-color:#b6e8f9">
				<td><p style="text-align:center">#</p></td>
				<td><p><strong>Total</strong></p></td>
				<td><p style="text-align:right">'.$rekapVisitor[1].'</p></td>					
				<td><p style="text-align:right">'.$rekapVisitor[2].'</p></td>
			<tr>'.
			$list_data.'
		</tbody>
	</table>
</p>';
?>