| 13815 |
anikendra |
1 |
<div class="container">
|
|
|
2 |
<div class="searchbar">
|
|
|
3 |
<form class="navbar-form" role="search" method="GET" name="search">
|
|
|
4 |
<div class="input-group col-xs-12 text-right">
|
|
|
5 |
<input type="text" class="form-control" placeholder="Search for items" name="q" id="srch-term">
|
|
|
6 |
<div class="input-group-btn w25px">
|
|
|
7 |
<button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
|
|
|
8 |
</div>
|
|
|
9 |
</div>
|
|
|
10 |
</form>
|
|
|
11 |
</div>
|
|
|
12 |
<div class="searchresults">
|
|
|
13 |
<?php if(!empty($result)):?>
|
|
|
14 |
<div class="searchterm">
|
|
|
15 |
<?php echo $q;?> (<?php echo sizeof($result['Solr']);?> results)
|
|
|
16 |
</div>
|
|
|
17 |
<?php foreach ($result['Solr'] as $key => $product):?>
|
|
|
18 |
<a href="/store_products/view/<?php echo $product['id'];?>">
|
|
|
19 |
<div class="card row">
|
|
|
20 |
<div class="col-xs-4 productthumb" data-id="<?php echo $product['id'];?>">
|
|
|
21 |
<?php if(!empty($product['thumbnail'])):?>
|
|
|
22 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $product['thumbnail'];?>&h=100" />
|
|
|
23 |
<?php else:?>
|
|
|
24 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $base_url;?>img/noimage.png&h=80" alt="<?php echo $product['title'];?>"/>
|
|
|
25 |
<?php endif;?>
|
|
|
26 |
</div>
|
|
|
27 |
<div class="col-xs-6 productdetails" data-id="<?php echo $product['id'];?>">
|
|
|
28 |
<h5 class="producttitle" ><?php echo $product['title'];?></h5>
|
|
|
29 |
<div class="product_prices">
|
|
|
30 |
<?php if(isset($product['available_price']) && !empty($product['available_price'])):?>
|
|
|
31 |
<div><span class="rupee"></span><span class="product_price"><?php echo $product['available_price'];?></span></div>
|
|
|
32 |
<?php endif;?>
|
|
|
33 |
<?php if(isset($product['cashback']) && !empty($product['cashback'])):?>
|
|
|
34 |
<div><span class="cashbacklabel">Cashback</span><span class="cashbackrupee"></span> <span class="cashback"><?php echo $product['cashback'];?></span></div>
|
|
|
35 |
<?php endif;?>
|
|
|
36 |
</div>
|
|
|
37 |
<div class="product_short_description <?php if(!isset($product['tagline'])):?>hidden<?php endif;?>"><?php echo $product['tagline'];?></div>
|
|
|
38 |
</div>
|
|
|
39 |
</div>
|
|
|
40 |
</a>
|
|
|
41 |
<?php endforeach;?>
|
|
|
42 |
<?php endif;?>
|
|
|
43 |
</div>
|
|
|
44 |
</div>
|