Subversion Repositories SmartDukaan

Rev

Rev 14434 | Rev 14704 | 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">
3
		<div class="col-lg-12">
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>
17
					<th><?php echo $this->Paginator->sort('created'); ?></th>
14509 anikendra 18
					<th><?php echo $this->Paginator->sort('user_id'); ?></th>
14434 anikendra 19
					<th><?php echo $this->Paginator->sort('url'); ?></th>					
20
				</tr>
21
				<?php foreach ($userUrls as $url): ?>
22
				<tr>
23
					<td><?php echo h($url['UserUrl']['created']); ?>&nbsp;</td>
24
					<!-- <td><?php //echo h($url['UserUrl']['id']); ?>&nbsp;</td> -->
25
					<td>
14509 anikendra 26
						<?php echo $this->Html->link($url['User']['username'], array('controller' => 'user_urls', 'action' => 'by', $url['User']['id'])); ?>
14434 anikendra 27
					</td>
28
					<td><?php echo h($url['UserUrl']['url']); ?>&nbsp;</td>					
29
				</tr>
30
			<?php endforeach; ?>
31
			</table>
32
			<p>
33
				<?php
34
				echo $this->Paginator->counter(array(
35
				'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
36
				));
37
				?>	
38
			</p>
39
			<div class="paging">
40
			<?php
41
				echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
42
				echo $this->Paginator->numbers(array('separator' => ''));
43
				echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
44
			?>
45
			</div>
46
		</div>
47
	</div>
48
</div>