Subversion Repositories SmartDukaan

Rev

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