| 14434 |
anikendra |
1 |
<div class="container">
|
|
|
2 |
<div class="row">
|
| 14734 |
anikendra |
3 |
<div class="col-lg-12 table-responsive">
|
| 14434 |
anikendra |
4 |
<div class="searchbar">
|
|
|
5 |
<form class="navbar-form" role="search" method="GET" name="search">
|
|
|
6 |
<div class="input-group col-xs-12 text-right" id="remote">
|
|
|
7 |
<input autocomplete="off" type="text" class="form-control" placeholder="Search for url" name="q" id="srch-term" value="<?php if(isset($q)){echo $q;}?>">
|
|
|
8 |
<div class="input-group-btn w25px">
|
|
|
9 |
<button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
|
|
|
10 |
</div>
|
|
|
11 |
</div>
|
|
|
12 |
</form>
|
|
|
13 |
</div>
|
|
|
14 |
<h3>Browsing history</h3>
|
|
|
15 |
<table class="table table-striped">
|
|
|
16 |
<tr>
|
| 17101 |
anikendra |
17 |
<th>Time<?php //echo $this->Paginator->sort('time'); ?></th>
|
|
|
18 |
<th>UserId<?php //echo $this->Paginator->sort('user_id'); ?></th>
|
|
|
19 |
<th>Url<?php //echo $this->Paginator->sort('url'); ?></th>
|
|
|
20 |
<th>Ip<?php //echo $this->Paginator->sort('ip'); ?></th>
|
| 14434 |
anikendra |
21 |
</tr>
|
| 17101 |
anikendra |
22 |
<?php if(!empty($userUrls)):?>
|
|
|
23 |
<?php foreach ($userUrls as $url): ?>
|
| 17111 |
anikendra |
24 |
<tr>
|
| 19044 |
naman |
25 |
<td><?php echo date('d-m-Y H:i:s',$url['created']/1000); ?></td>
|
| 17101 |
anikendra |
26 |
<!-- <td><?php //echo h($url['UserUrl']['id']); ?> </td> -->
|
|
|
27 |
<td>
|
|
|
28 |
<?php echo $this->Html->link($url['email'].' ('.$url['user_id'].')', array('controller' => 'user_urls', 'action' => 'by', $url['user_id'])); ?>
|
|
|
29 |
</td>
|
|
|
30 |
<td><?php echo h($url['url']); ?></td>
|
|
|
31 |
<td><?php echo h($url['ip']); ?></td>
|
|
|
32 |
</tr>
|
|
|
33 |
<?php endforeach; ?>
|
|
|
34 |
<?php endif;?>
|
| 14434 |
anikendra |
35 |
</table>
|
|
|
36 |
<p>
|
|
|
37 |
<?php
|
| 17101 |
anikendra |
38 |
/*echo $this->Paginator->counter(array(
|
| 14434 |
anikendra |
39 |
'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
|
| 17101 |
anikendra |
40 |
));*/
|
| 14434 |
anikendra |
41 |
?>
|
|
|
42 |
</p>
|
|
|
43 |
<div class="paging">
|
|
|
44 |
<?php
|
| 17101 |
anikendra |
45 |
/*echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
|
| 14434 |
anikendra |
46 |
echo $this->Paginator->numbers(array('separator' => ''));
|
| 17101 |
anikendra |
47 |
echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));*/
|
| 14434 |
anikendra |
48 |
?>
|
|
|
49 |
</div>
|
| 17101 |
anikendra |
50 |
<nav>
|
|
|
51 |
<ul class="pager">
|
| 17117 |
anikendra |
52 |
<?php if($page>1):?><li><a href="<?php echo '?page='.($page-1);?><?php if(isset($q)):?>&q=<?php echo $q;?><?php endif;?>">Previous</a></li><?php endif;?>
|
|
|
53 |
<li><a href="<?php echo '?page='.($page+1);?><?php if(isset($q)):?>&q=<?php echo $q;?><?php endif;?>">Next</a></li>
|
| 17101 |
anikendra |
54 |
</ul>
|
|
|
55 |
</nav>
|
| 14434 |
anikendra |
56 |
</div>
|
|
|
57 |
</div>
|
| 17111 |
anikendra |
58 |
</div>
|