| 13820 |
anikendra |
1 |
<style type="text/css">
|
|
|
2 |
|
|
|
3 |
.slider {
|
|
|
4 |
margin-bottom: 40px; }
|
|
|
5 |
|
|
|
6 |
.slider-vertical {
|
|
|
7 |
margin: 10px; }
|
|
|
8 |
|
|
|
9 |
.slider {
|
|
|
10 |
display: inline-block;
|
|
|
11 |
vertical-align: middle;
|
|
|
12 |
position: relative;
|
|
|
13 |
width: 100%; }
|
|
|
14 |
.slider.slider-horizontal {
|
|
|
15 |
height: 30px; }
|
|
|
16 |
.slider.slider-horizontal .slider-track {
|
|
|
17 |
height: 6px;
|
|
|
18 |
width: 100%;
|
|
|
19 |
margin-top: -3px;
|
|
|
20 |
top: 50%;
|
|
|
21 |
left: 0; }
|
|
|
22 |
.slider.slider-horizontal .slider-selection {
|
|
|
23 |
height: 100%;
|
|
|
24 |
top: 0;
|
|
|
25 |
bottom: 0; }
|
|
|
26 |
.slider.slider-horizontal .slider-handle {
|
|
|
27 |
margin-left: -12px;
|
|
|
28 |
margin-top: -9px; }
|
|
|
29 |
.slider.slider-horizontal .slider-handle.triangle {
|
|
|
30 |
border-width: 0 10px 10px 10px;
|
|
|
31 |
width: 0;
|
|
|
32 |
height: 0;
|
|
|
33 |
border-bottom-color: #0480be;
|
|
|
34 |
margin-top: 0; }
|
|
|
35 |
.slider.slider-vertical {
|
|
|
36 |
height: 220px;
|
|
|
37 |
width: 30px; }
|
|
|
38 |
.slider.slider-vertical .slider-track {
|
|
|
39 |
width: 6px;
|
|
|
40 |
height: 100%;
|
|
|
41 |
margin-left: -3px;
|
|
|
42 |
left: 50%;
|
|
|
43 |
top: 0; }
|
|
|
44 |
.slider.slider-vertical .slider-selection {
|
|
|
45 |
width: 100%;
|
|
|
46 |
left: 0;
|
|
|
47 |
top: 0;
|
|
|
48 |
bottom: 0; }
|
|
|
49 |
.slider.slider-vertical .slider-handle {
|
|
|
50 |
margin-left: -9px;
|
|
|
51 |
margin-top: -12px; }
|
|
|
52 |
.slider.slider-vertical .slider-handle.triangle {
|
|
|
53 |
border-width: 10px 0 10px 10px;
|
|
|
54 |
width: 1px;
|
|
|
55 |
height: 1px;
|
|
|
56 |
border-left-color: #0480be;
|
|
|
57 |
margin-left: 0; }
|
|
|
58 |
.slider input {
|
|
|
59 |
display: none; }
|
|
|
60 |
.slider .tooltip-inner {
|
|
|
61 |
white-space: nowrap; }
|
|
|
62 |
|
|
|
63 |
.slider-track {
|
|
|
64 |
position: absolute;
|
|
|
65 |
cursor: pointer;
|
|
|
66 |
background-color: rgba(0, 0, 0, 0.15);
|
|
|
67 |
border-radius: 4px; }
|
|
|
68 |
|
|
|
69 |
.slider-selection {
|
|
|
70 |
position: absolute;
|
|
|
71 |
background-color: white;
|
|
|
72 |
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
|
|
|
73 |
border-radius: 4px; }
|
|
|
74 |
|
|
|
75 |
.slider-handle {
|
|
|
76 |
position: absolute;
|
|
|
77 |
width: 24px;
|
|
|
78 |
height: 24px;
|
|
|
79 |
background-color: white;
|
|
|
80 |
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
|
|
|
81 |
border: 0px solid transparent; }
|
|
|
82 |
.slider-handle.round {
|
|
|
83 |
border-radius: 24px; }
|
|
|
84 |
.slider-handle.triangle {
|
|
|
85 |
background: transparent none; }
|
|
|
86 |
|
|
|
87 |
</style>
|
| 13695 |
anikendra |
88 |
<div class="container">
|
|
|
89 |
<?php if(!empty($categories)):?>
|
|
|
90 |
<?php foreach ($categories as $key => $category):?>
|
|
|
91 |
<div class="categorypreferences">
|
|
|
92 |
<form name="preferenceform" id="categorypreference-<?php echo $category['Category']['id'];?>" action="/preferences/add" method="POST">
|
|
|
93 |
<input type="hidden" name="user_id" value="<?php echo $logged_user['id'];?>"/>
|
|
|
94 |
<input type="hidden" name="category_id" value="<?php echo $category['Category']['id'];?>"/>
|
|
|
95 |
<div class="row">
|
|
|
96 |
<div class="categorytab">
|
|
|
97 |
<div class="col-xs-8"><span class="categoryname"><?php echo $category['Category']['name'];?></span> <button data-id="<?php echo $category['Category']['id'];?>" type="button" class="editcategorypreferences btn btn-xs">Edit</button></div>
|
|
|
98 |
<div class="col-xs-4" data-id="<?php echo $category['Category']['id'];?>">
|
|
|
99 |
<span class="categorytabcontrol" id="togglepreferences-<?php echo $category['Category']['id'];?>" data-id="<?php echo $category['Category']['id'];?>"></span>
|
|
|
100 |
</div>
|
|
|
101 |
</div>
|
|
|
102 |
</div>
|
|
|
103 |
<div class="row hidden" id="preferences-<?php echo $category['Category']['id'];?>">
|
|
|
104 |
<div class="pricepreferences">
|
|
|
105 |
<h5>My Price Range</h5>
|
|
|
106 |
<?php if(!empty($preferredPrices) && isset($preferredPrices[$category['Category']['id']])){
|
|
|
107 |
$range = "[".intval($preferredPrices[$category['Category']['id']]['min_price']).",".intval($preferredPrices[$category['Category']['id']]['max_price'])."]";
|
|
|
108 |
}else{
|
|
|
109 |
$range = '[2000,78000]';
|
|
|
110 |
}?>
|
|
|
111 |
<div class="maxrange col-xs-12">
|
| 13820 |
anikendra |
112 |
<div id="pricerange-<?php echo $category['Category']['id'];?>" value="" class="slider" data-slider-min="500" data-slider-max="80000" data-slider-step="500" data-slider-value="<?php echo $range;?>"></div>
|
| 13695 |
anikendra |
113 |
</div>
|
| 13747 |
anikendra |
114 |
<b class="minrange col-xs-6"><span class="cashbackrupee"></span>500</b>
|
|
|
115 |
<b class="maxrange col-xs-6 text-right"><span class="cashbackrupee"></span>80000</b>
|
| 13695 |
anikendra |
116 |
</div>
|
| 13759 |
anikendra |
117 |
<div class="clearfix"></div>
|
|
|
118 |
<div class="brandpreferences">
|
|
|
119 |
<?php if(!empty($category['Brand'])):?>
|
|
|
120 |
<?php //print_r($category['Brand']);?>
|
|
|
121 |
<h5>My Favourite Brands</h5>
|
|
|
122 |
<?php foreach ($category['Brand'] as $key => $brand):?>
|
|
|
123 |
<div class="col-xs-6 brands <?php if(empty($brand['displayed_in_preference_page'])):?>hidden notfeatured<?php endif;?>">
|
|
|
124 |
<?php if(!empty($preferredBrands) && isset($preferredBrands[$category['Category']['id']]) && in_array($brand['name'],$preferredBrands[$category['Category']['id']])):?>
|
|
|
125 |
<input type="checkbox" name="brand[]" value="<?php echo $brand['name'];?>" class="brandselector" data-catid="<?php echo $category['Category']['id'];?>" checked="checked"/>
|
|
|
126 |
<?php else:?>
|
|
|
127 |
<input type="checkbox" name="brand[]" value="<?php echo $brand['name'];?>" class="brandselector" data-catid="<?php echo $category['Category']['id'];?>"/>
|
|
|
128 |
<?php endif;?>
|
|
|
129 |
<?php echo $brand['name'];?>
|
|
|
130 |
</div>
|
|
|
131 |
<?php endforeach;?>
|
|
|
132 |
<div class="revealbrands">Others</div>
|
|
|
133 |
<?php endif;?>
|
|
|
134 |
</div>
|
| 13695 |
anikendra |
135 |
</div>
|
|
|
136 |
</form>
|
|
|
137 |
</div>
|
|
|
138 |
<?php endforeach;?>
|
|
|
139 |
<?php endif;?>
|
|
|
140 |
</div>
|
|
|
141 |
</div>
|
| 13820 |
anikendra |
142 |
<!-- <script type="text/javascript" src="/js/jquery.jscroll.min.js"></script> -->
|
| 13695 |
anikendra |
143 |
<script type="text/javascript" src="/js/profittill.js?v=<?php echo $staticversion;?>"></script>
|
| 13820 |
anikendra |
144 |
<?php echo $this->Html->script('plugin');?>
|
| 13695 |
anikendra |
145 |
<script type="text/javascript">
|
| 13820 |
anikendra |
146 |
(function() {
|
|
|
147 |
$(function() {
|
|
|
148 |
return $('.slider').slider();
|
|
|
149 |
});
|
|
|
150 |
}).call(this);
|
| 13695 |
anikendra |
151 |
</script>
|