Subversion Repositories SmartDukaan

Rev

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