| 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>
|
| 15469 |
manas |
23 |
<?php foreach ($agentActivations as $agentActivation): ?>
|
|
|
24 |
<td><?php echo h($agentActivation['a']['name'].'('.$agentActivation[0]['count'].')'); ?></td>
|
|
|
25 |
<?php endforeach; ?>
|
| 15382 |
anikendra |
26 |
<table class="table table-striped">
|
|
|
27 |
<tr>
|
|
|
28 |
<th><?php echo __('date'); ?></th>
|
|
|
29 |
<th><?php echo __('referrer'); ?></th>
|
| 15422 |
manas |
30 |
<th><?php echo __('utm_campaign'); ?></th>
|
| 15436 |
manas |
31 |
<th><?php echo __('name'); ?></th>
|
| 15582 |
manas |
32 |
<th><?php echo __('city'); ?></th>
|
| 15382 |
anikendra |
33 |
<th><?php echo __('count'); ?></th>
|
|
|
34 |
</tr>
|
|
|
35 |
<?php foreach ($activations as $activation): ?>
|
|
|
36 |
<tr>
|
|
|
37 |
<td><?php echo h($activation[0]['date']); ?> </td>
|
|
|
38 |
<td><?php echo h($activation['users']['referrer']); ?> </td>
|
| 15422 |
manas |
39 |
<td><?php echo h($activation['users']['utm_campaign']); ?> </td>
|
| 15436 |
manas |
40 |
<td><?php echo h($activation[1]); ?> </td>
|
| 15582 |
manas |
41 |
<td><?php echo h($activation[2]); ?> </td>
|
| 15382 |
anikendra |
42 |
<td><?php echo h($activation[0]['count']); ?> </td>
|
|
|
43 |
</tr>
|
|
|
44 |
<?php endforeach; ?>
|
|
|
45 |
</table>
|
|
|
46 |
</div>
|
|
|
47 |
</div>
|
|
|
48 |
</div>
|
|
|
49 |
<script type="text/javascript">
|
|
|
50 |
function reload(){
|
|
|
51 |
document.location = '/admin/reports/activations';
|
|
|
52 |
}
|
|
|
53 |
</script>
|