Subversion Repositories SmartDukaan

Rev

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