Subversion Repositories SmartDukaan

Rev

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