Rev 19459 | Rev 20482 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<div class="container"><div class="row"><div class="col-lg-12 table-responsive"><form class="navbar-form" role="search" method="GET" name="search" action="<?php echo $base_url;?>admin/users/search"><div class="input-group col-xs-6 text-left">Search By:<input type="radio" name="type" value="id"/>Id<input type="radio" name="type" value="mobile_number" checked="checked"/>Mobile<input type="radio" name="type" value="email"/>Email<input type="radio" name="type" value="first_name"/>Name<input type="radio" name="type" value="referrer"/>Referral Code<input type="radio" name="type" value="unactivated"/>Activation Pending</div><div class="input-group col-xs-6 text-right" id="remote"><input autocomplete="off" type="text" class="form-control" placeholder="Search for users" name="search" id="srch-term"><div class="input-group-btn w25px"><button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button></div></div></form><?php if(!empty($users)):?><table class="table table-striped"><thead><tr><th><?php echo $this->Paginator->sort('id');?></th><th><?php echo $this->Paginator->sort('email');?></th><th><?php echo $this->Paginator->sort('name');?></th><th><?php echo $this->Paginator->sort('referrer');?></th><!-- <th><?php //echo $this->Paginator->sort('utm_source');?></th><th><?php //echo $this->Paginator->sort('utm_medium');?></th><th><?php //echo $this->Paginator->sort('utm_term');?></th> --><th><?php echo $this->Paginator->sort('utm_campaign');?></th><th><?php echo $this->Paginator->sort('mobile_number');?></th><th><?php echo $this->Paginator->sort('activated');?></th><th><?php echo $this->Paginator->sort('last_active');?></th><th><?php echo $this->Paginator->sort('agent_name');?></th><th><?php echo $this->Paginator->sort('retailer_id');?></th><th><?php echo $this->Paginator->sort('created');?></th><th> </th><th>App Tab</th></tr></thead><tbody><?php foreach($users AS $user):?><tr><td><?php echo $user['User']['id'];?></td><td><?php echo $user['User']['email'];?></td><td><?php echo $user['User']['first_name'];?></td><td><?php echo $user['User']['referrer'];?></td><!-- <td><?php //echo $user['User']['utm_source'];?></td><td><?php //echo $user['User']['utm_medium'];?></td><td><?php //echo $user['User']['utm_term'];?></td> --><td><?php echo $user['User']['utm_campaign'];?></td><td><?php echo $user['User']['mobile_number'];?></td><th><?php echo $user['User']['activated'];?></th><!-- <th><?php //echo $user['Useractive']['last_active'];?></th> --><th><?php $x = intval($user['User']['id']);if(isset($last_act_user_id[$x])){echo $last_act_user_id[$x];}?></th><th><?php echo $user['User']['agent_name'];?></th><th><?php echo $user['User']['retailer_id'];?></th><td><?php echo $user['User']['created'];?></td><td><a href="/orders/by/<?php echo $user['User']['id'];?>">Orders</a> | <a href="/cashbacks/by/<?php echo $user['User']['id'];?>">Cashback History</a> | <a href="/admin/userAddresses/by/<?php echo $user['User']['id'];?>">Address</a><a href="/admin/users/target/<?php echo $user['User']['id'];?>">Scheme</a><?php if(in_array('admin/users/userrefund',$acls[$logged_user['group_id']]['allowed'])):?>| <a href="/admin/users/userrefund/?id=<?php echo $user['User']['id'].'&email='.$user['User']['email'].'&mob='.$user['User']['mobile_number'];?>">Refund</a><?php endif;?></td><td><?php if(empty($user['Appacl']['access'])):?><a href="/admin/appacls/activate/<?php echo $user['User']['id'];?>"><button type="button" class="btn btn-danger btn-xs">Activate</button></a><?php else:?><span class="label label-success">Activated</span><?php endif;?></td></tr><?php endforeach;?></tbody></table><p><?phpecho $this->Paginator->counter(array('format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')));?></p><div class="paging"><?phpecho $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));echo $this->Paginator->numbers(array('separator' => ''));echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));?></div><?php endif;?></div></div></div>