Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
16912 naman 1
 <ul class="nav nav-tabs catselect">
16929 anikendra 2
<?php foreach($categories AS $catId => $name):?>
17686 naman 3
 
17552 manish.sha 4
  	<li class=" tab_layout <?php if((isset($id)) && $catId == $id):?>active<?php endif;?> col-xs-<?php echo (12/(count($categories)+1));?>">
18033 amit.gupta 5
    <a id="popovertrigger4" href="/category/<?php echo $catId;?>"<?php if($id!=6 && $catId==6):?>data-container="body" data-toggle="popover" data-placement="bottom" data-content="Launching Accessories at wholesale rates"	<?php endif;?>><?php echo $name;?></a>
18008 amit.gupta 6
    </li>
16929 anikendra 7
<?php endforeach;?>
18008 amit.gupta 8
<?php if($id==6 && $catId==6):?>
9
    	<script type="text/javascript">
10
 
11
    	</script>
12
<?php endif;?>		
16929 anikendra 13
</ul>
18184 amit.gupta 14
<div class="filters row" <?php if($id==6 && isset($subcategorieschosen) && array_key_exists($_COOKIE['subcategorieschosen'], $searchableSubCategories)):?> style="display:none"<?php endif;?>>	
16929 anikendra 15
<!-- For apps tab -->		
16
<?php if($id==2):?>
17
	<div class="text-center">
18
		<div class="text_arrange cb">				
17123 naman 19
 
17129 anikendra 20
                  <div class="card row" >
17310 naman 21
                  	<a href = "<?php echo $base_url;?>appb"><span style="color:red;font-size:1.1em">Earn upto Rs. 10,000 per month</span> 
22
                  		<!-- <u style="font-size:.9em">SEE HOW</u> -->
23
                  		<button type="button" class="btn btn-primary btn-sm">SEE HOW</button>
24
                  	</a><br>
25
                  	<!--<span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span>--><a href = "<?php echo $base_url;?>appb" style="font-size:1em; color:black"> Download these free apps for your customer.</a>
17313 amit.gupta 26
            <hr style="margin:1px;">
17123 naman 27
            <ul class="list-unstyled " style='margin:1px';>
16929 anikendra 28
                <li class="row row_style" >
17310 naman 29
                  	<div class="row showtips" style="font-size:.9em">
17123 naman 30
                  		<br>
31
                  		<div class='col-xs-11'>
32
                  	 		<font color= 'grey'>Normally cashbacks are not approved for 30-40% cases.</font><br> <font color='red'>Click here </font>to see tips on increasing your profit. 
33
                  	 	</div>
34
                  	 	<div class='col-xs-1'><span class="glyphicon glyphicon-chevron-down"></span></div>
35
                  	</div>
16929 anikendra 36
                  </div>
17129 anikendra 37
                  <div class="apptips hidden" style="background:#fff;">
16929 anikendra 38
                    <div class="row">
39
 
17123 naman 40
                    	<div class="col-xs-12" style='padding:1px'>
41
                    		<ol style="text-align:left;background:#f9fafb">
16929 anikendra 42
                    			<li>Only install new apps</li>
43
                    			<li>Keep network connected after installing apps</li>   			
44
                    			<li>Open the app 4-5 minutes after installing</li>
45
                    			<li>Preferably register and login on app</li>
46
                    		</ol>
47
                    	</div>
48
 
49
                    </div>
50
                  </div>              
51
                </li>
52
            </ul>
17313 amit.gupta 53
            <hr style="margin:1px;">
16929 anikendra 54
		</div>
55
	</div>		
56
<?php endif;?>	
57
<!-- End of apps tab code -->
58
<?php if(isset($notification) && !empty($notification)):?>
59
	<?php if($notification['NotificationRule']['type']=='link'):?>
60
	<div class="alert alert-info text-center col-xs-12">
61
		<a target="_blank" href="<?php echo $notification['NotificationRule']['url'].'?user_id='.$logged_user['id'];?>" class="webnotification"><?php echo $notification['NotificationRule']['message'];?></a>
14150 anikendra 62
	</div>
16929 anikendra 63
	<?php elseif($notification['NotificationRule']['type']=='popup'):?>
64
	<?php 
65
		$url = $notification['NotificationRule']['url'];
66
		if(strpos($url, '?')!==false){
67
			$url .= '&user_id='.$logged_user['id'];
68
		}else{
69
			$url .= '?user_id='.$logged_user['id'];
70
		}
71
	?>
17190 naman 72
	<div class="herotext col-xs-9" style='padding-top:0px'>
17130 anikendra 73
		<!-- Daily profitable deals for you -->
74
		<?php echo $this->element('headerlinks',array(),array());?>
16929 anikendra 75
		<script type="text/javascript">
76
			$(function(){
77
				$('.notificationMessage').html('<?php echo $notification['NotificationRule']['message'];?>');
78
				$('.notificationUrl').prop('href','<?php echo $url;?>').data('id','<?php echo $notification['NotificationRule']['id'];?>');
79
				if(showpopup(<?php echo $notification['NotificationRule']['id'];?>,<?php echo $notification['NotificationRule']['popup_display_count'];?>,<?php echo $notification['NotificationRule']['popup_display_interval'];?>)) {
80
					$('#notificationModal'+'<?php echo ucfirst($notification['NotificationRule']['popup_type']);?>').modal({show: true,keyboard: false,backdrop: 'static'});	
81
					var postdata = {'user_id':me,'notification_rule_id':'<?php echo $notification['NotificationRule']['id'];?>'};
82
					$.post( "/notification_views/add", postdata, function( data ) {});		
83
					ga('send', 'event', 'popupnotification-<?php echo $notification['NotificationRule']['id'];?>', 'shown', me);	
84
					var properties = {};
85
					properties.id = String('<?php echo $notification['NotificationRule']['id'];?>');
86
					pma.send('popupnotification','shown','<?php echo $notification['NotificationRule']['type'];?>',me,properties);			
87
				}
88
			});
89
		</script>
90
	</div>
17190 naman 91
	<div class="col-xs-3 pt7">
17686 naman 92
    	<?php if((isset($brandschosen) && !empty($brandschosen)) || (isset($subcategorieschosen) && !empty($subcategorieschosen))):?>
16929 anikendra 93
  			<a class="filteraction clearfilters btn btn-xs btn-danger pull-right mr5" id="clearfilters">Reset <i class="glyphicon glyphicon-chevron-right"></i></a>
94
  		<?php endif;?>	
95
    </div>
96
	<?php endif;?>
97
<?php else:?>
98
	<?php if($id!=2):?>
17190 naman 99
	<div class="col-xs-9 herotext" style='padding-top:0px'>                	
17123 naman 100
	    	<?php echo $this->element('headerlinks',array(),array());?>
101
	    	<!-- Daily profitable deals for you	               	        -->
16929 anikendra 102
	</div>        
17190 naman 103
	<div class="col-xs-3 pt7">
17686 naman 104
		<?php if((isset($brandschosen) && !empty($brandschosen)) || (isset($subcategorieschosen) && !empty($subcategorieschosen))):?>
16929 anikendra 105
				<a class="btn btn-xs btn-danger filteraction clearfilters pull-right mr5" id="clearfilters">Reset <i class="glyphicon glyphicon-chevron-right"></i></a>
106
			<?php endif;?>	
107
	</div>
108
	<?php endif;?> 
109
<?php endif;?>			
17552 manish.sha 110
 
17642 naman 111
<?php if($id!=2) {?>
17552 manish.sha 112
<div class = 'col-xs-3 bg-white' style='float:left'>
113
 
114
								<ul class="nav">
115
									<li class="tab_layout <?php if($id!=2):?>bg-white<?php endif;?>">
116
										<?php if($id!=2):?>
117
										<div class="dropdown pull-right">
118
											<a tabindex="0" id="popovertrigger" role="button" class="btn" data-container="body" data-toggle="popover" data-placement="left" data-trigger="click" data-content="<span class='greentext'>Filter by brands</span> to see deals you want"></a>
119
											<button class="<?php if(isset($brandschosen) && !empty($brandschosen)):?>red-text<?php endif;?> btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
17686 naman 120
												<i class="glyphicon glyphicon-filter"></i> <?php if((isset($brandschosen) && !empty($brandschosen))||(isset($subcategorieschosen) && !empty($subcategorieschosen))):?>On<?php endif;?>	  
17552 manish.sha 121
												<span class="caret"></span>
122
											</button>
123
											<ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dropdownMenu1">
124
												<li role="presentation" class="dropdown-header menu-item">
125
													FILTER
17686 naman 126
													<?php if((isset($brandschosen) && !empty($brandschosen)) || (isset($subcategorieschosen) && !empty($subcategorieschosen))):?>
17552 manish.sha 127
													<button class="btn btn-xs clearfilters btn-danger filteraction" style="position: absolute;right: -5px;top: 5px;" id="clearfilters">Reset</button>
128
												<?php endif;?>	
129
												</li>
17686 naman 130
												<!-- <By subcategory started> -->
131
												<?php if ($id==6):?>
17761 naman 132
												<li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="<?php echo $base_url;?>subcategoryfilter/subcategory<?php if(isset($id)):?>/<?php echo $id;?><?php endif;?>">By Product <span class="greyarrow"></span></a></li>
17686 naman 133
												<?php endif;?>
134
 
135
												<!-- <By subcategory ended> -->
17700 naman 136
												<li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="<?php echo $base_url;?>filter/brand<?php if(isset($id)):?>/<?php echo $id;?><?php endif;?>">By Brands <span class="greyarrow"></span></a></li>
17686 naman 137
 
17700 naman 138
 
139
 
140
 
17552 manish.sha 141
												<!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Price-range</a></li> -->
142
												<!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Sub-category</a></li> -->
143
												<li role="presentation" class="dropdown-header menu-item">SORT</li>
144
												<li role="presentation" class="menu-item <?php if(isset($sort) && $sort == 'bestSellerPoints'):?>selected<?php endif;?>"><a role="menuitem" tabindex="-1" href="?sort=bestSellerPoints&direction=-1">Bestsellers</a></li>
145
												<li role="presentation" class="menu-item <?php //if(isset($sort) && $sort == 'available_price'):?><?php //endif;?>"><span class="sortlabel">Price</span> <a role="menuitem" tabindex="-1" href="?sort=available_price&direction=1" class="btn-asc btn btn-xs">Low</a> <a role="menuitem" tabindex="-1" href="?sort=available_price&direction=-1" class="btn-desc btn-xs">High</a></li>
146
												<!-- <li role="presentation" class="menu-item <?php if(isset($sort) && $sort == 'available_price' && $direction=='-1'):?>selected<?php endif;?>"><a role="menuitem" tabindex="-1" href="?sort=available_price&direction=-1">Price High to Low</a></li> -->
147
												<li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="?sort=-1">Recommended</a></li>
148
											</ul>
149
										</div>
150
										<?php endif;?>
151
									</li>	
152
								</ul>	
153
							</div>	
154
<?php } ?>
16929 anikendra 155
</div>