Subversion Repositories SmartDukaan

Rev

Rev 14401 | Rev 14420 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
14401 anikendra 1
<div class="container">
2
	<div class="row">
3
		<div class="col-lg-12">
4
			<h3>User's browsing history</h3>
14409 anikendra 5
			<table class="table table-striped">
14401 anikendra 6
				<tr>
14409 anikendra 7
					<th><?php echo $this->Paginator->sort('id'); ?></th>
8
					<th><?php echo $this->Paginator->sort('user_id'); ?></th>
9
					<th><?php echo $this->Paginator->sort('url'); ?></th>
10
					<th><?php echo $this->Paginator->sort('created'); ?></th>
14401 anikendra 11
				</tr>
12
				<?php foreach ($userUrls as $url): ?>
13
				<tr>
14409 anikendra 14
					<td><?php echo h($url['UserUrl']['id']); ?>&nbsp;</td>
14401 anikendra 15
					<td>
16
						<?php echo $this->Html->link($url['User']['username'], array('controller' => 'users', 'action' => 'view', $url['User']['id'])); ?>
17
					</td>
14409 anikendra 18
					<td><?php echo h($url['UserUrl']['url']); ?>&nbsp;</td>
19
					<td><?php echo h($url['UserUrl']['created']); ?>&nbsp;</td>
14401 anikendra 20
				</tr>
21
			<?php endforeach; ?>
14409 anikendra 22
			</table>
23
			<p>
14401 anikendra 24
				<?php
25
				echo $this->Paginator->counter(array(
26
				'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
27
				));
14409 anikendra 28
				?>	
29
			</p>
30
			<div class="paging">
31
			<?php
32
				echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
33
				echo $this->Paginator->numbers(array('separator' => ''));
34
				echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
35
			?>
14401 anikendra 36
			</div>
37
		</div>
38
	</div>
39
</div>