Subversion Repositories SmartDukaan

Rev

Rev 14787 | Go to most recent revision | 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>
15785 manas 20
						<th><?php echo ('City');?></th>
21
						<th><?php echo ('State');?></th>
14395 anikendra 22
						<th><?php echo $this->Paginator->sort('created');?></th>
14401 anikendra 23
						<th>Actions</th>
13532 anikendra 24
					</tr>
25
				</thead>
26
				<tbody>
27
				<?php foreach($users AS $user):?>
28
					<tr>
15785 manas 29
 
14395 anikendra 30
						<td><?php echo $user['User']['id'];?></td>
13532 anikendra 31
						<td><?php echo $user['User']['email'];?></td>
32
						<td><?php echo $user['User']['first_name'];?></td>
14394 anikendra 33
						<td><?php echo $user['User']['referrer'];?></td>
14720 anikendra 34
						<td><?php echo $user['User']['utm_source'];?></td>
35
						<td><?php echo $user['User']['utm_medium'];?></td>
36
						<td><?php echo $user['User']['utm_term'];?></td>
37
						<td><?php echo $user['User']['utm_campaign'];?></td>				
14787 anikendra 38
						<td><?php echo $user['User']['mobile_number'];?></td>
39
						<th><?php echo $user['User']['activated'];?></th>			
15785 manas 40
						<th><?php echo $user['User']['city'];?></th>
41
						<th><?php echo $user['User']['state'];?></th>	
14395 anikendra 42
						<td><?php echo $user['User']['created'];?></td>						
14401 anikendra 43
						<td>
15785 manas 44
							<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 45
						</td>						
13532 anikendra 46
					</tr>
47
				<?php endforeach;?>
48
				</tbody>
49
			</table>
50
			<p>
51
				<?php
52
				echo $this->Paginator->counter(array(
53
				'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
54
				));
55
				?>	
56
			</p>
57
			<div class="paging">
58
			<?php
15785 manas 59
				echo $this->Paginator->prev('< ' . __('previous '), array(), null, array('class' => 'prev disabled'));
60
				echo $this->Paginator->numbers(array('separator' => ' '));
61
				echo $this->Paginator->next(__(' next') . ' >', array(), null, array('class' => 'next disabled'));
13532 anikendra 62
			?>
63
			</div>
64
			<?php endif;?>
65
		</div>		
66
	</div>
67
</div>