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 12... Line 12...
12
		        </form>
12
		        </form>
13
			</div>
13
			</div>
14
			<h3>Browsing history</h3>
14
			<h3>Browsing history</h3>
15
			<table class="table table-striped">
15
			<table class="table table-striped">
16
				<tr>
16
				<tr>
17
					<th><?php echo $this->Paginator->sort('time'); ?></th>
17
					<th>Time<?php //echo $this->Paginator->sort('time'); ?></th>
18
					<th><?php echo $this->Paginator->sort('user_id'); ?></th>
18
					<th>UserId<?php //echo $this->Paginator->sort('user_id'); ?></th>
19
					<th><?php echo $this->Paginator->sort('url'); ?></th>					
19
					<th>Url<?php //echo $this->Paginator->sort('url'); ?></th>					
20
					<th><?php echo $this->Paginator->sort('ip'); ?></th>
20
					<th>Ip<?php //echo $this->Paginator->sort('ip'); ?></th>
21
				</tr>
21
				</tr>
-
 
22
				<?php if(!empty($userUrls)):?>
22
				<?php foreach ($userUrls as $url): ?>
23
					<?php foreach ($userUrls as $url): ?>
23
				<tr>
24
					<tr>
24
					<td><?php echo h($url['UserUrl']['time']); ?></td>
25
						<td><?php echo date('d-m-Y h:i:s',$url['time']); ?></td>
25
					<!-- <td><?php //echo h($url['UserUrl']['id']); ?>&nbsp;</td> -->
26
						<!-- <td><?php //echo h($url['UserUrl']['id']); ?>&nbsp;</td> -->
26
					<td>
27
						<td>
27
						<?php echo $this->Html->link($url['User']['username'].' ('.$url['User']['id'].')', array('controller' => 'user_urls', 'action' => 'by', $url['User']['id'])); ?>
28
							<?php echo $this->Html->link($url['email'].' ('.$url['user_id'].')', array('controller' => 'user_urls', 'action' => 'by', $url['user_id'])); ?>
28
					</td>
29
						</td>
29
					<td><?php echo h($url['UserUrl']['url']); ?></td>					
30
						<td><?php echo h($url['url']); ?></td>					
30
					<td><?php echo h($url['UserUrl']['ip']); ?></td>					
31
						<td><?php echo h($url['ip']); ?></td>					
31
				</tr>
32
					</tr>
32
			<?php endforeach; ?>
33
				<?php endforeach; ?>
-
 
34
			<?php endif;?>
33
			</table>
35
			</table>
34
			<p>
36
			<p>
35
				<?php
37
				<?php
36
				echo $this->Paginator->counter(array(
38
				/*echo $this->Paginator->counter(array(
37
				'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
39
				'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
38
				));
40
				));*/
39
				?>	
41
				?>	
40
			</p>
42
			</p>
41
			<div class="paging">
43
			<div class="paging">
42
			<?php
44
			<?php
43
				echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
45
				/*echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
44
				echo $this->Paginator->numbers(array('separator' => ''));
46
				echo $this->Paginator->numbers(array('separator' => ''));
45
				echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
47
				echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));*/
46
			?>
48
			?>
47
			</div>
49
			</div>
-
 
50
			<nav>
-
 
51
			  <ul class="pager">
-
 
52
			    <?php if($page>1):?><li><a href="<?php echo '?page='.($page-1);?>">Previous</a></li><?php endif;?>
-
 
53
			    <li><a href="<?php echo '?page='.($page+1);?>">Next</a></li>
-
 
54
			  </ul>
-
 
55
			</nav>
48
		</div>
56
		</div>
49
	</div>
57
	</div>
50
</div>
58
</div>
51
59