Subversion Repositories SmartDukaan

Rev

Rev 19837 | Rev 19934 | Go to most recent revision | 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 -->
14
 
15
		    		<div id="wrapper1" style="background:white;">
16
						<div id="scroller1">
17
							<ul>
18389 naman 18
 
19830 naman 19
								<?php foreach($selectedbrands as $akey => $avalue ):?>
20
									<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>
21
								<?php endforeach;?>						
22
 
23
						    </ul>
24
						</div>
25
					</div>
19908 naman 26
 
27
				<!-- crossfilter end -->	    	
28
	</div>
29
	<div class="col-xs-3 pt7">
30
		<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>	
31
	</div>
32
</div>
17687 naman 33
 
16031 anikendra 34
<?php endif;?>
19830 naman 35
 
36
<?php //if((isset($id) && $id == 6) && ((isset($sort) && !empty($sort))||(!isset($brands) && empty($brands)) || (!isset($subcategories) && empty($subcategories)))):?>
37
<?php if((isset($id)) && ((isset($sort) && !empty($sort))||(!isset($brands) && empty($brands)) || (!isset($subcategories) && empty($subcategories)))):?>
38
<div <?php if($id == 6 || (!isset($brands))):?> style="margin-top:4px;"<?php endif;?>>
39
	<div id="wrapper" style="background:white; width:100%; padding:0px;">
40
							<div id="scroller">
41
								<ul>
42
								<?php $colorcount = 0;?>
43
								<?php foreach($getdet as $arrkey => $arrvalue ):?>
44
 
45
									<?php if ($id == 6):?>
46
										<?php $strarr = explode(" ", $arrvalue['subCategory']);?>
47
											<a href="?filter=subcategory&subcategories=<?php echo $arrvalue['subCategoryId'];?>&whatfirst=subCategory">
48
												<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;?>">											
49
													<?php 
50
														echo $strarr[0]; 
51
														if(sizeof($strarr) >1){
52
															echo "<br>";
53
															for($abs = 1; $abs< sizeof($strarr);$abs++)
54
															{
55
																echo $strarr[$abs]." ";
56
															}	
57
														}																				
58
													?>											
59
												</li>
60
											</a>
61
											<?php $colorcount = $colorcount+1;;?>
62
									<?php else:?>
63
											<?php if(!in_array(substr($arrvalue,strpos($arrvalue,'=',8)+1),$selectedbrands)):?>
19835 naman 64
												<li class="selectbrand quickclick" data-id="<?php echo substr($arrvalue,strpos($arrvalue,'=',8)+1);?>" data-catid="<?php echo $id;?>" style='padding:2px;height: 33px; line-height:30px; background:<?php echo $color[$colorcount];?>;' ><?php echo $arrkey;?></li>
19830 naman 65
												<?php $colorcount = $colorcount+1;?>
66
											<?php endif;?>
67
 
68
									<?php endif;?>
19606 naman 69
										<?php 
19830 naman 70
											if($colorcount == 6)
71
											{
72
												$colorcount = 0;
73
											}
19606 naman 74
										?>
19830 naman 75
								<?php endforeach;?>
76
								<?php if($id !=6):?>							
77
									<?php foreach ($brandlist as $blkey => $blvalue):?>
78
											<?php if(!in_array($blkey,$mylink) && !in_array($blkey,$selectedbrands)):?>
79
												<?php $colorcount = $colorcount+1;
80
														if($colorcount == 6)
81
														{
82
															$colorcount = 0;
83
														}
84
 
85
												?>
19835 naman 86
												<li class="selectbrand quickclick" data-id="<?php echo $blkey;?>" data-catid="<?php echo $id;?>" style='padding:2px;height: 33px; line-height:30px; background:<?php echo $color[$colorcount];?>;' ><?php echo $blvalue;?></li>								
19830 naman 87
 
88
											<?php endif;?>												
89
									<?php endforeach;?>							
90
								<?php endif;?>
91
							    </ul>
92
							</div>
93
	</div>
19606 naman 94
</div>
95
<?php endif;?>