Subversion Repositories SmartDukaan

Rev

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