Subversion Repositories SmartDukaan

Rev

Rev 20711 | 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 $selectedbrands = explode("^",$brands);?> 
<?php if(isset($brands) && !empty($brands) && $id != 6):?>
<div class = "row">
        <div id="wrapperboss" style="position:relative;" class="col-xs-9 pt7">
                                <!-- crossfilter start -->
                                <script type="text/javascript">
                                                function loaded () {
                                                        myScroll1 = new IScroll('#wrapper1', { scrollX: true, scrollY: false, mouseWheel: true, click: true, tap: true, bindToWrapper:true });
                                                }
                                                </script>
                                <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>
        <div class="col-xs-3 pt7">
                <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>   
        </div>
</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;?>">                                                                                        
                                                                                                        <?php 
                                                                                                                echo $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 endif;?>
                                                                                <?php 
                                                                                        if($colorcount == 6)
                                                                                        {
                                                                                                $colorcount = 0;
                                                                                        }
                                                                                ?>
                                                                <?php endforeach;?>
                                                                <?php if($id !=6):?>                                                    
                                                                        <?php foreach ($brandlist as $blkey => $blvalue):?>
                                                                                        <?php if(!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;line-height:30px; background:<?php echo $color[$colorcount];?>;' ><?php echo $blvalue;?></li>                                                               
                                                                                                
                                                                                        <?php endif;?>                                                                                          
                                                                        <?php endforeach;?>                                                     
                                                                <?php endif;?>
                                                            </ul>
                                                        </div>
        </div>
</div>
<?php endif;?>