Rev 19830 | Rev 19837 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php $links = $this->requestAction('users/getlinks/'.$logged_user['id']);?><?php if(!empty($links) && (isset($id) && $id != 6)){$getdet = $links[$id];$mylink = array();foreach ($getdet as $gkey => $gval){array_push($mylink,substr($gval,strpos($gval,'=',8)+1));}}?><?php if(isset($brands) && !empty($brands) && $id != 6):?><?php $selectedbrands = explode("^",$brands);?><div id="wrapperboss" style="position:relative;"><!-- crossfilter start --><div id="wrapper1" style="background:white;"><div id="scroller1"><ul><?php foreach($selectedbrands as $akey => $avalue ):?><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><?php endforeach;?></ul></div></div><!-- crossfilter end --></div><?php endif;?><?php //if((isset($id) && $id == 6) && ((isset($sort) && !empty($sort))||(!isset($brands) && empty($brands)) || (!isset($subcategories) && empty($subcategories)))):?><?php if((isset($id)) && ((isset($sort) && !empty($sort))||(!isset($brands) && empty($brands)) || (!isset($subcategories) && empty($subcategories)))):?><div <?php if($id == 6 || (!isset($brands))):?> style="margin-top:4px;"<?php endif;?>><div id="wrapper" style="background:white; width:100%; padding:0px;"><div id="scroller"><ul><?php $colorcount = 0;?><?php foreach($getdet as $arrkey => $arrvalue ):?><?php if ($id == 6):?><?php $strarr = explode(" ", $arrvalue['subCategory']);?><a href="?filter=subcategory&subcategories=<?php echo $arrvalue['subCategoryId'];?>&whatfirst=subCategory"><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;?>"><?phpecho $strarr[0];if(sizeof($strarr) >1){echo "<br>";for($abs = 1; $abs< sizeof($strarr);$abs++){echo $strarr[$abs]." ";}}?></li></a><?php $colorcount = $colorcount+1;;?><?php else:?><?php if(!in_array(substr($arrvalue,strpos($arrvalue,'=',8)+1),$selectedbrands)):?><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><?php $colorcount = $colorcount+1;?><?php endif;?><?php endif;?><?phpif($colorcount == 6){$colorcount = 0;}?><?php endforeach;?><?php if($id !=6):?><?php foreach ($brandlist as $blkey => $blvalue):?><?php if(!in_array($blkey,$mylink) && !in_array($blkey,$selectedbrands)):?><?php $colorcount = $colorcount+1;if($colorcount == 6){$colorcount = 0;}?><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><?php endif;?><?php endforeach;?><?php endif;?></ul></div></div></div><?php endif;?>