Subversion Repositories SmartDukaan

Rev

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

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