| 15382 |
anikendra |
1 |
<div class="container">
|
|
|
2 |
<div class="row">
|
|
|
3 |
<div class="col-lg-12 table-responsive">
|
|
|
4 |
<div class="searchbar">
|
|
|
5 |
<?php echo $this->Form->create('Report');?>
|
|
|
6 |
<!-- <form class="navbar-form" role="search" method="GET" name="search"> -->
|
|
|
7 |
<div class="input-group col-xs-12 text-left" id="remote">
|
|
|
8 |
<?php echo $this->Form->input('date',array('type'=>'date'));?>
|
|
|
9 |
<!-- <input autocomplete="off" type="text" class="form-control" placeholder="Search for url" name="q" id="srch-term" value="<?php if(isset($q)){echo $q;}?>"> -->
|
|
|
10 |
<div class="input-group-btn w25px">
|
|
|
11 |
<button class="btn btn-xs btn-default" type="submit">Submit</button>
|
|
|
12 |
<button class="btn btn-xs btn-default" type="reset" onclick="reload()">Reset</button>
|
|
|
13 |
</div>
|
|
|
14 |
</div>
|
|
|
15 |
<?php echo $this->Form->end();?>
|
|
|
16 |
<!-- </form> -->
|
|
|
17 |
</div>
|
|
|
18 |
<h3><?php echo __('Activations '); ?> <?php echo "($date)";?></h3>
|
| 15428 |
manas |
19 |
<?php foreach ($activations as $activation): ?>
|
|
|
20 |
<?php $count+=$activation[0]['count'];?>
|
|
|
21 |
<?php endforeach; ?>
|
|
|
22 |
<h4><?php echo __('Total Activations '); ?> <?php echo h($count);?></h4>
|
| 15382 |
anikendra |
23 |
<table class="table table-striped">
|
|
|
24 |
<tr>
|
|
|
25 |
<th><?php echo __('date'); ?></th>
|
|
|
26 |
<th><?php echo __('referrer'); ?></th>
|
| 15422 |
manas |
27 |
<th><?php echo __('utm_campaign'); ?></th>
|
| 15436 |
manas |
28 |
<th><?php echo __('name'); ?></th>
|
| 15382 |
anikendra |
29 |
<th><?php echo __('count'); ?></th>
|
|
|
30 |
</tr>
|
|
|
31 |
<?php foreach ($activations as $activation): ?>
|
|
|
32 |
<tr>
|
|
|
33 |
<td><?php echo h($activation[0]['date']); ?> </td>
|
|
|
34 |
<td><?php echo h($activation['users']['referrer']); ?> </td>
|
| 15422 |
manas |
35 |
<td><?php echo h($activation['users']['utm_campaign']); ?> </td>
|
| 15436 |
manas |
36 |
<td><?php echo h($activation[1]); ?> </td>
|
| 15382 |
anikendra |
37 |
<td><?php echo h($activation[0]['count']); ?> </td>
|
|
|
38 |
</tr>
|
|
|
39 |
<?php endforeach; ?>
|
|
|
40 |
</table>
|
|
|
41 |
</div>
|
|
|
42 |
</div>
|
|
|
43 |
</div>
|
|
|
44 |
<script type="text/javascript">
|
|
|
45 |
function reload(){
|
|
|
46 |
document.location = '/admin/reports/activations';
|
|
|
47 |
}
|
|
|
48 |
</script>
|