Subversion Repositories SmartDukaan

Rev

Rev 15785 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
13532 anikendra 1
<div class="container">
2
	<div class="row">
14720 anikendra 3
		<div class="col-lg-12 table-responsive">
13532 anikendra 4
			<h3>List of registered users</h3>
5
			<?php if(!empty($users)):?>
15785 manas 6
 
13532 anikendra 7
			<table class="table table-striped">
8
				<thead>
9
					<tr>
14395 anikendra 10
						<th><?php echo $this->Paginator->sort('id');?></th>
14394 anikendra 11
						<th><?php echo $this->Paginator->sort('email');?></th>
12
						<th><?php echo $this->Paginator->sort('name');?></th>
13
						<th><?php echo $this->Paginator->sort('referrer');?></th>
14720 anikendra 14
						<th><?php echo $this->Paginator->sort('utm_source');?></th>
15
						<th><?php echo $this->Paginator->sort('utm_medium');?></th>
16
						<th><?php echo $this->Paginator->sort('utm_term');?></th>
17
						<th><?php echo $this->Paginator->sort('utm_campaign');?></th>
14394 anikendra 18
						<th><?php echo $this->Paginator->sort('mobile_number');?></th>
14787 anikendra 19
						<th><?php echo $this->Paginator->sort('activated');?></th>
15815 anikendra 20
						<th><?php echo ('RetailerId');?></th>
15785 manas 21
						<th><?php echo ('City');?></th>
22
						<th><?php echo ('State');?></th>
14395 anikendra 23
						<th><?php echo $this->Paginator->sort('created');?></th>
14401 anikendra 24
						<th>Actions</th>
13532 anikendra 25
					</tr>
26
				</thead>
27
				<tbody>
28
				<?php foreach($users AS $user):?>
29
					<tr>
15785 manas 30
 
14395 anikendra 31
						<td><?php echo $user['User']['id'];?></td>
13532 anikendra 32
						<td><?php echo $user['User']['email'];?></td>
33
						<td><?php echo $user['User']['first_name'];?></td>
14394 anikendra 34
						<td><?php echo $user['User']['referrer'];?></td>
14720 anikendra 35
						<td><?php echo $user['User']['utm_source'];?></td>
36
						<td><?php echo $user['User']['utm_medium'];?></td>
37
						<td><?php echo $user['User']['utm_term'];?></td>
38
						<td><?php echo $user['User']['utm_campaign'];?></td>				
14787 anikendra 39
						<td><?php echo $user['User']['mobile_number'];?></td>
40
						<th><?php echo $user['User']['activated'];?></th>			
15815 anikendra 41
						<th><?php echo $user['User']['retailer_id'];?></th>
15785 manas 42
						<th><?php echo $user['User']['city'];?></th>
43
						<th><?php echo $user['User']['state'];?></th>	
14395 anikendra 44
						<td><?php echo $user['User']['created'];?></td>						
14401 anikendra 45
						<td>
15785 manas 46
							<a href="/admin/user_urls/by/<?php echo $user['User']['id'];?>">Browsing History</a>&nbsp;|&nbsp;<a href="/admin/devices/by/<?php echo $user['User']['id'];?>">Device History</a>&nbsp;|&nbsp;<a href="/admin/clicks/by/<?php echo $user['User']['id'];?>">Click History</a>|&nbsp;<a href="/admin/userAddresses/by/<?php echo $user['User']['id'];?>">Address</a>
14401 anikendra 47
						</td>						
13532 anikendra 48
					</tr>
49
				<?php endforeach;?>
50
				</tbody>
51
			</table>
52
			<p>
53
				<?php
54
				echo $this->Paginator->counter(array(
55
				'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
56
				));
57
				?>	
58
			</p>
59
			<div class="paging">
60
			<?php
15785 manas 61
				echo $this->Paginator->prev('< ' . __('previous '), array(), null, array('class' => 'prev disabled'));
62
				echo $this->Paginator->numbers(array('separator' => ' '));
63
				echo $this->Paginator->next(__(' next') . ' >', array(), null, array('class' => 'next disabled'));
13532 anikendra 64
			?>
65
			</div>
66
			<?php endif;?>
67
		</div>		
68
	</div>
69
</div>