Subversion Repositories SmartDukaan

Rev

Rev 19636 | Rev 19639 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
19605 naman 1
<?php if((isset($id) && $id == 6) && ((isset($brands) && !empty($brands)) || (isset($subcategories) && !empty($subcategories)))):?>
2
	<script type="text/javascript" src="<?php echo $base_url;?>js/iscroll.js"></script>
3
	<script type="text/javascript">
4
	function loaded () {
5
		myScroll = new IScroll('#wrapper', { scrollX: true, scrollY: false, mouseWheel: true, click: true, tap: true });
6
		myScroll1 = new IScroll('#wrapper1', { scrollX: true, scrollY: false, mouseWheel: true, click: true, tap: true });
7
	}</script>
8
<?php endif;?>
18388 naman 9
 
19605 naman 10
<script>
11
$(document).ready(function(){
12
 
13
	var scrollerwidth = 0;
14
	var scroller1width = 0;
15
	$('#scroller li').each(function() {
16
	    var $this = $(this);
17
	    scrollerwidth =scrollerwidth + $this.outerWidth() + 4;
18
	});
19
	var scrollerwidth = ""+(scrollerwidth + 2)+"px";
20
	$('#scroller1 li').each(function() {
21
	    var $this = $(this);
22
	    scroller1width =scroller1width + $this.outerWidth() + 10;
23
	});
24
	var scroller1width = ""+(scroller1width + 2)+"px";
25
 
26
    $('#scroller').css("width",scrollerwidth);
27
    $('#scroller1').css("width",scroller1width);
28
 
29
	$('.getcancel').click(function(){
30
		var urldet = getJsonFromUrl();
31
		var whatfirst = "";
32
	    if(urldet['whatfirst'] !=undefined){
33
	    	whatfirst = urldet['whatfirst'];
34
	    }
35
		var that = $(this);
36
		var brandid = that.attr('data-brandid');
37
		var subcatid = that.attr('data-subCategoryid');
38
		var subcatarr =[];
39
		var brandarr = [];
40
		var url = "/category/6?";
41
 
42
		if(urldet['brands'] != undefined){
43
			brandarr = urldet['brands'].split("^");
44
		}
45
 
46
		if(urldet['subcategories'] != undefined){
47
			subcatarr = urldet['subcategories'].split("^");
48
		}
49
 
50
		if(that.attr('data-type') == "brand"){			
51
			if(jQuery.inArray(brandid, brandarr) !== -1){
52
					var y = jQuery.grep(brandarr, function(value) {
53
						  return value != brandid;
54
						});
55
					brandarr = y;	
56
 
57
				}
58
		}
59
 
60
		if(that.attr('data-type') == "subCategory"){			
61
			if(jQuery.inArray(subcatid, subcatarr) !== -1){
62
					var y = jQuery.grep(subcatarr, function(value) {
63
						  return value != subcatid;
64
						});
65
					subcatarr = y;
66
				}
67
		}
68
 
69
 
70
		if(brandarr.length != 0 && subcatarr.length == 0)
71
		{
19638 naman 72
			whatfirst = "brand";
19605 naman 73
			url = url + "brands="+brandarr.join('^');
74
		}
75
 
76
		else if(brandarr.length == 0 && subcatarr.length != 0)
77
		{
19638 naman 78
			whatfirst = "subCategory";
19605 naman 79
			url = url + "subcategories="+subcatarr.join('^');
80
		}
81
		else if(brandarr.length != 0 && subcatarr.length != 0)
82
		{
83
			url = url + "brands="+brandarr.join('^')+"&subcategories="+subcatarr.join('^');
84
		}
85
 
86
		if(brandarr.length == 0 && subcatarr.length == 0){
87
			window.location = apihost + "category/6";
88
		}else {
89
			window.location = url+"&whatfirst="+whatfirst;	
90
		}
91
 
92
 
93
 
94
	});	
95
 
96
 
97
 
98
 
99
	$('.downselect').click(function(){
100
 
101
		var urldet = getJsonFromUrl();
102
		var whatfirst = "";
103
		var that = $(this);
104
		var brandid = that.attr('data-brandid');
105
		var subcatid = that.attr('data-subCategoryid');
106
		var subcatarr =[];
107
		var brandarr = [];
108
		var url = "/category/6?";
109
 
110
		if(urldet['brands'] != undefined){
111
			brandarr = urldet['brands'].split("^");
112
		}
113
 
114
		if(urldet['subcategories'] != undefined){
115
			subcatarr = urldet['subcategories'].split("^");
116
		}
19638 naman 117
 
118
		if(urldet['whatfirst'] !=undefined){
119
	    	whatfirst = urldet['whatfirst'];
120
	    }else if(urldet['whatfirst'] == undefined){
121
	    	if(brandarr.length != 0 && subcatarr.length == 0){
122
				whatfirst = "brand";
123
		    }else if(brandarr.length == 0 && subcatarr.length != 0){
124
				whatfirst = "subCategory";	
125
			}
126
		 }
19605 naman 127
 
128
		if(that.attr('data-type') == "brand"){			
129
			if(jQuery.inArray(brandid, brandarr) !== -1){
130
					var y = jQuery.grep(brandarr, function(value) {
131
						  return value != brandid;
132
						});
133
					brandarr = y;								
134
				}
135
			else{
136
				brandarr.push(brandid);				
137
			}
138
		}
139
 
140
		if(that.attr('data-type') == "subCategory"){			
141
			if(jQuery.inArray(subcatid, subcatarr) !== -1){
142
					var y = jQuery.grep(subcatarr, function(value) {
143
						  return value != subcatid;
144
						});
145
					subcatarr = y;
146
				}
147
			else{				
148
				subcatarr.push(subcatid);
149
			}
150
		}
151
 
152
 
153
		if(brandarr.length != 0 && subcatarr.length == 0)
154
		{
155
			url = url + "brands="+brandarr.join('^');
156
		}
157
 
158
		else if(brandarr.length == 0 && subcatarr.length != 0)
159
		{
160
			url = url + "subcategories="+subcatarr.join('^');
161
		}
162
		else if(brandarr.length != 0 && subcatarr.length != 0)
163
		{
164
			url = url + "brands="+brandarr.join('^')+"&subcategories="+subcatarr.join('^');
165
		}
166
 
167
		window.location = url+"&whatfirst="+whatfirst;
168
 
169
	});	
170
 
171
});
172
</script>
173
<style>
174
.activate{
175
	color:green;
176
}
177
#wrapper,#wrapper1 {
178
	z-index: 1;
179
	bottom: 48px;
180
	left: 0;
181
	overflow: hidden;
182
}
183
#wrapper{
19620 naman 184
	max-height:40px;
19605 naman 185
	width: 97%;
19620 naman 186
	padding: 0px 5px;
187
	min-height: 0px;
19605 naman 188
}
189
#wrapper1{
190
	height:30px;
191
	width: 100%;
192
}
193
 
194
#scroller, #scroller1 {
195
	z-index: 1;
196
	-webkit-tap-highlight-color: rgba(0,0,0,0);
197
	-webkit-transform: translateZ(0);
198
	-moz-transform: translateZ(0);
199
	-ms-transform: translateZ(0);
200
	-o-transform: translateZ(0);
201
	transform: translateZ(0);
202
	-webkit-touch-callout: none;
203
	-webkit-user-select: none;
204
	-moz-user-select: none;
205
	-ms-user-select: none;
206
	user-select: none;
207
	-webkit-text-size-adjust: none;
208
	-moz-text-size-adjust: none;
209
	-ms-text-size-adjust: none;
210
	-o-text-size-adjust: none;
211
	text-size-adjust: none;
212
}
213
 
214
#scroller ul,#scroller1 ul {
215
	list-style: none;
216
	padding: 0;
217
	margin: 0;
218
	width: 100%;	
219
	text-align: center;
220
}
221
 
222
#scroller li, #scroller1 li {
223
	display: block;
224
	float: left;
225
  	margin:2px;
226
	color:white;
227
	border-right: 1px solid #ccc;
228
	background-color: #F2DEDE;
229
	font-size: 12px;
230
}
231
#scroller li{
232
	font-weight:bold;
233
	padding: 7px;
234
	height: 37px;
235
	border-radius:5px;
236
	vertical-align:middle;
237
	font-size: 11px;
238
	min-width: 67px;
239
	max-width: 92px;
240
	text-transform: uppercase;
241
/* 	overflow: hidden ; */
242
	}
243
#scroller1 li {
244
	color: #555;
245
    padding: 5px;
246
    background : none;
247
    height: 23px;
248
    border : #E5E5E5 1px solid;
249
    margin:3px;
250
    text-transform: uppercase;
251
    font-size: 10px;
252
}
253
 
254
.cancelstyle{
255
	font-weight:bold;
256
	background: black;
257
    padding: 1px 3px;
258
    color: white;
259
	border-radius: 4px;
260
 
261
}
262
</style>
263
<?php $catstr = explode("^",$subcategories);?>
264
 
16912 naman 265
 <ul class="nav nav-tabs catselect">
16929 anikendra 266
<?php foreach($categories AS $catId => $name):?>
17686 naman 267
 
19638 naman 268
  	<li class=" tab_layout <?php if((isset($id)) && $catId == $id):?>active<?php endif;?> col-xs-<?php echo (12/(count($categories)));?>">
19383 amit.gupta 269
	    <a href="/category/<?php echo $catId;?>"<?php if($id!=6 && $catId==6):?> id="popovertrigger4" data-container="body" data-toggle="popover" data-placement="bottom" data-content="Accessories at wholesale rates"<?php endif;?>>
19638 naman 270
	    	<?php if($catId==6):?>
271
	    		Accessories
272
	    	<?php else:?>
273
	    		<?php echo $name;?>
274
	    	<?php endif;?>
19383 amit.gupta 275
	    </a>
18008 amit.gupta 276
    </li>
19383 amit.gupta 277
<?php endforeach;?>		
16929 anikendra 278
</ul>
19605 naman 279
<div class="filters row" >	
16929 anikendra 280
<!-- For apps tab -->		
281
<?php if($id==2):?>
282
	<div class="text-center">
283
		<div class="text_arrange cb">				
17123 naman 284
 
17129 anikendra 285
                  <div class="card row" >
17310 naman 286
                  	<a href = "<?php echo $base_url;?>appb"><span style="color:red;font-size:1.1em">Earn upto Rs. 10,000 per month</span> 
287
                  		<!-- <u style="font-size:.9em">SEE HOW</u> -->
288
                  		<button type="button" class="btn btn-primary btn-sm">SEE HOW</button>
289
                  	</a><br>
290
                  	<!--<span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span>--><a href = "<?php echo $base_url;?>appb" style="font-size:1em; color:black"> Download these free apps for your customer.</a>
17313 amit.gupta 291
            <hr style="margin:1px;">
17123 naman 292
            <ul class="list-unstyled " style='margin:1px';>
16929 anikendra 293
                <li class="row row_style" >
17310 naman 294
                  	<div class="row showtips" style="font-size:.9em">
17123 naman 295
                  		<br>
296
                  		<div class='col-xs-11'>
297
                  	 		<font color= 'grey'>Normally cashbacks are not approved for 30-40% cases.</font><br> <font color='red'>Click here </font>to see tips on increasing your profit. 
298
                  	 	</div>
299
                  	 	<div class='col-xs-1'><span class="glyphicon glyphicon-chevron-down"></span></div>
300
                  	</div>
16929 anikendra 301
                  </div>
17129 anikendra 302
                  <div class="apptips hidden" style="background:#fff;">
16929 anikendra 303
                    <div class="row">
304
 
17123 naman 305
                    	<div class="col-xs-12" style='padding:1px'>
306
                    		<ol style="text-align:left;background:#f9fafb">
16929 anikendra 307
                    			<li>Only install new apps</li>
308
                    			<li>Keep network connected after installing apps</li>   			
309
                    			<li>Open the app 4-5 minutes after installing</li>
310
                    			<li>Preferably register and login on app</li>
311
                    		</ol>
312
                    	</div>
313
 
314
                    </div>
315
                  </div>              
316
                </li>
317
            </ul>
17313 amit.gupta 318
            <hr style="margin:1px;">
16929 anikendra 319
		</div>
320
	</div>		
321
<?php endif;?>	
322
<!-- End of apps tab code -->
323
<?php if(isset($notification) && !empty($notification)):?>
324
	<?php if($notification['NotificationRule']['type']=='link'):?>
325
	<div class="alert alert-info text-center col-xs-12">
326
		<a target="_blank" href="<?php echo $notification['NotificationRule']['url'].'?user_id='.$logged_user['id'];?>" class="webnotification"><?php echo $notification['NotificationRule']['message'];?></a>
14150 anikendra 327
	</div>
16929 anikendra 328
	<?php elseif($notification['NotificationRule']['type']=='popup'):?>
329
	<?php 
330
		$url = $notification['NotificationRule']['url'];
331
		if(strpos($url, '?')!==false){
332
			$url .= '&user_id='.$logged_user['id'];
333
		}else{
334
			$url .= '?user_id='.$logged_user['id'];
335
		}
336
	?>
17190 naman 337
	<div class="herotext col-xs-9" style='padding-top:0px'>
17130 anikendra 338
		<!-- Daily profitable deals for you -->
18846 naman 339
		<?php //echo $this->element('headerlinks',array(),array());?>
16929 anikendra 340
		<script type="text/javascript">
341
			$(function(){
342
				$('.notificationMessage').html('<?php echo $notification['NotificationRule']['message'];?>');
343
				$('.notificationUrl').prop('href','<?php echo $url;?>').data('id','<?php echo $notification['NotificationRule']['id'];?>');
344
				if(showpopup(<?php echo $notification['NotificationRule']['id'];?>,<?php echo $notification['NotificationRule']['popup_display_count'];?>,<?php echo $notification['NotificationRule']['popup_display_interval'];?>)) {
345
					$('#notificationModal'+'<?php echo ucfirst($notification['NotificationRule']['popup_type']);?>').modal({show: true,keyboard: false,backdrop: 'static'});	
346
					var postdata = {'user_id':me,'notification_rule_id':'<?php echo $notification['NotificationRule']['id'];?>'};
347
					$.post( "/notification_views/add", postdata, function( data ) {});		
348
					ga('send', 'event', 'popupnotification-<?php echo $notification['NotificationRule']['id'];?>', 'shown', me);	
349
					var properties = {};
350
					properties.id = String('<?php echo $notification['NotificationRule']['id'];?>');
351
					pma.send('popupnotification','shown','<?php echo $notification['NotificationRule']['type'];?>',me,properties);			
352
				}
353
			});
354
		</script>
355
	</div>
356
	<?php endif;?>
18846 naman 357
<?php endif;?>
19605 naman 358
 
359
 
360
	<?php if((isset($id) && $id == 6) && ((!isset($brands) || ( isset($brands) && empty($brands))) && (!isset($subcategories) || (isset($subcategories) && empty($subcategories))))):?>
361
 
362
	<div class="col-xs-12 herotext" style='padding-top:0px'> 
363
 
364
			<?php echo $this->element('headerlinks',array(),array());?>
365
 
366
	</div>
367
 
368
 
19616 naman 369
	<?php elseif($id!=2):?>
17190 naman 370
	<div class="col-xs-9 herotext" style='padding-top:0px'>                	
19605 naman 371
 
372
	    	<?php if((isset($id) && $id == 6) && ((isset($brands) && !empty($brands)) || (isset($subcategories) && !empty($subcategories)))):?>
373
		    	<div id="wrapperboss" style="position:relative;">
374
				<!-- crossfilter start -->
375
 
376
		    		<div id="wrapper1" style="background:white;">
377
						<div id="scroller1">
378
							<ul>
379
 
380
								<?php foreach($allbrandsubcat['idListInfo'] as $akey => $avalue ):?>
19618 naman 381
									<li class="upselect mtop getcancel quickclick" data-type="<?php if(isset($whatfirst)&&!empty($whatfirst)):?><?php echo $whatfirst;?><?php endif;?>" data-<?php echo $whatfirst."id";?>="<?php echo $akey;?>" ><?php echo $avalue;?> <span class="cancelstyle"> X </span></li>
19605 naman 382
								<?php endforeach;?>
383
 
384
								<?php foreach($allbrandsubcat['result'] as $ckey => $cvalue ):?>
385
									<?php if(in_array($cvalue[$whatsecondid],$secondloop)):?>
19618 naman 386
										<li class="upselect getcancel quickclick" data-type="<?php if(isset($whatsecond)&&!empty($whatsecond)):?><?php echo $whatsecond;?><?php endif;?>" data-<?php echo $whatsecond."id";?>="<?php echo $cvalue[$whatsecondid];?>">
19605 naman 387
										<?php echo $cvalue[$whatsecond];?> <span class="cancelstyle"> X </span>
388
										</li>
389
									<?php endif;?>
390
								<?php endforeach;?>
391
 
392
						    </ul>
393
						</div>
394
					</div>
395
 
396
				<!-- crossfilter end -->
397
 
398
 
399
		    	</div>
400
		    <?php else:?>
401
		    	<?php echo $this->element('headerlinks',array(),array());?>
17123 naman 402
	    	<!-- Daily profitable deals for you	               	        -->
19605 naman 403
		    <?php endif;?>
404
 
405
	</div>   
406
 
407
 
17190 naman 408
	<div class="col-xs-3 pt7">
18388 naman 409
		<?php if((isset($brands) && !empty($brands)) || (isset($subcategories) && !empty($subcategories))):?>
19605 naman 410
				<a class="btn btn-xs btn-danger filteraction clearfilters pull-right mr5" id="clearfilters" style="margin-top: 4px;padding: 2px 16px; background: #efefef !important;border: 1px; color: #333!important;font-size: 12px;"> RESET </a>
16929 anikendra 411
			<?php endif;?>	
412
	</div>
413
	<?php endif;?> 
18846 naman 414
 
19605 naman 415
<?php if((isset($id) && $id == 6)):?>
17552 manish.sha 416
 
19605 naman 417
<?php else:?>
418
			<?php if($id!=2):?>
419
							<div class = 'col-xs-3 bg-white' style='float:left'>
17552 manish.sha 420
 
421
								<ul class="nav">
422
									<li class="tab_layout <?php if($id!=2):?>bg-white<?php endif;?>">
423
										<?php if($id!=2):?>
424
										<div class="dropdown pull-right">
425
											<a tabindex="0" id="popovertrigger" role="button" class="btn" data-container="body" data-toggle="popover" data-placement="left" data-trigger="click" data-content="<span class='greentext'>Filter by brands</span> to see deals you want"></a>
18388 naman 426
											<button class="<?php if((isset($brands) && !empty($brands)) || (isset($subcategories) && !empty($subcategories))):?>red-text<?php endif;?> btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
427
												<i class="glyphicon glyphicon-filter"></i> <?php if ((isset($brands) && !empty($brands)) || (isset($subcategories) && !empty($subcategories))):?>On<?php endif;?>	  
17552 manish.sha 428
												<span class="caret"></span>
429
											</button>
430
											<ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dropdownMenu1">
431
												<li role="presentation" class="dropdown-header menu-item">
432
													FILTER
18388 naman 433
 
434
 
435
													<?php if((isset($brands) && !empty($brands)) || (isset($subcategories) && !empty($subcategories))):?>
17552 manish.sha 436
													<button class="btn btn-xs clearfilters btn-danger filteraction" style="position: absolute;right: -5px;top: 5px;" id="clearfilters">Reset</button>
437
												<?php endif;?>	
438
												</li>
17686 naman 439
												<!-- <By subcategory started> -->
440
												<?php if ($id==6):?>
18388 naman 441
												<li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="<?php echo $base_url;?>subcategoryfilter/subcategory<?php if(isset($id)):?>/<?php echo $id;?><?php endif;?>/?<?php echo $_SERVER["QUERY_STRING"];?>">By Product <span class="greyarrow"></span></a></li>
17686 naman 442
												<?php endif;?>
443
 
444
												<!-- <By subcategory ended> -->
18388 naman 445
 
446
												<li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="<?php echo $base_url;?>filter/brand<?php if(isset($id)):?>/<?php echo $id;?><?php endif;?>/?<?php echo $_SERVER["QUERY_STRING"];?>">By Brands <span class="greyarrow"></span></a></li>
17686 naman 447
 
17700 naman 448
 
449
 
450
 
17552 manish.sha 451
												<!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Price-range</a></li> -->
452
												<!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Sub-category</a></li> -->
453
												<li role="presentation" class="dropdown-header menu-item">SORT</li>
19605 naman 454
												<li role="presentation" class="menu-item <?php if(isset($sortlabel) && $sortlabel == 'bestseller'):?>selected<?php endif;?>"><a role="menuitem" tabindex="-1" href="?sort=bestSellerPoints&direction=-1<?php if(isset($filterstr)):?><?php echo $filterstr;?><?php endif;?>">Bestsellers</a></li>
18388 naman 455
												<li role="presentation" class="menu-item <?php //if(isset($sort) && $sort == 'available_price'):?><?php //endif;?>">
456
													<span class="sortlabel">Price</span> 
19605 naman 457
							<a role="menuitem" tabindex="-1" href="?sort=available_price&direction=1<?php echo $filterstr;?>" class="btn-asc btn btn-xs" <?php if(isset($sortlabel) && $sortlabel == 'pricelow'):?> style="background:#36d98a;" <?php endif;?>>Low</a>
458
							<a role="menuitem" tabindex="-1" href="?sort=available_price&direction=-1<?php echo $filterstr;?>" class="btn-desc btn-xs" <?php if(isset($sortlabel) && $sortlabel == 'pricehigh'):?> style="background:#36d98a;" <?php endif;?>>High</a>
18388 naman 459
												</li>
17552 manish.sha 460
												<!-- <li role="presentation" class="menu-item <?php if(isset($sort) && $sort == 'available_price' && $direction=='-1'):?>selected<?php endif;?>"><a role="menuitem" tabindex="-1" href="?sort=available_price&direction=-1">Price High to Low</a></li> -->
19605 naman 461
												<li role="presentation" class="menu-item<?php if(isset($sortlabel) && $sortlabel == 'recommended'):?> selected<?php endif;?>"><a role="menuitem" tabindex="-1" href="?sort=-1<?php echo $filterstr;?>">Recommended</a></li>
17552 manish.sha 462
											</ul>
463
										</div>
464
										<?php endif;?>
465
									</li>	
466
								</ul>	
467
							</div>	
19605 naman 468
			<?php endif; ?>
469
<?php endif;?>
16929 anikendra 470
</div>
19605 naman 471
 
472
<?php if((isset($id) && $id == 6) && ((isset($brands) && !empty($brands)) || (isset($subcategories) && !empty($subcategories))) && (isset($allbrandsubcat) && !empty($allbrandsubcat))):?>
473
<!-- for quickfilter start-->
474
				<div style="background:white;">
475
		    		<div id="wrapper" style="background:white;">
476
						<div id="scroller">
477
							<ul>
478
							<?php $colorcount = 0;?>
479
							<?php foreach($allbrandsubcat['result'] as $bkey => $bvalue ):?>
480
								<?php if(!in_array($bvalue[$whatsecondid],$secondloop)):?>
481
								<?php $strarr = explode(" ", $bvalue[$whatsecond]);?>
19620 naman 482
									<li class="downselect quickclick" data-type="<?php if(isset($whatsecond)&&!empty($whatsecond)):?><?php echo $whatsecond;?><?php endif;?>" data-<?php echo $whatsecond."id";?>="<?php echo $bvalue[$whatsecondid];?>" style="background:<?php echo $color[$colorcount];?>; <?php if(strlen($bvalue[$whatsecond]) >9 && sizeof($strarr)>1):?> font-size: 10px;line-height: 12px;<?php elseif(strlen($bvalue[$whatsecond]) <=9 && sizeof($strarr)>1):?>line-height: 12px;<?php else:?>line-height: 24px;<?php endif;?>">
19605 naman 483
 
484
										<?php 
485
											echo $strarr[0]; 
486
											if(sizeof($strarr) >1){
487
												echo "<br>";
19620 naman 488
												for($abs = 1; $abs< sizeof($strarr);$abs++)
19605 naman 489
												{
490
													echo $strarr[$abs]." ";
491
												}	
492
											}									
493
 
494
 
495
 
496
										?>
497
 
498
									</li>
499
									<?php $colorcount = $colorcount+1;
500
										if($colorcount == 6)
501
										{
502
											$colorcount = 0;
503
										}
504
									?>
505
								<?php endif;?>
506
							<?php endforeach;?>
507
						    </ul>
508
						</div>
509
					</div>
510
				</div>
511
<!-- for quickfilter end-->
512
<?php endif;?>