| 15403 |
manish.sha |
1 |
<div class="container">
|
|
|
2 |
<div class="panel panel-primary">
|
|
|
3 |
<div class="panel-heading" style="background-color:#125688;text-align:center;">
|
|
|
4 |
<h3 class="panel-title"><a href="/" style="text-decoration: none;">MobileHot India</a></h3>
|
|
|
5 |
</div>
|
|
|
6 |
</div>
|
|
|
7 |
<div class="searchbar">
|
|
|
8 |
<form class="navbar-form" role="search" method="GET" name="search">
|
|
|
9 |
<div class="input-group col-xs-12 text-right" id="remote">
|
|
|
10 |
<input autocomplete="off" type="text" class="form-control" placeholder="Search for items" name="q" id="srch-term">
|
|
|
11 |
<div class="input-group-btn w25px">
|
|
|
12 |
<button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
|
|
|
13 |
</div>
|
|
|
14 |
</div>
|
|
|
15 |
</form>
|
|
|
16 |
</div>
|
|
|
17 |
<div class="searchresults">
|
|
|
18 |
<?php if(!empty($result)):?>
|
|
|
19 |
<div class="searchterm">
|
|
|
20 |
<?php echo $q;?> Total (<?php echo sizeof($result)-1;?> results)
|
|
|
21 |
</div>
|
|
|
22 |
<div class="scroll">
|
|
|
23 |
<?php echo $this->element('searchresult');?>
|
|
|
24 |
</div>
|
|
|
25 |
<?php endif;?>
|
|
|
26 |
<div id="searchBanners" class="carousel slide" data-ride="carousel">
|
|
|
27 |
|
|
|
28 |
<?php if(!empty($campaigns)):
|
|
|
29 |
$count=0;?>
|
|
|
30 |
<ol class="carousel-indicators">
|
|
|
31 |
<?php foreach ($campaigns as $key => $campaign):?>
|
|
|
32 |
<li data-target="#searchBanners" data-url="<?php echo $campaign['Campaign']['url'];?>" data-source="<?php echo $campaign['Campaign']['store_id'];?>" data-slide-to="<?php echo $count;?>" <?php if($count==0):?>class="active"<?php endif;?> data-price="0"></li>
|
|
|
33 |
<?php $count++;?>
|
|
|
34 |
<?php endforeach;?>
|
|
|
35 |
</ol>
|
|
|
36 |
|
|
|
37 |
<?php $count1=0;?>
|
|
|
38 |
<div class="carousel-inner" role="listbox">
|
|
|
39 |
<?php foreach ($campaigns as $key => $campaign):?>
|
|
|
40 |
<div class="item <?php if($count1==0):?>active<?php endif;?>">
|
|
|
41 |
<a href="<?php echo $campaign['Campaign']['url'];?>"><img src="<?php echo $campaign['Campaign']['img_url'];?>" alt="/"></a>
|
|
|
42 |
</div>
|
|
|
43 |
<?php $count1++;?>
|
|
|
44 |
<?php endforeach;?>
|
|
|
45 |
</div>
|
|
|
46 |
<?php endif;?>
|
|
|
47 |
<a class="left carousel-control" href="#searchBanners" role="button" data-slide="prev">
|
|
|
48 |
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
|
|
49 |
<span class="sr-only">Previous</span>
|
|
|
50 |
</a>
|
|
|
51 |
<a class="right carousel-control" href="#searchBanners" role="button" data-slide="next">
|
|
|
52 |
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
|
|
53 |
<span class="sr-only">Next</span>
|
|
|
54 |
</a>
|
|
|
55 |
</div>
|
|
|
56 |
</div>
|
|
|
57 |
</div>
|
|
|
58 |
<?php echo $this->element('unlikemodal');?>
|
|
|
59 |
<script type="text/javascript" src="/js/bootstrap-typeahead.js?v=<?php echo $staticversion;?>"></script>
|
|
|
60 |
|
|
|
61 |
<script type="text/javascript">
|
|
|
62 |
$('#srch-term').typeahead({
|
|
|
63 |
ajax: { url: '../autosuggest.json',
|
|
|
64 |
triggerLength: 3,
|
|
|
65 |
method: 'get'
|
|
|
66 |
},
|
|
|
67 |
display: 'val',
|
|
|
68 |
val: 'val',
|
|
|
69 |
});
|
|
|
70 |
</script>
|
|
|
71 |
<script type="text/javascript" src="/js/profittill.js?v=<?php echo $staticversion;?>"></script>
|