Subversion Repositories SmartDukaan

Rev

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