Subversion Repositories SmartDukaan

Rev

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

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