| 17379 |
naman |
1 |
<div class="container">
|
|
|
2 |
<div class="row">
|
|
|
3 |
<div class="col-lg-12 table-responsive">
|
|
|
4 |
<form class="navbar-form" role="search" method="GET" name="search" action="<?php echo $base_url;?>admin/users/search">
|
|
|
5 |
<div class="input-group col-xs-6 text-left">
|
|
|
6 |
Search By:
|
|
|
7 |
<!-- <input type="radio" name="type" value="id"/>Id -->
|
|
|
8 |
<input type="radio" name="type" value="mobile_number" checked="checked"/>Mobile
|
|
|
9 |
<input type="radio" name="type" value="email"/>Email
|
|
|
10 |
<!-- <input type="radio" name="type" value="first_name"/>Name -->
|
|
|
11 |
<!-- <input type="radio" name="type" value="referrer"/>Referral Code -->
|
|
|
12 |
<!-- <input type="radio" name="type" value="unactivated"/>Activation Pending -->
|
|
|
13 |
</div>
|
|
|
14 |
<div class="input-group col-xs-6 text-right" id="remote">
|
|
|
15 |
<input autocomplete="off" type="text" class="form-control" placeholder="Search for users" name="search" id="srch-term">
|
|
|
16 |
<div class="input-group-btn w25px">
|
|
|
17 |
<button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
|
|
|
18 |
</div>
|
|
|
19 |
</div>
|
|
|
20 |
</form>
|
|
|
21 |
<?php if(!empty($users)):?>
|
|
|
22 |
<table class="table table-striped">
|
|
|
23 |
<thead>
|
|
|
24 |
<tr>
|
|
|
25 |
<th><?php echo $this->Paginator->sort('id');?></th>
|
|
|
26 |
<th><?php echo $this->Paginator->sort('email');?></th>
|
|
|
27 |
<th><?php echo $this->Paginator->sort('name');?></th>
|
|
|
28 |
<th><?php echo $this->Paginator->sort('referrer');?></th>
|
|
|
29 |
<!-- <th><?php //echo $this->Paginator->sort('utm_source');?></th>
|
|
|
30 |
<th><?php //echo $this->Paginator->sort('utm_medium');?></th>
|
|
|
31 |
<th><?php //echo $this->Paginator->sort('utm_term');?></th> -->
|
|
|
32 |
<th><?php echo $this->Paginator->sort('utm_campaign');?></th>
|
|
|
33 |
<!-- <th><?php //echo $this->Paginator->sort('mobile_number');?></th> -->
|
|
|
34 |
<!-- <th><?php //echo $this->Paginator->sort('activated');?></th> -->
|
|
|
35 |
<th><?php echo $this->Paginator->sort('last_active');?></th>
|
|
|
36 |
<!-- <th><?php //echo $this->Paginator->sort('agent_name');?></th> -->
|
|
|
37 |
<!-- <th><?php //echo $this->Paginator->sort('retailer_id');?></th> -->
|
|
|
38 |
<th><?php echo $this->Paginator->sort('created');?></th>
|
|
|
39 |
<th> </th>
|
|
|
40 |
<!-- <th>App Tab</th> -->
|
|
|
41 |
</tr>
|
|
|
42 |
</thead>
|
|
|
43 |
<tbody>
|
|
|
44 |
<?php foreach($users AS $user):?>
|
|
|
45 |
<tr>
|
|
|
46 |
<td><?php echo $user['User']['id'];?></td>
|
|
|
47 |
<td><?php echo $user['User']['email'];?></td>
|
|
|
48 |
<td><?php echo $user['User']['first_name'];?></td>
|
|
|
49 |
<td><?php echo $user['User']['referrer'];?></td>
|
|
|
50 |
<!-- <td><?php //echo $user['User']['utm_source'];?></td>
|
|
|
51 |
<td><?php //echo $user['User']['utm_medium'];?></td>
|
|
|
52 |
<td><?php //echo $user['User']['utm_term'];?></td> -->
|
|
|
53 |
<td><?php echo $user['User']['utm_campaign'];?></td>
|
|
|
54 |
<!-- <td><?php //echo $user['User']['mobile_number'];?></td> -->
|
|
|
55 |
<!-- <th><?php //echo $user['User']['activated'];?></th> -->
|
|
|
56 |
<!-- <th><?php //echo $user['Useractive']['last_active'];?></th> -->
|
|
|
57 |
<th><?php $x = intval($user['User']['id']);
|
|
|
58 |
if(isset($last_act_user_id[$x])){
|
|
|
59 |
echo $last_act_user_id[$x];
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
?>
|
|
|
63 |
</th>
|
|
|
64 |
|
|
|
65 |
<!-- <th><?php //echo $user['User']['agent_name'];?></th> -->
|
|
|
66 |
<!-- <th><?php //echo $user['User']['retailer_id'];?></th> -->
|
|
|
67 |
<td><?php echo $user['User']['created'];?></td>
|
|
|
68 |
<td>
|
|
|
69 |
<a href="/orders/by/<?php echo $user['User']['id'];?>">Orders</a> | <a href="/cashbacks/by/<?php echo $user['User']['id'];?>">Cashback History</a>
|
| 19697 |
naman |
70 |
| <a href="/admin/users/by/<?php echo $user['User']['id'];?>">Address</a> |
|
|
|
71 |
<a href="/admin/users/target/<?php echo $user['User']['id'];?>">Scheme</a>
|
| 17379 |
naman |
72 |
</td>
|
|
|
73 |
<!-- <td> -->
|
|
|
74 |
<?php //if(empty($user['Appacl']['access'])):?>
|
|
|
75 |
<!-- <a href="/admin/appacls/activate/<?php //echo $user['User']['id'];?>"><button type="button" class="btn btn-danger btn-xs">Activate</button></a> -->
|
|
|
76 |
<?php //else:?>
|
|
|
77 |
<!-- <span class="label label-success">Activated</span> -->
|
|
|
78 |
<?php //endif;?>
|
|
|
79 |
<!-- </td> -->
|
|
|
80 |
</tr>
|
|
|
81 |
<?php endforeach;?>
|
|
|
82 |
</tbody>
|
|
|
83 |
</table>
|
|
|
84 |
<p>
|
|
|
85 |
<?php
|
|
|
86 |
echo $this->Paginator->counter(array(
|
|
|
87 |
'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
|
|
|
88 |
));
|
|
|
89 |
?>
|
|
|
90 |
</p>
|
|
|
91 |
<div class="paging">
|
|
|
92 |
<?php
|
|
|
93 |
echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
|
|
|
94 |
echo $this->Paginator->numbers(array('separator' => ''));
|
|
|
95 |
echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
|
|
|
96 |
?>
|
|
|
97 |
</div>
|
|
|
98 |
<?php endif;?>
|
|
|
99 |
</div>
|
|
|
100 |
</div>
|
|
|
101 |
</div>
|