Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
18388 naman 1
 
20683 amit.gupta 2
<script type="text/javascript" src="<?php echo $base_url;?>js/iscroll.js?v=<?php echo $staticversion;?>"></script>
19828 naman 3
<script type="text/javascript" src="<?php echo $base_url;?>js/deals.js?v=<?php echo $staticversion;?>"></script>
4
<script type="text/javascript">
5
function loaded () {
6
	myScroll = new IScroll('#wrapper', { scrollX: true, scrollY: false, mouseWheel: true, click: true, tap: true });
20008 naman 7
	<?php if($id == 3):?>
8
		myScroll3 = new IScroll('#wrapper3', { scrollX: true, scrollY: false, mouseWheel: true, click: true, tap: true });
20328 amit.gupta 9
 
20008 naman 10
	<?php endif;?>
20711 amit.gupta 11
}
12
</script>
19828 naman 13
 
20711 amit.gupta 14
 
19605 naman 15
<script>
16
$(document).ready(function(){
17
 
18
	var scrollerwidth = 0;
19
	var scroller1width = 0;
20004 naman 20
	var scroller3width = 0;
19605 naman 21
	$('#scroller li').each(function() {
22
	    var $this = $(this);
23
	    scrollerwidth =scrollerwidth + $this.outerWidth() + 4;
24
	});
25
	var scrollerwidth = ""+(scrollerwidth + 2)+"px";
26
	$('#scroller1 li').each(function() {
27
	    var $this = $(this);
28
	    scroller1width =scroller1width + $this.outerWidth() + 10;
29
	});
30
	var scroller1width = ""+(scroller1width + 2)+"px";
31
 
20004 naman 32
	$('#scroller3 li').each(function() {
33
	    var $this = $(this);
34
	    scroller3width =scroller3width + $this.outerWidth() + 10;
35
	});
36
	var scroller3width = ""+(scroller3width + 2)+"px";
37
 
19605 naman 38
    $('#scroller').css("width",scrollerwidth);
39
    $('#scroller1').css("width",scroller1width);
20004 naman 40
    $('#scroller3').css("width",scroller3width);
19605 naman 41
 
42
});
43
</script>
44
<style>
45
.activate{
46
	color:green;
47
}
48
#wrapper,#wrapper1 {
49
	z-index: 1;
50
	bottom: 48px;
51
	left: 0;
52
	overflow: hidden;
53
}
54
#wrapper{
19620 naman 55
	max-height:40px;
19605 naman 56
	width: 97%;
19620 naman 57
	padding: 0px 5px;
58
	min-height: 0px;
19605 naman 59
}
60
#wrapper1{
61
	height:30px;
62
	width: 100%;
63
}
64
 
20004 naman 65
#wrapper3{
19605 naman 66
	z-index: 1;
20004 naman 67
	left: 0;
68
	overflow: hidden;
20008 naman 69
 	height:20px; 
20004 naman 70
	width: 100%;
71
}
72
 
73
#scroller, #scroller1,  #scroller3{
74
	z-index: 1;
19605 naman 75
	-webkit-tap-highlight-color: rgba(0,0,0,0);
76
	-webkit-transform: translateZ(0);
77
	-moz-transform: translateZ(0);
78
	-ms-transform: translateZ(0);
79
	-o-transform: translateZ(0);
80
	transform: translateZ(0);
81
	-webkit-touch-callout: none;
82
	-webkit-user-select: none;
83
	-moz-user-select: none;
84
	-ms-user-select: none;
85
	user-select: none;
86
	-webkit-text-size-adjust: none;
87
	-moz-text-size-adjust: none;
88
	-ms-text-size-adjust: none;
89
	-o-text-size-adjust: none;
90
	text-size-adjust: none;
91
}
92
 
20004 naman 93
#scroller ul,#scroller1 ul ,#scroller3 ul{
19605 naman 94
	list-style: none;
95
	padding: 0;
96
	margin: 0;
97
	width: 100%;	
98
	text-align: center;
99
}
100
 
20004 naman 101
#scroller li, #scroller1 li,#scroller3 li {
19605 naman 102
	display: block;
103
	float: left;
104
  	margin:2px;
105
	color:white;
106
	border-right: 1px solid #ccc;
20004 naman 107
/* 	background-color: #F2DEDE; */
19605 naman 108
	font-size: 12px;
109
}
110
#scroller li{
111
	font-weight:bold;
112
	padding: 7px;
113
	height: 37px;
114
	border-radius:5px;
115
	vertical-align:middle;
116
	font-size: 11px;
117
	min-width: 67px;
118
	max-width: 92px;
119
	text-transform: uppercase;
120
/* 	overflow: hidden ; */
121
	}
122
#scroller1 li {
123
	color: #555;
124
    padding: 5px;
125
    background : none;
126
    height: 23px;
127
    border : #E5E5E5 1px solid;
128
    margin:3px;
129
    text-transform: uppercase;
130
    font-size: 10px;
131
}
132
 
133
.cancelstyle{
134
	font-weight:bold;
135
	background: black;
136
    padding: 1px 3px;
137
    color: white;
138
	border-radius: 4px;
139
 
140
}
141
</style>
20006 naman 142
 
19656 naman 143
<?php
144
	if(isset($subcategories)){
145
		$catstr = explode("^",$subcategories);
146
	}
147
 
148
?>
19605 naman 149
 
16912 naman 150
 <ul class="nav nav-tabs catselect">
16929 anikendra 151
<?php foreach($categories AS $catId => $name):?>
17686 naman 152
 
19638 naman 153
  	<li class=" tab_layout <?php if((isset($id)) && $catId == $id):?>active<?php endif;?> col-xs-<?php echo (12/(count($categories)));?>">
19383 amit.gupta 154
	    <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;?>>
19638 naman 155
	    	<?php if($catId==6):?>
156
	    		Accessories
157
	    	<?php else:?>
158
	    		<?php echo $name;?>
159
	    	<?php endif;?>
19383 amit.gupta 160
	    </a>
18008 amit.gupta 161
    </li>
19383 amit.gupta 162
<?php endforeach;?>		
16929 anikendra 163
</ul>
19661 naman 164
 
19909 naman 165
<?php if($this->params->action != 'linkdeal'):?>
166
	<?php if(isset($id)):?>
167
 
168
	<div class="filters row" >	
169
	<!-- For apps tab -->		
170
	<?php if($id==2):?>
171
		<div class="text-center">
172
			<div class="text_arrange cb">				
173
 
174
	                  <div class="card row" >
175
	                  	<a href = "<?php echo $base_url;?>appb"><span style="color:red;font-size:1.1em">Earn upto Rs. 10,000 per month</span> 
176
	                  		<!-- <u style="font-size:.9em">SEE HOW</u> -->
177
	                  		<button type="button" class="btn btn-primary btn-sm">SEE HOW</button>
178
	                  	</a><br>
179
	                  	<!--<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>
180
	            <hr style="margin:1px;">
181
	            <ul class="list-unstyled " style='margin:1px';>
182
	                <li class="row row_style" >
183
	                  	<div class="row showtips" style="font-size:.9em">
184
	                  		<br>
185
	                  		<div class='col-xs-11'>
186
	                  	 		<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. 
187
	                  	 	</div>
188
	                  	 	<div class='col-xs-1'><span class="glyphicon glyphicon-chevron-down"></span></div>
189
	                  	</div>
190
	                  </div>
191
	                  <div class="apptips hidden" style="background:#fff;">
192
	                    <div class="row">
193
 
194
	                    	<div class="col-xs-12" style='padding:1px'>
195
	                    		<ol style="text-align:left;background:#f9fafb">
196
	                    			<li>Only install new apps</li>
197
	                    			<li>Keep network connected after installing apps</li>   			
198
	                    			<li>Open the app 4-5 minutes after installing</li>
199
	                    			<li>Preferably register and login on app</li>
200
	                    		</ol>
201
	                    	</div>
202
 
203
	                    </div>
204
	                  </div>              
205
	                </li>
206
	            </ul>
207
	            <hr style="margin:1px;">
208
			</div>
209
		</div>		
210
	<?php endif;?>	
211
	<!-- End of apps tab code -->
212
	<?php if(isset($notification) && !empty($notification)):?>
213
		<?php if($notification['NotificationRule']['type']=='link'):?>
214
		<div class="alert alert-info text-center col-xs-12">
215
			<a target="_blank" href="<?php echo $notification['NotificationRule']['url'].'?user_id='.$logged_user['id'];?>" class="webnotification"><?php echo $notification['NotificationRule']['message'];?></a>
16929 anikendra 216
		</div>
19909 naman 217
		<?php elseif($notification['NotificationRule']['type']=='popup'):?>
218
		<?php 
219
			$url = $notification['NotificationRule']['url'];
220
			if(strpos($url, '?')!==false){
221
				$url .= '&user_id='.$logged_user['id'];
222
			}else{
223
				$url .= '?user_id='.$logged_user['id'];
224
			}
225
		?>
226
		<div class="herotext col-xs-9" style='padding-top:0px'>
227
			<!-- Daily profitable deals for you -->
228
			<script type="text/javascript">
229
				$(function(){
230
					$('.notificationMessage').html('<?php echo $notification['NotificationRule']['message'];?>');
231
					$('.notificationUrl').prop('href','<?php echo $url;?>').data('id','<?php echo $notification['NotificationRule']['id'];?>');
232
					if(showpopup(<?php echo $notification['NotificationRule']['id'];?>,<?php echo $notification['NotificationRule']['popup_display_count'];?>,<?php echo $notification['NotificationRule']['popup_display_interval'];?>)) {
233
						$('#notificationModal'+'<?php echo ucfirst($notification['NotificationRule']['popup_type']);?>').modal({show: true,keyboard: false,backdrop: 'static'});	
234
						var postdata = {'user_id':me,'notification_rule_id':'<?php echo $notification['NotificationRule']['id'];?>'};
235
						$.post( "/notification_views/add", postdata, function( data ) {});		
236
						ga('send', 'event', 'popupnotification-<?php echo $notification['NotificationRule']['id'];?>', 'shown', me);	
237
						var properties = {};
238
						properties.id = String('<?php echo $notification['NotificationRule']['id'];?>');
239
						pma.send('popupnotification','shown','<?php echo $notification['NotificationRule']['type'];?>',me,properties);			
240
					}
241
				});
242
			</script>
243
		</div>
244
		<?php endif;?>
16929 anikendra 245
	<?php endif;?>
19605 naman 246
 
247
 
19909 naman 248
		<?php if($id != 2 && ((!isset($brands) || ( empty($brands))) && (!isset($subcategories) || (empty($subcategories))))):?>
249
 
250
		<div class="col-xs-12 herotext" style='padding-top:0px'> 
251
 
252
				<?php echo $this->element('headerlinks',array(),array());?>
253
 
254
		</div>
255
 
19931 naman 256
		<?php elseif($id != 2 && $id != 6 && (isset($brands) || !empty($brands))):?>
257
 
19909 naman 258
		<div class="col-xs-12 herotext" style='padding-top:0px'> 
259
 
260
				<?php echo $this->element('headerlinks',array(),array());?>
261
 
262
		</div>
19605 naman 263
 
19909 naman 264
		<?php elseif($id!=2):?>
265
		<div class="col-xs-9 herotext" style='padding-top:0px'>                	
266
 
267
		    	<?php if($id == 6):?>
268
			    	<div id="wrapperboss" style="position:relative;">
269
					<!-- crossfilter start -->
20711 amit.gupta 270
						<script type="text/javascript">
271
						function loaded () {
272
							myScroll1 = new IScroll('#wrapper1', { scrollX: true, scrollY: false, mouseWheel: true, click: true, tap: true });
273
						}
274
						</script>
19909 naman 275
			    		<div id="wrapper1" style="background:white;">
276
							<div id="scroller1">
277
								<ul>
278
 
279
									<?php foreach($allbrandsubcat['idListInfo'] as $akey => $avalue ):?>
280
										<li class="upselect mtop getcancel quickclick" data-type="<?php if(isset($whatfirst)&&!empty($whatfirst)):?><?php echo $whatfirst;?><?php endif;?>" data-<?php echo $whatfirst."id";?>="<?php echo $akey;?>" ><?php echo $avalue;?> <span class="cancelstyle"> X </span></li>
281
									<?php endforeach;?>
282
 
283
									<?php foreach($allbrandsubcat['result'] as $ckey => $cvalue ):?>
284
										<?php if(in_array($cvalue[$whatsecondid],$secondloop)):?>
285
											<li class="upselect getcancel quickclick" data-type="<?php if(isset($whatsecond)&&!empty($whatsecond)):?><?php echo $whatsecond;?><?php endif;?>" data-<?php echo $whatsecond."id";?>="<?php echo $cvalue[$whatsecondid];?>">
286
											<?php echo $cvalue[$whatsecond];?> <span class="cancelstyle"> X </span>
287
											</li>
288
										<?php endif;?>
289
									<?php endforeach;?>
290
 
291
							    </ul>
292
							</div>
19605 naman 293
						</div>
19909 naman 294
 
295
					<!-- crossfilter end -->
296
 
297
 
298
			    	</div>
299
			    <?php elseif (isset($brands) ||  !empty($brands)):?>
300
			    	<?php echo $this->element('headerlinks',array(),array());?>
301
		    	<!-- Daily profitable deals for you	               	        -->
302
			    <?php endif;?>
303
 
304
		</div>   
305
 
306
 
307
		<div class="col-xs-3 pt7">
308
			<?php if($id == 6 && (isset($brands) && !empty($brands)) || (isset($subcategories) && !empty($subcategories))):?>
309
					<a class="btn btn-xs btn-danger filteraction clearfilters pull-right mr5" id="clearfilters" style="margin-top: 4px;padding: 2px 16px; background: #efefef !important;border: 1px; color: #333!important;font-size: 12px;"> RESET </a>
310
				<?php endif;?>	
311
		</div>
312
		<?php endif;?> 
19605 naman 313
 
19909 naman 314
 
16929 anikendra 315
	</div>
19909 naman 316
 
317
	<?php if($id == 6 && ((isset($brands) && !empty($brands)) || (isset($subcategories) && !empty($subcategories))) && (isset($allbrandsubcat) && !empty($allbrandsubcat))):?>
318
	<!-- for quickfilter start-->
319
					<div style="background:white;">
320
			    		<div id="wrapper" style="background:white;">
321
							<div id="scroller">
322
								<ul>
323
								<?php $colorcount = 0;?>
324
								<?php foreach($allbrandsubcat['result'] as $bkey => $bvalue ):?>
325
									<?php if(!in_array($bvalue[$whatsecondid],$secondloop)):?>
326
									<?php $strarr = explode(" ", $bvalue[$whatsecond]);?>
327
										<li class="downselect quickclick" data-type="<?php if(isset($whatsecond)&&!empty($whatsecond)):?><?php echo $whatsecond;?><?php endif;?>" data-<?php echo $whatsecond."id";?>="<?php echo $bvalue[$whatsecondid];?>" style="background:<?php echo $color[$colorcount];?>; <?php if(strlen($bvalue[$whatsecond]) >9 && sizeof($strarr)>1):?> font-size: 10px;line-height: 12px;<?php elseif(strlen($bvalue[$whatsecond]) <=9 && sizeof($strarr)>1):?>line-height: 12px;<?php else:?>line-height: 24px;<?php endif;?>">
18388 naman 328
 
19909 naman 329
											<?php 
330
												echo $strarr[0]; 
331
												if(sizeof($strarr) >1){
332
													echo "<br>";
333
													for($abs = 1; $abs< sizeof($strarr);$abs++)
334
													{
335
														echo $strarr[$abs]." ";
336
													}	
337
												}									
17700 naman 338
 
339
 
19909 naman 340
 
341
											?>
19605 naman 342
 
19909 naman 343
										</li>
344
										<?php $colorcount = $colorcount+1;
345
											if($colorcount == 6)
346
											{
347
												$colorcount = 0;
348
											}
19605 naman 349
										?>
19909 naman 350
									<?php endif;?>
351
								<?php endforeach;?>
352
							    </ul>
353
							</div>
19605 naman 354
						</div>
355
					</div>
19909 naman 356
	<!-- for quickfilter end-->
357
	<?php endif;?>
358
 
359
	<?php endif;?>
19661 naman 360
 
20328 amit.gupta 361
<?php endif;?>
20332 amit.gupta 362
<?php echo $outputcategory;?>