Subversion Repositories SmartDukaan

Rev

Rev 19835 | Rev 19908 | 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):?>
19837 naman 11
 
19830 naman 12
	<div id="wrapperboss" style="position:relative;">
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>
26
 
27
				<!-- crossfilter end -->
28
 
29
 
30
		    	</div>
17687 naman 31
 
16031 anikendra 32
<?php endif;?>
19830 naman 33
 
34
<?php //if((isset($id) && $id == 6) && ((isset($sort) && !empty($sort))||(!isset($brands) && empty($brands)) || (!isset($subcategories) && empty($subcategories)))):?>
35
<?php if((isset($id)) && ((isset($sort) && !empty($sort))||(!isset($brands) && empty($brands)) || (!isset($subcategories) && empty($subcategories)))):?>
36
<div <?php if($id == 6 || (!isset($brands))):?> style="margin-top:4px;"<?php endif;?>>
37
	<div id="wrapper" style="background:white; width:100%; padding:0px;">
38
							<div id="scroller">
39
								<ul>
40
								<?php $colorcount = 0;?>
41
								<?php foreach($getdet as $arrkey => $arrvalue ):?>
42
 
43
									<?php if ($id == 6):?>
44
										<?php $strarr = explode(" ", $arrvalue['subCategory']);?>
45
											<a href="?filter=subcategory&subcategories=<?php echo $arrvalue['subCategoryId'];?>&whatfirst=subCategory">
46
												<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;?>">											
47
													<?php 
48
														echo $strarr[0]; 
49
														if(sizeof($strarr) >1){
50
															echo "<br>";
51
															for($abs = 1; $abs< sizeof($strarr);$abs++)
52
															{
53
																echo $strarr[$abs]." ";
54
															}	
55
														}																				
56
													?>											
57
												</li>
58
											</a>
59
											<?php $colorcount = $colorcount+1;;?>
60
									<?php else:?>
61
											<?php if(!in_array(substr($arrvalue,strpos($arrvalue,'=',8)+1),$selectedbrands)):?>
19835 naman 62
												<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 63
												<?php $colorcount = $colorcount+1;?>
64
											<?php endif;?>
65
 
66
									<?php endif;?>
19606 naman 67
										<?php 
19830 naman 68
											if($colorcount == 6)
69
											{
70
												$colorcount = 0;
71
											}
19606 naman 72
										?>
19830 naman 73
								<?php endforeach;?>
74
								<?php if($id !=6):?>							
75
									<?php foreach ($brandlist as $blkey => $blvalue):?>
76
											<?php if(!in_array($blkey,$mylink) && !in_array($blkey,$selectedbrands)):?>
77
												<?php $colorcount = $colorcount+1;
78
														if($colorcount == 6)
79
														{
80
															$colorcount = 0;
81
														}
82
 
83
												?>
19835 naman 84
												<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 85
 
86
											<?php endif;?>												
87
									<?php endforeach;?>							
88
								<?php endif;?>
89
							    </ul>
90
							</div>
91
	</div>
19606 naman 92
</div>
93
<?php endif;?>