Subversion Repositories SmartDukaan

Rev

Rev 14734 | Rev 17111 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14734 Rev 17101
Line 1... Line 1...
1
<div class="container">
1
<div class="container">
2
	<div class="row">
2
	<div class="row">
3
		<div class="col-lg-12 table-responsive">
3
		<div class="col-lg-12 table-responsive">
4
			<h3>Browsing history (<?php echo $userUrls[0]['User']['username'];?>)</h3>
4
			<h3>Browsing history (<?php echo $user['username'];?>)</h3>
5
			<table class="table table-striped">
5
			<table class="table table-striped">
6
				<tr>
6
				<tr>
7
					<th><?php echo $this->Paginator->sort('created'); ?></th>
7
					<th>Time<?php //echo $this->Paginator->sort('created'); ?></th>
8
					<!-- <th><?php //echo $this->Paginator->sort('user_id'); ?></th> -->
-
 
9
					<th><?php echo $this->Paginator->sort('url'); ?></th>					
8
					<th>Url<?php //echo $this->Paginator->sort('url'); ?></th>					
10
				</tr>
9
				</tr>
-
 
10
				<?php if(!empty($userUrls)):?>
11
				<?php foreach ($userUrls as $url): ?>
11
					<?php foreach ($userUrls as $url): ?>
12
				<tr>
12
					<tr>
13
					<td><?php echo h($url['UserUrl']['created']); ?>&nbsp;</td>
13
						<td><?php echo date('d-m-Y h:i:s',$url['time']); ?>&nbsp;</td>						
14
					<!-- <td><?php //echo h($url['UserUrl']['id']); ?>&nbsp;</td> -->
-
 
15
					<!--<td>
-
 
16
						<?php //echo $this->Html->link($url['User']['username'], array('controller' => 'users', 'action' => 'view', $url['User']['id'])); ?>
-
 
17
					</td>-->
-
 
18
					<td><?php echo h($url['UserUrl']['url']); ?>&nbsp;</td>					
14
						<td><?php echo h($url['url']); ?>&nbsp;</td>					
19
				</tr>
15
					</tr>
20
			<?php endforeach; ?>
16
				<?php endforeach; ?>
-
 
17
			<?php endif;?>
21
			</table>
18
			</table>
22
			<p>
19
			<p>
23
				<?php
20
				<?php
-
 
21
				/*
24
				echo $this->Paginator->counter(array(
22
				echo $this->Paginator->counter(array(
25
				'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
23
				'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
26
				));
24
				));
-
 
25
				*/
27
				?>	
26
				?>	
28
			</p>
27
			</p>
29
			<div class="paging">
28
			<div class="paging">
30
			<?php
29
			<?php
31
				echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
30
				/*echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
32
				echo $this->Paginator->numbers(array('separator' => ''));
31
				echo $this->Paginator->numbers(array('separator' => ''));
33
				echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
32
				echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));*/
34
			?>
33
			?>
35
			</div>
34
			</div>
-
 
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>
36
		</div>
41
		</div>
37
	</div>
42
	</div>
38
</div>
43
</div>