Subversion Repositories SmartDukaan

Rev

Rev 20711 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
19606 naman 1
 
16013 anikendra 2
<?php $links = $this->requestAction('users/getlinks/'.$logged_user['id']);?>
19830 naman 3
<?php if(!empty($links) && (isset($id) && $id != 6)){
4
	$getdet = $links[$id];
5
	$mylink = array();
6
	foreach ($getdet as $gkey => $gval){
7
		array_push($mylink,substr($gval,strpos($gval,'=',8)+1));}	
8
}?>
19837 naman 9
<?php $selectedbrands = explode("^",$brands);?>	
19830 naman 10
<?php if(isset($brands) && !empty($brands) && $id != 6):?>
19908 naman 11
<div class = "row">
12
	<div id="wrapperboss" style="position:relative;" class="col-xs-9 pt7">
19830 naman 13
				<!-- crossfilter start -->
20711 amit.gupta 14
				<script type="text/javascript">
15
						function loaded () {
20760 amit.gupta 16
							myScroll1 = new IScroll('#wrapper1', { scrollX: true, scrollY: false, mouseWheel: true, click: true, tap: true, bindToWrapper:true });
20711 amit.gupta 17
						}
18
						</script>
19830 naman 19
		    		<div id="wrapper1" style="background:white;">
20
						<div id="scroller1">
21
							<ul>
18389 naman 22
 
19830 naman 23
								<?php foreach($selectedbrands as $akey => $avalue ):?>
24
									<li class="upselect mtop brandcancel quickclick" data-catid= "<?php echo $id;?>" data-id="<?php echo $avalue;?>"><?php echo $brandlist[$avalue];?> <span class="cancelstyle"> X </span></li>
25
								<?php endforeach;?>						
26
 
27
						    </ul>
28
						</div>
29
					</div>
19908 naman 30
 
31
				<!-- crossfilter end -->	    	
32
	</div>
33
	<div class="col-xs-3 pt7">
34
		<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>	
35
	</div>
36
</div>
17687 naman 37
 
16031 anikendra 38
<?php endif;?>
19830 naman 39
 
40
<?php //if((isset($id) && $id == 6) && ((isset($sort) && !empty($sort))||(!isset($brands) && empty($brands)) || (!isset($subcategories) && empty($subcategories)))):?>
41
<?php if((isset($id)) && ((isset($sort) && !empty($sort))||(!isset($brands) && empty($brands)) || (!isset($subcategories) && empty($subcategories)))):?>
42
<div <?php if($id == 6 || (!isset($brands))):?> style="margin-top:4px;"<?php endif;?>>
43
	<div id="wrapper" style="background:white; width:100%; padding:0px;">
44
							<div id="scroller">
45
								<ul>
46
								<?php $colorcount = 0;?>
47
								<?php foreach($getdet as $arrkey => $arrvalue ):?>
48
 
49
									<?php if ($id == 6):?>
50
										<?php $strarr = explode(" ", $arrvalue['subCategory']);?>
51
											<a href="?filter=subcategory&subcategories=<?php echo $arrvalue['subCategoryId'];?>&whatfirst=subCategory">
52
												<li class= "quickclick" style="background:<?php echo $color[$colorcount];?>; <?php if(strlen($arrvalue['subCategory']) >9 && sizeof($strarr)>1):?> font-size: 10px;line-height: 12px;<?php elseif(strlen($arrvalue['subCategory']) <=9 && sizeof($strarr)>1):?>line-height: 12px;<?php else:?>line-height: 24px;<?php endif;?>">											
53
													<?php 
54
														echo $strarr[0]; 
55
														if(sizeof($strarr) >1){
56
															echo "<br>";
57
															for($abs = 1; $abs< sizeof($strarr);$abs++)
58
															{
59
																echo $strarr[$abs]." ";
60
															}	
61
														}																				
62
													?>											
63
												</li>
64
											</a>
65
											<?php $colorcount = $colorcount+1;;?>
19934 naman 66
 
19830 naman 67
									<?php endif;?>
19606 naman 68
										<?php 
19830 naman 69
											if($colorcount == 6)
70
											{
71
												$colorcount = 0;
72
											}
19606 naman 73
										?>
19830 naman 74
								<?php endforeach;?>
75
								<?php if($id !=6):?>							
76
									<?php foreach ($brandlist as $blkey => $blvalue):?>
19934 naman 77
											<?php if(!in_array($blkey,$selectedbrands)):?>
19830 naman 78
												<?php $colorcount = $colorcount+1;
79
														if($colorcount == 6)
80
														{
81
															$colorcount = 0;
82
														}
83
 
84
												?>
19938 naman 85
												<li class="selectbrand quickclick" data-id="<?php echo $blkey;?>" data-catid="<?php echo $id;?>" style='padding:2px;line-height:30px; background:<?php echo $color[$colorcount];?>;' ><?php echo $blvalue;?></li>								
19830 naman 86
 
87
											<?php endif;?>												
88
									<?php endforeach;?>							
89
								<?php endif;?>
90
							    </ul>
91
							</div>
92
	</div>
19606 naman 93
</div>
94
<?php endif;?>