Subversion Repositories SmartDukaan

Rev

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