Subversion Repositories SmartDukaan

Rev

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