Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
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>
14704 anikendra 17
					<th><?php echo $this->Paginator->sort('time'); ?></th>
14509 anikendra 18
					<th><?php echo $this->Paginator->sort('user_id'); ?></th>
14434 anikendra 19
					<th><?php echo $this->Paginator->sort('url'); ?></th>					
14734 anikendra 20
					<th><?php echo $this->Paginator->sort('ip'); ?></th>
14434 anikendra 21
				</tr>
22
				<?php foreach ($userUrls as $url): ?>
23
				<tr>
14704 anikendra 24
					<td><?php echo h($url['UserUrl']['time']); ?></td>
14434 anikendra 25
					<!-- <td><?php //echo h($url['UserUrl']['id']); ?>&nbsp;</td> -->
26
					<td>
14704 anikendra 27
						<?php echo $this->Html->link($url['User']['username'].' ('.$url['User']['id'].')', array('controller' => 'user_urls', 'action' => 'by', $url['User']['id'])); ?>
14434 anikendra 28
					</td>
14704 anikendra 29
					<td><?php echo h($url['UserUrl']['url']); ?></td>					
14734 anikendra 30
					<td><?php echo h($url['UserUrl']['ip']); ?></td>					
14434 anikendra 31
				</tr>
32
			<?php endforeach; ?>
33
			</table>
34
			<p>
35
				<?php
36
				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}')
38
				));
39
				?>	
40
			</p>
41
			<div class="paging">
42
			<?php
43
				echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
44
				echo $this->Paginator->numbers(array('separator' => ''));
45
				echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
46
			?>
47
			</div>
48
		</div>
49
	</div>
50
</div>