Subversion Repositories SmartDukaan

Rev

Rev 16448 | Rev 16465 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
15217 anikendra 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">
15227 anikendra 6
        			Search By:         			
7
        			<input type="radio" name="type" value="mobile_number" checked="checked"/>Mobile
8
                    <input type="radio" name="type" value="email"/>Email
15217 anikendra 9
                    <input type="radio" name="type" value="first_name"/>Name
10
                    <input type="radio" name="type" value="referrer"/>Referral Code
15232 anikendra 11
                    <input type="radio" name="type" value="unactivated"/>Activation Pending
15217 anikendra 12
        		</div>
13
                <div class="input-group col-xs-6 text-right" id="remote">
14
                    <input autocomplete="off" type="text" class="form-control" placeholder="Search for users" name="search" id="srch-term">
15
                    <div class="input-group-btn w25px">
16
                        <button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
17
                    </div>
18
                </div>
19
            </form>
20
            <?php if(!empty($users)):?>
21
            <table class="table table-striped">
22
                <thead>
23
                    <tr>
24
                        <th><?php echo $this->Paginator->sort('id');?></th>
25
                        <th><?php echo $this->Paginator->sort('email');?></th>
26
                        <th><?php echo $this->Paginator->sort('name');?></th>
27
                        <th><?php echo $this->Paginator->sort('referrer');?></th>
16449 manas 28
                        <th><?php echo $this->Paginator->sort('utm_source');?></th>
29
                        <th><?php echo $this->Paginator->sort('utm_medium');?></th>
30
                        <th><?php echo $this->Paginator->sort('utm_term');?></th>
15217 anikendra 31
                        <th><?php echo $this->Paginator->sort('utm_campaign');?></th>
32
                        <th><?php echo $this->Paginator->sort('mobile_number');?></th>
33
                        <th><?php echo $this->Paginator->sort('activated');?></th>
16256 manas 34
                        <th><?php echo $this->Paginator->sort('agent_name');?></th>
35
                        <th><?php echo $this->Paginator->sort('retailer_id');?></th>
15217 anikendra 36
                        <th><?php echo $this->Paginator->sort('created');?></th>                        
37
                        <th>&nbsp;</th>  
38
                    </tr>
39
                </thead>
40
                <tbody>
41
                <?php foreach($users AS $user):?>
42
                    <tr>
43
                        <td><?php echo $user['User']['id'];?></td>
44
                        <td><?php echo $user['User']['email'];?></td>
45
                        <td><?php echo $user['User']['first_name'];?></td>
46
                        <td><?php echo $user['User']['referrer'];?></td>
16449 manas 47
                        <td><?php echo $user['User']['utm_source'];?></td>
48
                        <td><?php echo $user['User']['utm_medium'];?></td>
49
                        <td><?php echo $user['User']['utm_term'];?></td>
50
                        <td><?php echo $user['User']['utm_campaign'];?></td>                
15217 anikendra 51
                        <td><?php echo $user['User']['mobile_number'];?></td>
16256 manas 52
                        <th><?php echo $user['User']['activated'];?></th>       
53
                        <th><?php echo $user['User']['agent_name'];?></th>    
54
                        <th><?php echo $user['User']['retailer_id'];?></th>    
15217 anikendra 55
                        <td><?php echo $user['User']['created'];?></td>
56
                        <td>
15815 anikendra 57
                            <a href="/orders/by/<?php echo $user['User']['id'];?>">Orders</a>&nbsp;|&nbsp;<a href="/cashbacks/by/<?php echo $user['User']['id'];?>">Cashback History</a>&nbsp;|&nbsp;<a href="/admin/userAddresses/by/<?php echo $user['User']['id'];?>">Address</a>
15217 anikendra 58
                        </td>
59
                    </tr>
60
                <?php endforeach;?>
61
                </tbody>
62
            </table>
63
            <p>
64
                <?php
65
                echo $this->Paginator->counter(array(
66
                'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
67
                ));
68
                ?>  
69
            </p>
70
            <div class="paging">
71
            <?php
72
                echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
73
                echo $this->Paginator->numbers(array('separator' => ''));
74
                echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
75
            ?>
76
            </div>
77
            <?php endif;?>
78
        </div>      
79
    </div>
80
</div>