Subversion Repositories SmartDukaan

Rev

Rev 14394 | Go to most recent revision | Details | 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>
9
						<th>Email</th>
10
						<th>Name</th>
11
						<th>Group</th>
12
						<th>Created</th>
13
						<th>Actions</th>
14
					</tr>
15
				</thead>
16
				<tbody>
17
				<?php foreach($users AS $user):?>
18
					<tr>
19
						<td><?php echo $user['User']['email'];?></td>
20
						<td><?php echo $user['User']['first_name'];?></td>
21
						<td><?php echo $groups[$user['User']['group_id']];?></td>
22
						<td><?php echo $user['User']['created'];?></td>
23
						<td class="actions">
24
							<?php echo $this->Html->link(__('View'), array('action' => 'view', $user['User']['id'])); ?>
25
							<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $user['User']['id'])); ?>
26
						</td>
27
					</tr>
28
				<?php endforeach;?>
29
				</tbody>
30
			</table>
31
			<p>
32
				<?php
33
				echo $this->Paginator->counter(array(
34
				'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
35
				));
36
				?>	
37
			</p>
38
			<div class="paging">
39
			<?php
40
				echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
41
				echo $this->Paginator->numbers(array('separator' => ''));
42
				echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
43
			?>
44
			</div>
45
			<?php endif;?>
46
		</div>		
47
	</div>
48
</div>