| Line 13... |
Line 13... |
| 13 |
<span class="categorytabcontrol" id="togglepreferences-<?php echo $category['Category']['id'];?>" data-id="<?php echo $category['Category']['id'];?>"></span>
|
13 |
<span class="categorytabcontrol" id="togglepreferences-<?php echo $category['Category']['id'];?>" data-id="<?php echo $category['Category']['id'];?>"></span>
|
| 14 |
</div>
|
14 |
</div>
|
| 15 |
</div>
|
15 |
</div>
|
| 16 |
</div>
|
16 |
</div>
|
| 17 |
<div class="row hidden" id="preferences-<?php echo $category['Category']['id'];?>">
|
17 |
<div class="row hidden" id="preferences-<?php echo $category['Category']['id'];?>">
|
| 18 |
<div class="brandpreferences">
|
- |
|
| 19 |
<?php if(!empty($category['Brand'])):?>
|
- |
|
| 20 |
<h5>My Favourite Brands</h5>
|
- |
|
| 21 |
<?php foreach ($category['Brand'] as $key => $brand):?>
|
- |
|
| 22 |
<div class="col-xs-6">
|
- |
|
| 23 |
<?php if(!empty($preferredBrands) && in_array($brand['name'],$preferredBrands[$category['Category']['id']])):?>
|
- |
|
| 24 |
<input type="checkbox" name="brand[]" value="<?php echo $brand['name'];?>" class="brandselector" data-catid="<?php echo $category['Category']['id'];?>" checked="checked"/>
|
- |
|
| 25 |
<?php else:?>
|
- |
|
| 26 |
<input type="checkbox" name="brand[]" value="<?php echo $brand['name'];?>" class="brandselector" data-catid="<?php echo $category['Category']['id'];?>"/>
|
- |
|
| 27 |
<?php endif;?>
|
- |
|
| 28 |
<?php echo $brand['name'];?>
|
- |
|
| 29 |
</div>
|
- |
|
| 30 |
<?php endforeach;?>
|
- |
|
| 31 |
<?php endif;?>
|
- |
|
| 32 |
</div>
|
- |
|
| 33 |
<div class="clearfix"></div>
|
- |
|
| 34 |
<div class="pricepreferences">
|
18 |
<div class="pricepreferences">
|
| 35 |
<h5>My Price Range</h5>
|
19 |
<h5>My Price Range</h5>
|
| 36 |
<?php if(!empty($preferredPrices) && isset($preferredPrices[$category['Category']['id']])){
|
20 |
<?php if(!empty($preferredPrices) && isset($preferredPrices[$category['Category']['id']])){
|
| 37 |
$range = "[".intval($preferredPrices[$category['Category']['id']]['min_price']).",".intval($preferredPrices[$category['Category']['id']]['max_price'])."]";
|
21 |
$range = "[".intval($preferredPrices[$category['Category']['id']]['min_price']).",".intval($preferredPrices[$category['Category']['id']]['max_price'])."]";
|
| 38 |
}else{
|
22 |
}else{
|
| Line 42... |
Line 26... |
| 42 |
<input id="pricerange-<?php echo $category['Category']['id'];?>" value="" type="text" class="col-xs-12 slider" name="pricerange" data-slider-min="500" data-slider-max="80000" data-slider-step="500" data-slider-orientation="horizontal" data-slider-selection="after"data-slider-tooltip="show" data-slider-value="<?php echo $range;?>">
|
26 |
<input id="pricerange-<?php echo $category['Category']['id'];?>" value="" type="text" class="col-xs-12 slider" name="pricerange" data-slider-min="500" data-slider-max="80000" data-slider-step="500" data-slider-orientation="horizontal" data-slider-selection="after"data-slider-tooltip="show" data-slider-value="<?php echo $range;?>">
|
| 43 |
</div>
|
27 |
</div>
|
| 44 |
<b class="minrange col-xs-6"><span class="cashbackrupee"></span>500</b>
|
28 |
<b class="minrange col-xs-6"><span class="cashbackrupee"></span>500</b>
|
| 45 |
<b class="maxrange col-xs-6 text-right"><span class="cashbackrupee"></span>80000</b>
|
29 |
<b class="maxrange col-xs-6 text-right"><span class="cashbackrupee"></span>80000</b>
|
| 46 |
</div>
|
30 |
</div>
|
| - |
|
31 |
<div class="clearfix"></div>
|
| - |
|
32 |
<div class="brandpreferences">
|
| - |
|
33 |
<?php if(!empty($category['Brand'])):?>
|
| - |
|
34 |
<?php //print_r($category['Brand']);?>
|
| - |
|
35 |
<h5>My Favourite Brands</h5>
|
| - |
|
36 |
<?php foreach ($category['Brand'] as $key => $brand):?>
|
| - |
|
37 |
<div class="col-xs-6 brands <?php if(empty($brand['displayed_in_preference_page'])):?>hidden notfeatured<?php endif;?>">
|
| - |
|
38 |
<?php if(!empty($preferredBrands) && isset($preferredBrands[$category['Category']['id']]) && in_array($brand['name'],$preferredBrands[$category['Category']['id']])):?>
|
| - |
|
39 |
<input type="checkbox" name="brand[]" value="<?php echo $brand['name'];?>" class="brandselector" data-catid="<?php echo $category['Category']['id'];?>" checked="checked"/>
|
| - |
|
40 |
<?php else:?>
|
| - |
|
41 |
<input type="checkbox" name="brand[]" value="<?php echo $brand['name'];?>" class="brandselector" data-catid="<?php echo $category['Category']['id'];?>"/>
|
| - |
|
42 |
<?php endif;?>
|
| - |
|
43 |
<?php echo $brand['name'];?>
|
| - |
|
44 |
</div>
|
| - |
|
45 |
<?php endforeach;?>
|
| - |
|
46 |
<div class="revealbrands">Others</div>
|
| - |
|
47 |
<?php endif;?>
|
| - |
|
48 |
</div>
|
| 47 |
</div>
|
49 |
</div>
|
| 48 |
</form>
|
50 |
</form>
|
| 49 |
</div>
|
51 |
</div>
|
| 50 |
<?php endforeach;?>
|
52 |
<?php endforeach;?>
|
| 51 |
<?php endif;?>
|
53 |
<?php endif;?>
|