Subversion Repositories SmartDukaan

Rev

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