Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
2847 mandeep.dh 1
#set ( $minPrice = $action.getMinPrice() )
2
#set ( $maxPrice = $action.getMaxPrice() )
3
 
4
#set ( $results = $action.getResults() )
5
#set ( $facets = $action.getFacets() )
6
 
7
#set( $totalItems = $action.getTotalResults() )
8
#set( $beginIndex = $action.getBeginIndex() )
9
#set( $endIndex  = $action.getBeginIndex() + 19 )
10
 
11
#if( $totalItems <= $endIndex )
12
#set( $endIndex = $totalItems )
13
#end
14
#set($totalPages = $action.getTotalPages())
15
#set($currentPage  = $action.getCurrentPage())
16
#set($url = $action.getUrl())
17
#set($priceUrl = $action.getPriceUrl())
18
 
19
 
20
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
21
<html xmlns="http://www.w3.org/1999/xhtml">
22
  <head>
23
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
24
	<meta name="Description" content="$action.getPageMetaDesc()" />
25
	<meta name="keywords" content="$action.getPageMetaKeywords()" />
26
    <!-- Prevent MS Office toolbar from changing layout -->
27
    <meta http-equiv="imagetoolbar" content="false" />
28
    <meta name="MSSmartTagsPreventParsing" content="true" />
5625 vikram.rag 29
    <title>$action.getSpecialPageTitle() | ${domain.name}</title>
2847 mandeep.dh 30
 
5542 amar.kumar 31
 #include ( "templates/commoncssfiles.vm" )
32
	<script language="javascript" type="text/javascript" src="/js/ga-invoker.js"></script>
2847 mandeep.dh 33
	<link rel="stylesheet" href="/css/jquery-ui-1.8.6.custom.css" type="text/css" media="all" />
34
  </head>
35
 
36
  <body>
37
 
38
    <noscript>
5572 anupam.sin 39
      <p id="noScript">Please enable <em>Javascript</em> for this Website to function correctly!</p>
2847 mandeep.dh 40
    </noscript>
41
 
5571 amit.gupta 42
 
43
	$action.getHeaderSnippet()
44
 
45
 
3830 chandransh 46
		<!-- Main -->
47
<div id="main">
48
	<div class="main-content">
49
		<div class="main-top">
50
			<div class="bread-crumbs">
51
				<a href="/">Home</a>&nbsp;&gt;&nbsp;
52
				<a href="#">$action.getSpecialPageName()</a>
53
			</div>
54
		</div>
55
		<div class="main-left left">
2847 mandeep.dh 56
 
3830 chandransh 57
		<!-- tab buttons -->
3784 rajveer 58
		#if($action.getSpecialPageName()=="Android")
3960 rajveer 59
		<div class="main-left-banner">
60
            <script type='text/javascript'><!--//<![CDATA[
5056 rajveer 61
               var m3_u = (location.protocol=='https:'?'https://open.saholic.com/openx/www/delivery/ajs.php':'http://open.saholic.com/openx/www/delivery/ajs.php');
3960 rajveer 62
               var m3_r = Math.floor(Math.random()*99999999999);
63
               if (!document.MAX_used) document.MAX_used = ',';
64
               document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
3963 rajveer 65
               document.write ("?zoneid=2");
3960 rajveer 66
               document.write ('&amp;cb=' + m3_r);
67
               if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
68
               document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
69
               document.write ("&amp;loc=" + escape(window.location));
70
               if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
71
               if (document.context) document.write ("&context=" + escape(document.context));
72
               if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
73
               document.write ("'><\/scr"+"ipt>");
5056 rajveer 74
            //]]>--></script><noscript><a href='http://open.saholic.com/openx/www/delivery/ck.php?n=a323f9ff&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://open.saholic.com/openx/www/delivery/avw.php?zoneid=2&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=a323f9ff' border='0' alt='' /></a></noscript>
3960 rajveer 75
		</div>
4153 rajveer 76
		#elseif($action.getSpecialPageName()=="Nokia")
77
            <script type='text/javascript'><!--//<![CDATA[
5056 rajveer 78
               var m3_u = (location.protocol=='https:'?'https://open.saholic.com/openx/www/delivery/ajs.php':'http://open.saholic.com/openx/www/delivery/ajs.php');
4153 rajveer 79
               var m3_r = Math.floor(Math.random()*99999999999);
80
               if (!document.MAX_used) document.MAX_used = ',';
81
               document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
82
               document.write ("?zoneid=5");
83
               document.write ('&amp;cb=' + m3_r);
84
               if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
85
               document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
86
               document.write ("&amp;loc=" + escape(window.location));
87
               if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
88
               if (document.context) document.write ("&context=" + escape(document.context));
89
               if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
90
               document.write ("'><\/scr"+"ipt>");
5056 rajveer 91
            //]]>--></script><noscript><a href='http://open.saholic.com/openx/www/delivery/ck.php?n=a6dac3b0&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://open.saholic.com/openx/www/delivery/avw.php?zoneid=5&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=a6dac3b0' border='0' alt='' /></a></noscript>
3784 rajveer 92
		#end
4429 rajveer 93
 
94
		<div class="main-left-banner">
95
            <script type='text/javascript'><!--//<![CDATA[
5056 rajveer 96
               var m3_u = (location.protocol=='https:'?'https://open.saholic.com/openx/www/delivery/ajs.php':'http://open.saholic.com/openx/www/delivery/ajs.php');
4429 rajveer 97
               var m3_r = Math.floor(Math.random()*99999999999);
98
               if (!document.MAX_used) document.MAX_used = ',';
99
               document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
100
               document.write ("?zoneid=7");
101
               document.write ('&amp;cb=' + m3_r);
102
               if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
103
               document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
104
               document.write ("&amp;loc=" + escape(window.location));
105
               if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
106
               if (document.context) document.write ("&context=" + escape(document.context));
107
               if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
108
               document.write ("'><\/scr"+"ipt>");
5056 rajveer 109
            //]]>--></script><noscript><a href='http://open.saholic.com/openx/www/delivery/ck.php?n=a592d2cd&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://open.saholic.com/openx/www/delivery/avw.php?zoneid=7&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=a592d2cd' border='0' alt='' /></a></noscript>
4429 rajveer 110
		</div>
111
 
2847 mandeep.dh 112
        <ul id="tabButton" class="menu">
113
          <li class="tabButton1" id="catTab1">
114
            <a class="showBrowse" href="#" title="" id="catTab1-first">
5889 amit.gupta 115
                  All
2847 mandeep.dh 116
            </a>
117
          </li>
118
          <li class="tabButton2" id="catTab2">
119
            <a class="category-tabs" href="#" title="Best Sellers" name="best-sellers" id="catTab2-10001-$action.getSpecialPageName()">
120
                  Best Sellers
121
            </a>
122
          </li>
123
          <li class="tabButton2" id="catTab3">
124
            <a class="category-tabs" href="#" title="Latest Arrivals" name="latest-arrivals" id="catTab3-10001-$action.getSpecialPageName()">
125
                  Latest Arrivals
126
            </a>
127
          </li>
128
          <li class="tabButton2" id="catTab4">
129
            <a class="category-tabs" href="#" title="Best Deals" name="best-deals" id="catTab4-10001-$action.getSpecialPageName()">
130
                  Best Deals
131
            </a>
132
          </li>
133
        </ul>
134
        <!-- /tab buttons -->
135
 
136
        <!-- my account -->
3830 chandransh 137
        <div id="productCat" class="blue-border">
2847 mandeep.dh 138
          <div class="top">
139
            <div class="left">&nbsp;</div>
140
            <div class="right">&nbsp;</div>
141
            <div class="clearBoth"></div>
142
          </div>
143
 
144
          <div class="middle">
145
            <div class="content">
146
 
147
              <!-- multifaceted search -->
148
              <div id="multifacetedSearch">
149
 
150
					#set ( $crumbs = $action.getCrumbs() )
151
					#if($crumbs && $crumbs.size()!=0)
152
                <h2>Current filters:</h2>
153
 
154
                <div id="currentFilters">
155
 
156
                  #foreach ( $crumb in $crumbs )
157
                  <div id="filterTalkTime">
158
                    <span class="sectionHeader">$crumb.get(0):</span>
159
                    <span class="filterContent">
160
                      <span class="filterOption">$crumb.get(1)</span>
3830 chandransh 161
                      <span class="filterClose"><a href="$crumb.get(2)">[X]</a></span>
2847 mandeep.dh 162
                    </span>
163
                  </div>
164
    					#end
165
                </div>
166
					#end
167
 
168
 
169
 
170
                <!-- filter by -->
171
                <div id="filterBy">
172
 
173
                    	#if($facets && $facets.size()!=0)
174
                  <h2>Filter by:</h2>
175
 
176
                    	#foreach ( $facetLabel in $facets.keySet() )
177
                    		#set ( $facetvalues = $facets.get($facetLabel) )
178
                    		#if( $facetLabel == "Price" )
179
                  <!-- price -->
180
                  <div id="filterByPrice">
181
                    <div class="filterHeading">
182
                      <div class="filterArrow">&nbsp;</div>
183
                      <div class="sectionHeader">Price <span class="noBold">(Rs.)</span></div>
184
                    </div>
185
 
186
                    <div id="priceSlider">
187
                      <div id="priceRange1"></div>
188
                      <div id="priceRange2"></div>
189
                      <div class="clearBoth"></div>
190
 
191
 
192
                      <div id="slider-range"></div>
193
                      <div id="diff">&nbsp;</div>
194
                    </div>
195
                  </div>
196
                  <!-- /price -->
197
                    		#else
198
                  <div id="filterByTalkTime">
199
                    <div class="filterHeading">
200
                      <div class="filterArrow">&nbsp;</div>
201
                      <div class="sectionHeader">$facetLabel</div>
202
                    </div>
203
 
204
                    <div class="filterOption">
205
                      <ul>
206
                    				#foreach ( $facetdetail in $facetvalues )
207
                        <li>
208
                          <a href="$facetdetail.get(2)" id="ttMedium">$facetdetail.get(0)</a> <span class="noColor">($facetdetail.get(1))</span>
209
                        </li>
210
                        #end
211
                      </ul>
212
                    </div>
213
                  </div>
214
                    		#end
215
                    	#end
216
 
217
                    	#end
218
                  <div class="bottomBorder">&nbsp;</div>
219
                </div>
220
                <!-- /filter by -->
221
 
222
              </div>
223
              <!-- /multifaceted search -->
224
 
225
              <!-- productList -->
226
              <div id="productList">
227
 
228
                <!-- browse tab content -->
229
                <div id="browseContent">
230
 
231
 
232
 
233
                  <!-- productListTop -->
234
                  <div class="productListTop">
235
                    <div class="productListResult">
236
									$beginIndex to $endIndex  of <span class="resultLimit">$totalItems</span> <span class="style1">results</span>
237
                    </div>
238
                    <div class="pagination1 moveTop">
239
                      <ul class="pagination">
240
										#if($currentPage == 1)
241
                        <li class="pager-previous">
242
                          <span class="current prev">Prev</span>
243
                        </li>
244
										#else
245
											#set($prev = $currentPage-1)
246
                        <li class="pager-previous">
247
                          <a href="${url}&page=${prev}" class="current prev">Prev</a>
248
                        </li>
249
										#end
250
 
251
 
252
										#set( $begin = 1 )
253
										#set( $end = 1 )
254
										#if($totalPages <= 5)
255
											#set( $begin = 1 )
256
											#set( $end = $totalPages )
257
										#else
258
											#if($currentPage <= 3)
259
												#set( $begin = 1 )
260
												#set( $end = 5 )
261
											#else
262
												#set( $begin = $currentPage - 2 )
263
    											#set( $end = $currentPage + 2 )
264
												#if( $end > $totalPages)
265
													#set( $end = $totalPages)
266
													#set( $begin = $end - 4 )
267
												#end
268
											#end
269
										#end
270
										#set( $pages = [$begin..$end] )
271
 
272
										#foreach( $pageId in $pages )
273
										#if($currentPage == $pageId)
274
                        <li class="pager-item">
275
                          <span class="current">$pageId</span>
276
                        </li>
277
										#else
278
                        <li class="pager-item">
279
                          <a href="${url}&page=${pageId}">$pageId</a>
280
                        </li>
281
										#end
282
										#end
283
 
284
										#if($currentPage == $totalPages)
285
                        <li class="pager-next">
286
                          <span class="current next">Next</span>
287
                        </li>
288
										#else
289
											#set($next = $currentPage+1)
290
                        <li class="pager-next">
291
                          <a href="${url}&page=${next}" class="current next">Next</a>
292
                        </li>
293
										#end
294
                      </ul>
295
                    </div>
296
                    <div class="clearBoth"></div>
297
                  </div>
298
                  <!-- /productListTop -->
299
 
300
                  <!-- productListCenter -->
301
                  <div id="productListCenter1">
302
 
303
                    <!-- page 1 -->
304
                    <div class="page">
305
                      <ul class="deal-items category-page-items">
306
								#set($snippets =  $action.getSnippets())
307
 
308
								#set( $isLeft = 0 )
309
								#foreach ( $entityid in $results )
310
 
311
                        <li
312
                          #if( $isLeft == 0 )
313
									class="floatLeft"
314
									#set($isLeft = 1)
315
								#else
316
									class="floatRight"
317
									#set($isLeft = 0)
318
								#end
319
								>
320
 
321
								$snippets.get($entityid)
322
                      </li>
323
								#end
324
                    </ul>
325
 
326
                  </div>
327
                  <div class="clearBoth"></div>
328
 
329
                </div>
330
                <!-- /productListCenter -->
331
 
332
                <!-- productListBottom -->
333
                <div class="productListBottom">
334
                  <div class="pagination1">
335
					                      <ul class="pagination">
336
										#if($currentPage == 1)
337
                        <li class="pager-previous">
338
                          <span class="current prev">Prev</span>
339
                        </li>
340
										#else
341
											#set($prev = $currentPage-1)
342
                        <li class="pager-previous">
343
                          <a href="${url}&page=${prev}" class="current prev">Prev</a>
344
                        </li>
345
										#end
346
 
347
 
348
										#set( $begin = 1 )
349
										#set( $end = 1 )
350
										#if($totalPages <= 5)
351
											#set( $begin = 1 )
352
											#set( $end = $totalPages )
353
										#else
354
											#if($currentPage <= 3)
355
												#set( $begin = 1 )
356
												#set( $end = 5 )
357
											#else
358
												#set( $begin = $currentPage - 2 )
359
    											#set( $end = $currentPage + 2 )
360
												#if( $end > $totalPages)
361
													#set( $end = $totalPages)
362
													#set( $begin = $end - 4 )
363
												#end
364
											#end
365
										#end
366
										#set( $pages = [$begin..$end] )
367
 
368
										#foreach( $pageId in $pages )
369
										#if($currentPage == $pageId)
370
                        <li class="pager-item">
371
                          <span class="current">$pageId</span>
372
                        </li>
373
										#else
374
                        <li class="pager-item">
375
                          <a href="${url}&page=${pageId}">$pageId</a>
376
                        </li>
377
										#end
378
										#end
379
 
380
										#if($currentPage == $totalPages)
381
                        <li class="pager-next">
382
                          <span class="current next">Next</span>
383
                        </li>
384
										#else
385
											#set($next = $currentPage+1)
386
                        <li class="pager-next">
387
                          <a href="${url}&page=${next}" class="current next">Next</a>
388
                        </li>
389
										#end
390
                      </ul>
391
 
392
				  </div>
393
                  <div class="clearBoth"></div>
394
                </div>
395
                <!-- /productListBottom -->
396
 
397
              </div>
398
              <!-- /browse tab content -->
399
 
400
              <!-- otherTabContent -->
401
              <div id="otherTabContent">
402
 
403
                <!-- productListTop -->
404
                <div class="productListTop">
405
 
406
                  <div class="productListHeading"></div>
407
                  <div class="pagination2"></div>
408
                  <div class="productListResult"></div>
409
 
410
                  <div class="clearBoth"></div>
411
                </div>
412
                <!-- /productListTop -->
413
 
414
                <!-- productListCenter -->
415
                <div id="productListCenter2">
416
 
417
 
418
                  <div class="clearBoth"></div>
419
 
420
                </div>
421
                <!-- /productListCenter -->
422
              </div>
423
              <!-- /otherTabContent -->
424
 
425
            </div>
426
            <!-- /productList -->
427
 
428
            <div class="clearBoth"></div>
429
          </div>
430
 
431
        </div>
432
 
433
        <div class="bottom">
434
          <div class="left">
435
            <div class="right">&nbsp;</div>
436
          </div>
437
        </div>
438
      </div>
439
      <!-- /my account -->
3830 chandransh 440
 
441
		</div>
442
		<!-- Widgets -->
443
		<div class="widgets right">
444
			$action.getCartWidgetSnippet()
445
			<div id="myresearch" class="common-widget">
3304 rajveer 446
                #include("templates/myresearch.vm")
3830 chandransh 447
			</div>
448
			<div id="browsehistory" class="common-widget">
3304 rajveer 449
                #include("templates/browsehistory.vm")
3830 chandransh 450
			</div>
451
		</div>
452
		<!-- /Widgets -->
2847 mandeep.dh 453
 
3830 chandransh 454
	</div>
455
</div>
456
<!-- /Main -->
2847 mandeep.dh 457
 
3830 chandransh 458
 
3304 rajveer 459
  #include("templates/footer.vm")
2847 mandeep.dh 460
 
461
  <!-- color by color lightbox -->
462
  <div style="display:none;">
463
    <div class="colorSelLightBoxColor">
464
      <form name="frmColorSelName" method="post" action="#">
465
        <h1>Color Selector</h1>
466
        <h2>"Please choose color of product"</h2>
467
 
468
        <div class="content"></div>
469
 
470
        <div class="bigImgButton yellow-image">
471
                <input value="Continue" type="button" class="button" onclick="selectColor();" />
472
        </div>
473
        <div class="clearBoth"></div>
474
 
475
      </form>
476
    </div>
477
  </div>
478
  <!-- /color by color lightbox -->
479
 
480
    #include ( "templates/commonjsfiles.vm" )
481
    <script language="javascript" type="text/javascript" src="/js/priceSlider.js"></script>
482
    <script type="text/javascript" charset="utf-8">
483
        $(function(){
484
			$('ul.product-description li').truncate({addtitle: true});
485
        });
486
    </script>
487
 
488
    <script type="text/javascript">
489
      minPrice        = $minPrice ;
490
      maxPrice        = $maxPrice ;
491
      stepPrice       = 10;
492
      priceUrl		   = "$priceUrl";
493
    </script>
494
 
495
</body>
496
</html>