Subversion Repositories SmartDukaan

Rev

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