Subversion Repositories SmartDukaan

Rev

Rev 17299 | 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">
14734 anikendra 3
		<div class="col-lg-12 table-responsive">
17101 anikendra 4
			<h3>Browsing history (<?php echo $user['username'];?>)</h3>
14409 anikendra 5
			<table class="table table-striped">
14401 anikendra 6
				<tr>
17101 anikendra 7
					<th>Time<?php //echo $this->Paginator->sort('created'); ?></th>
8
					<th>Url<?php //echo $this->Paginator->sort('url'); ?></th>					
14401 anikendra 9
				</tr>
17101 anikendra 10
				<?php if(!empty($userUrls)):?>
11
					<?php foreach ($userUrls as $url): ?>
12
					<tr>
19045 naman 13
						<td><?php echo date('d-m-Y H:i:s',$url['created']/1000); ?></td>
17101 anikendra 14
						<td><?php echo h($url['url']); ?>&nbsp;</td>					
15
					</tr>
16
				<?php endforeach; ?>
17
			<?php endif;?>
14409 anikendra 18
			</table>
19
			<p>
14401 anikendra 20
				<?php
17101 anikendra 21
				/*
14401 anikendra 22
				echo $this->Paginator->counter(array(
23
				'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
24
				));
17101 anikendra 25
				*/
14409 anikendra 26
				?>	
27
			</p>
28
			<div class="paging">
29
			<?php
17101 anikendra 30
				/*echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
14409 anikendra 31
				echo $this->Paginator->numbers(array('separator' => ''));
17101 anikendra 32
				echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));*/
14409 anikendra 33
			?>
14401 anikendra 34
			</div>
17101 anikendra 35
			<nav>
36
			  <ul class="pager">
37
			    <?php if($page>1):?><li><a href="<?php echo '?user_id='.$userId.'&page='.($page-1);?>">Previous</a></li><?php endif;?>
38
			    <li><a href="<?php echo '?user_id='.$userId.'&page='.($page+1);?>">Next</a></li>
39
			  </ul>
40
			</nav>
14401 anikendra 41
		</div>
42
	</div>
43
</div>