<?php echo $header;?>
<script>
function set(field,Pvalue)
{
	$('#page').val(1);
	nav();
}
function get(nothing,p)
{
	page=p;
	nav();
}
function nav()
{
	var urlPage='';
	if(page)  urlPage="?user=<?php echo $profile['0']['up_user_id'];?>&p="+page;
	else  urlPage="?user=<?php echo $profile['0']['up_user_id'];?>&p=1";
	location="?user=<?php echo $profile['0']['up_user_id'];?>&p="+page;
}
</script>
<div id="dashboard">
	<div class="container">
<div class="row"><br/></div>
<div class="panel">

	<div class="panel-header"><?php echo $LANG["WBS_ADMIN_CLICKFRAUD"];?> <?php echo $profile['0']['up_first_name'];?> <?php echo $profile['0']['up_last_name'];?></div>

<div class="panel-content">
<div class="col-md-12">
<!-- ADMIN QUICK STATS -->



<table class="table">
      <thead>
        <tr>
          <th><?php echo $LANG["WBS_ADMIN_CLICKFRAUD_DATE"];?></th>
          <th><?php echo $LANG["WBS_ADMIN_CLICKFRAUD_KEYWORD"];?></th>
          <th><?php echo $LANG["WBS_ADMIN_CLICKFRAUD_VALUE"];?></th>
        </tr>
      </thead>
      <tbody>


			<?php if ( !empty ( $clicks ) ) { ?>
			<?php foreach($clicks as $click): ?>
				<tr>
				  <td><?php echo date ( DATE_FORMAT_FULL, $click['cf_date'] );?></td>
				  <td><?php echo $click['cf_keyword'];?></td>
				  <td>
				  
<?php if ( MONEY_ALIGN == 'LEFT' ) { ?>
	<?php echo MONEY_SYMBOL;?> <?php echo sprintf(NUMBER_FORMAT, $click['cf_value']);?>
<?php } ?>

<?php if ( MONEY_ALIGN == 'RIGHT' ) { ?>
	<?php echo sprintf(NUMBER_FORMAT, $click['cf_value']);?> <?php echo MONEY_SYMBOL;?>
<?php } ?>
				  
				  </td>

				</tr>
			<?php endforeach; ?>
			<?php } ?>


      </tbody>
</table>

<?php if ( $paginator['rows'] > 10 ) { ?>
<div class="row"></div>
	<?php echo $paginator['pager'];?>
<?php } ?>



<!-- END ADMIN QUICK STATS -->
<div class="row"><br/></div>
</div>
<div class="row"><br/></div>
</div>

</div>
</div>
</div>
<?php echo $footer;?>