Subversion Repositories SmartDukaan

Rev

Rev 19504 | Rev 19615 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
19606 naman 1
 
2
<?php if((isset($id) && $id == 6) && ((isset($sort) && !empty($sort)) || (!isset($brands) && empty($brands)) || (!isset($subcategories) && empty($subcategories)))):?>
3
	<script type="text/javascript" src="<?php echo $base_url;?>js/iscroll.js"></script>
4
	<script type="text/javascript">
5
	function loaded () {
6
		myScroll = new IScroll('#wrapper', { scrollX: true, scrollY: false, mouseWheel: true, click: true, tap: true });
7
	}</script>
8
<?php endif;?>
9
 
16013 anikendra 10
<?php $links = $this->requestAction('users/getlinks/'.$logged_user['id']);?>
19606 naman 11
<?php if(!empty($links) && (isset($id) && $id != 6)):?>
18389 naman 12
<?php //$cur_url = $_SERVER['REQUEST_URI'];?>
13
 
17192 naman 14
<ul class="list-inline" style='font-size:.9em'>
16013 anikendra 15
<?php foreach ($links[$id] as $name => $link) :?>	
18389 naman 16
 
17
	<?php //if(substr($cur_url, strrpos($cur_url, '=') + 1) == substr($link,strpos($link,'=',8)+1)):?>
18
	<?php if(!empty($brands) && $brands == substr($link,strpos($link,'=',8)+1)):?>
19
 
17192 naman 20
	<li style='padding:2px;'><a class="selectbrand active" data-href="<?php echo $link;?>" data-id="<?php echo substr($link,strpos($link,'=',8)+1);?>"><?php echo $name;?></a></li>	
16031 anikendra 21
	<?php else:?>
17192 naman 22
	<li style='padding:2px;'><a class="selectbrand" data-href="<?php echo $link;?>" data-id="<?php echo substr($link,strpos($link,'=',8)+1);?>"><?php echo $name;?></a></li>	
16031 anikendra 23
	<?php endif;?>
16013 anikendra 24
<?php endforeach;?>
17687 naman 25
 
26
	<?php if(isset($brandschosen) && !empty($brandschosen)):?>	
16031 anikendra 27
	<li><button  class="btn btn-xs clearfilters" style="width:25px !important;">All</button></li>
28
	<?php endif;?>
16013 anikendra 29
</ul>
16031 anikendra 30
<?php endif;?>
19606 naman 31
<?php if((isset($id) && $id == 6) && ((isset($sort) && !empty($sort))||(!isset($brands) && empty($brands)) || (!isset($subcategories) && empty($subcategories)))):?>
32
<div style="margin-top:4px;">
33
<div id="wrapper" style="background:white; width:100%; padding:0px;">
34
						<div id="scroller">
35
							<ul>
36
							<?php $colorcount = 0;?>
37
							<?php foreach($arrSubCategory as $arrkey => $arrvalue ):?>
38
 
39
								<?php if ($arrkey != 0):?>
40
								<?php $strarr = explode(" ", $arrvalue);?>
41
									<a href="?filter=subcategory&subcategories=<?php echo $arrkey;?>&whatfirst=subCategory">
42
										<li style="background:<?php echo $color[$colorcount];?>; <?php if(strlen($arrvalue) >9 && sizeof($strarr)>1):?> font-size: 10px;line-height: 12px;<?php elseif(strlen($arrvalue) <=9 && sizeof($strarr)>1):?>line-height: 12px;<?php else:?>line-height: 24px;<?php endif;?>;">
43
 
44
										<?php 
45
											echo $strarr[0]; 
46
											if(sizeof($strarr) >1){
47
												echo "<br>";
48
												for($abs = 1; $abs<= sizeof($strarr);$abs++)
49
												{
50
													echo $strarr[$abs]." ";
51
												}	
52
											}									
53
 
54
 
55
 
56
										?>
57
 
58
									</li>
59
									</a>
60
									<?php $colorcount = $colorcount+1;
61
										if($colorcount == 6)
62
										{
63
											$colorcount = 0;
64
										}
65
									?>
66
								<?php endif;?>
67
							<?php endforeach;?>
68
						    </ul>
69
						</div>
70
</div>
71
</div>
72
<?php endif;?>