Subversion Repositories SmartDukaan

Rev

Rev 6976 | Rev 8156 | 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" />
5625 vikram.rag 29
    <title>$action.getCategoryTitle() | ${domain.name}</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" />
5542 amar.kumar 33
	<script language="javascript" type="text/javascript" src="/js/ga-invoker.js"></script>
794 rajveer 34
  </head>
517 rajveer 35
 
794 rajveer 36
  <body>
637 rajveer 37
 
794 rajveer 38
    <noscript>
5572 anupam.sin 39
      <p id="noScript">Please enable <em>Javascript</em> for this Website to function correctly!</p>
794 rajveer 40
    </noscript>
41
 
42
	$action.getHeaderSnippet()
3830 chandransh 43
 
44
		<!-- Main -->
45
<div id="main">
46
	<div class="main-content">
47
		<div class="main-top">
48
			<div class="bread-crumbs">
49
				<a href="/">Home</a>&nbsp;&gt;&nbsp;
50
				<a href="#">$action.getCategoryName()</a>
51
			</div>
52
		</div>
53
		<div class="main-left left">
4153 rajveer 54
            <script type='text/javascript'><!--//<![CDATA[
5056 rajveer 55
               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 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>");
5056 rajveer 68
            //]]>--></script><noscript><a href='http://open.saholic.com/openx/www/delivery/ck.php?n=aa95abb5&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://open.saholic.com/openx/www/delivery/avw.php?zoneid=4&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=aa95abb5' border='0' alt='' /></a></noscript>
3830 chandransh 69
			        <!-- tab buttons -->
794 rajveer 70
        <ul id="tabButton" class="menu">
71
          <li class="tabButton1" id="catTab1">
883 rajveer 72
            <a class="showBrowse" href="#" title="" id="catTab1-first">
5889 amit.gupta 73
                  All
883 rajveer 74
            </a>
794 rajveer 75
          </li>
76
          <li class="tabButton2" id="catTab2">
883 rajveer 77
            <a class="category-tabs" href="#" title="Best Sellers" name="best-sellers" id="catTab2-$action.getId()">
78
                  Best Sellers
79
            </a>
794 rajveer 80
          </li>
81
          <li class="tabButton2" id="catTab3">
883 rajveer 82
            <a class="category-tabs" href="#" title="Latest Arrivals" name="latest-arrivals" id="catTab3-$action.getId()">
83
                  Latest Arrivals
84
            </a>
794 rajveer 85
          </li>
86
          <li class="tabButton2" id="catTab4">
883 rajveer 87
            <a class="category-tabs" href="#" title="Best Deals" name="best-deals" id="catTab4-$action.getId()">
88
                  Best Deals
89
            </a>
794 rajveer 90
          </li>
91
        </ul>
92
        <!-- /tab buttons -->
93
 
3830 chandransh 94
 
794 rajveer 95
        <!-- my account -->
3830 chandransh 96
        <div id="productCat" class="blue-border">
794 rajveer 97
          <div class="top">
98
            <div class="left">&nbsp;</div>
99
            <div class="right">&nbsp;</div>
100
            <div class="clearBoth"></div>
101
          </div>
102
 
103
          <div class="middle">
104
            <div class="content">
105
 
106
              <!-- multifaceted search -->
107
              <div id="multifacetedSearch">
108
                <!-- filter by -->
6866 amit.gupta 109
				<div id="filterBy">
794 rajveer 110
 
6866 amit.gupta 111
						#if($facets && $facets.size()!=0)
794 rajveer 112
                  <h2>Filter by:</h2>
6866 amit.gupta 113
						#foreach ( $facetLabel in $facets.keySet() )
114
							#set ( $facetvalues = $facets.get($facetLabel) )
115
							#if( $facetLabel == "Price" )
794 rajveer 116
                  <!-- price -->
117
                  <div id="filterByPrice">
118
                    <div class="filterHeading">
119
                      <div class="filterArrow">&nbsp;</div>
120
                      <div class="sectionHeader">Price <span class="noBold">(Rs.)</span></div>
121
                    </div>
122
 
123
                    <div id="priceSlider">
124
                      <div id="priceRange1"></div>
125
                      <div id="priceRange2"></div>
126
                      <div class="clearBoth"></div>
127
 
128
 
129
                      <div id="slider-range"></div>
130
                      <div id="diff">&nbsp;</div>
131
                    </div>
132
                  </div>
133
                  <!-- /price -->
6866 amit.gupta 134
						#elseif( $facetLabel == "Category" )
135
						#elseif( $facetLabel == "Sub Category" )
136
						#if ($action.getChildren($action.getCategoryName()).size() > 1)
137
						<div id="filterByTalkTime">
794 rajveer 138
                    <div class="filterHeading">
139
                      <div class="filterArrow">&nbsp;</div>
140
                      <div class="sectionHeader">$facetLabel</div>
141
                    </div>
6866 amit.gupta 142
 
794 rajveer 143
                    <div class="filterOption">
144
                      <ul>
517 rajveer 145
                    				#foreach ( $facetdetail in $facetvalues )
794 rajveer 146
                        <li>
6866 amit.gupta 147
                        #if ($facetdetail.get(3) != "")
148
                       	<a style="font-weight:bold" class="mk_bold mk_subcategory" value="$facetdetail.get(2)">$facetdetail.get(0)</a> <span class="noColor">($facetdetail.get(1))</span>
149
          				#else
150
	                    <a href="javascript:void(0)" class="mk_subcategory mk_filter" value="$facetdetail.get(2)">$facetdetail.get(0)</a> <span class="noColor">($facetdetail.get(1))</span>
151
          				#end
794 rajveer 152
                        </li>
153
                        #end
154
                      </ul>
155
                    </div>
156
                  </div>
6866 amit.gupta 157
				 		#end
158
					#else
159
                  <div id="filterByTalkTime">
160
                    <div class="filterHeading">
161
                      <div class="filterArrow">&nbsp;</div>
162
                      <div class="sectionHeader">$facetLabel</div>
163
                    </div>
794 rajveer 164
 
6866 amit.gupta 165
                    <div class="filterOption">
166
                      <ul>
167
									#foreach ( $facetdetail in $facetvalues)
168
									#set ($zeroClass = "")
169
									#set ($isActive = "")
170
									#if ($facetdetail.get(1) == "0")
171
									#set ($zeroClass = "zero_count")
172
									#set ($isActive = 'disabled="disabled"')
173
									#end
174
									#if ($facetdetail.get(3) == "")
175
									#set ($checked = "")
176
									#else
177
									#set ($checked = "bold")
178
									#end
179
                        <li class="$zeroClass $checked">
180
                          <input type="checkbox" value="$facetdetail.get(2)" $isActive class="mk_filter" $facetdetail.get(3)/>$facetdetail.get(0)<span class="noColor">($facetdetail.get(1))</span>
181
                        </li>
182
									#end
183
                      </ul>
184
                    </div>
185
                  </div>
186
 
187
							#end
188
						#end
189
 
190
						#end
191
 
794 rajveer 192
                  <div class="bottomBorder">&nbsp;</div>
193
                </div>
194
                <!-- /filter by -->
517 rajveer 195
 
794 rajveer 196
              </div>
197
              <!-- /multifaceted search -->
198
 
199
              <!-- productList -->
200
              <div id="productList">
201
 
202
                <!-- browse tab content -->
203
                <div id="browseContent">
204
 
6866 amit.gupta 205
            	<!--Put filters here-->
206
				#if($crumbs && $crumbs.size()!=0)
207
		        	<h2 style="padding:6px">Current filters:</h2>
208
	                <div id="currentFilters">
209
                	#foreach ( $crumb in $crumbs.keySet() )
210
                		#if ($crumb == "Category")
211
                		#else
212
							<div id="filterTalkTime">
213
						    	<span class="sectionHeader">$crumb:</span>
214
						    #foreach ($crumblist in $crumbs.get($crumb))
215
						    	<span class="filterContent">
216
						    		<span class="filterOption">$crumblist.get(0)</span>
217
						    		<span class="filterClose"><a href="javascript:void(0)" value="$crumblist.get(1)" class="mk_filter_close">[X]</a></span>
218
								</span>
219
							#end
220
							</div>
221
						#end
222
					#end
223
					</div>
224
				#end
225
 
226
 
794 rajveer 227
 
228
                  <!-- productListTop -->
229
                  <div class="productListTop">
230
                    <div class="productListResult">
545 rajveer 231
									$beginIndex to $endIndex  of <span class="resultLimit">$totalItems</span> <span class="style1">results</span>
794 rajveer 232
                    </div>
233
                    <div class="pagination1 moveTop">
234
                      <ul class="pagination">
545 rajveer 235
										#if($currentPage == 1)
794 rajveer 236
                        <li class="pager-previous">
237
                          <span class="current prev">Prev</span>
238
                        </li>
545 rajveer 239
										#else
240
											#set($prev = $currentPage-1)
794 rajveer 241
                        <li class="pager-previous">
242
                          <a href="${url}&page=${prev}" class="current prev">Prev</a>
243
                        </li>
244
										#end
545 rajveer 245
 
246
 
247
										#set( $begin = 1 )
248
										#set( $end = 1 )
249
										#if($totalPages <= 5)
250
											#set( $begin = 1 )
251
											#set( $end = $totalPages )
252
										#else
253
											#if($currentPage <= 3)
254
												#set( $begin = 1 )
255
												#set( $end = 5 )
256
											#else
257
												#set( $begin = $currentPage - 2 )
258
    											#set( $end = $currentPage + 2 )
259
												#if( $end > $totalPages)
260
													#set( $end = $totalPages)
261
													#set( $begin = $end - 4 )
262
												#end
794 rajveer 263
											#end
264
										#end
545 rajveer 265
										#set( $pages = [$begin..$end] )
794 rajveer 266
 
545 rajveer 267
										#foreach( $pageId in $pages )
268
										#if($currentPage == $pageId)
794 rajveer 269
                        <li class="pager-item">
270
                          <span class="current">$pageId</span>
271
                        </li>
545 rajveer 272
										#else
794 rajveer 273
                        <li class="pager-item">
274
                          <a href="${url}&page=${pageId}">$pageId</a>
275
                        </li>
545 rajveer 276
										#end
277
										#end
794 rajveer 278
 
545 rajveer 279
										#if($currentPage == $totalPages)
794 rajveer 280
                        <li class="pager-next">
281
                          <span class="current next">Next</span>
282
                        </li>
545 rajveer 283
										#else
284
											#set($next = $currentPage+1)
794 rajveer 285
                        <li class="pager-next">
286
                          <a href="${url}&page=${next}" class="current next">Next</a>
287
                        </li>
545 rajveer 288
										#end
794 rajveer 289
                      </ul>
290
                    </div>
291
                    <div class="clearBoth"></div>
6976 amit.gupta 292
                    <div id="sortBy">
293
	                Sort by:
294
					#if($sortOrder == "F_50002 asc")
295
                                    <a href="${sortUrl}" id="sortByPopularity">Popularity</a> | 
296
                                    <a class="active" id="sortByPrice">Price</a>
297
 
298
	                #else
299
                                    <a class="active" id="sortByPopularity">Popularity</a> |
300
                                    <a href="${sortUrl}&sort=F_50002+asc" id="sortByPrice">Price</a>
301
					#end
794 rajveer 302
                  </div>
6976 amit.gupta 303
 
304
	                  <div class="clearBoth"></div>
305
                  </div>
794 rajveer 306
                  <!-- /productListTop -->
517 rajveer 307
 
794 rajveer 308
                  <!-- productListCenter -->
309
                  <div id="productListCenter1">
310
 
311
                    <!-- page 1 -->
312
                    <div class="page">
313
                      <ul class="deal-items category-page-items">
517 rajveer 314
								#set($snippets =  $action.getSnippets())
794 rajveer 315
 
537 rajveer 316
								#set( $isLeft = 0 )
790 vikas 317
								#foreach ( $entityid in $results )
794 rajveer 318
 
319
                        <li
320
                          #if( $isLeft == 0 )
943 vikas 321
									class="floatLeft"
794 rajveer 322
									#set($isLeft = 1)
537 rajveer 323
								#else
324
									class="floatRight"
794 rajveer 325
									#set($isLeft = 0)
326
								#end
537 rajveer 327
								>
794 rajveer 328
 
517 rajveer 329
								$snippets.get($entityid)
794 rajveer 330
                      </li>
517 rajveer 331
								#end
794 rajveer 332
                    </ul>
333
 
334
                  </div>
335
                  <div class="clearBoth"></div>
336
 
517 rajveer 337
                </div>
794 rajveer 338
                <!-- /productListCenter -->
339
 
340
                <!-- productListBottom -->
341
                <div class="productListBottom">
1472 rajveer 342
                  <div class="pagination1">
343
					                      <ul class="pagination">
344
										#if($currentPage == 1)
345
                        <li class="pager-previous">
346
                          <span class="current prev">Prev</span>
347
                        </li>
348
										#else
349
											#set($prev = $currentPage-1)
350
                        <li class="pager-previous">
351
                          <a href="${url}&page=${prev}" class="current prev">Prev</a>
352
                        </li>
353
										#end
354
 
355
 
356
										#set( $begin = 1 )
357
										#set( $end = 1 )
358
										#if($totalPages <= 5)
359
											#set( $begin = 1 )
360
											#set( $end = $totalPages )
361
										#else
362
											#if($currentPage <= 3)
363
												#set( $begin = 1 )
364
												#set( $end = 5 )
365
											#else
366
												#set( $begin = $currentPage - 2 )
367
    											#set( $end = $currentPage + 2 )
368
												#if( $end > $totalPages)
369
													#set( $end = $totalPages)
370
													#set( $begin = $end - 4 )
371
												#end
372
											#end
373
										#end
374
										#set( $pages = [$begin..$end] )
375
 
376
										#foreach( $pageId in $pages )
377
										#if($currentPage == $pageId)
378
                        <li class="pager-item">
379
                          <span class="current">$pageId</span>
380
                        </li>
381
										#else
382
                        <li class="pager-item">
383
                          <a href="${url}&page=${pageId}">$pageId</a>
384
                        </li>
385
										#end
386
										#end
387
 
388
										#if($currentPage == $totalPages)
389
                        <li class="pager-next">
390
                          <span class="current next">Next</span>
391
                        </li>
392
										#else
393
											#set($next = $currentPage+1)
394
                        <li class="pager-next">
395
                          <a href="${url}&page=${next}" class="current next">Next</a>
396
                        </li>
397
										#end
398
                      </ul>
399
 
400
				  </div>
794 rajveer 401
                  <div class="clearBoth"></div>
517 rajveer 402
                </div>
794 rajveer 403
                <!-- /productListBottom -->
404
 
405
              </div>
406
              <!-- /browse tab content -->
407
 
408
              <!-- otherTabContent -->
409
              <div id="otherTabContent">
410
 
411
                <!-- productListTop -->
412
                <div class="productListTop">
413
 
414
                  <div class="productListHeading"></div>
415
                  <div class="pagination2"></div>
416
                  <div class="productListResult"></div>
417
 
418
                  <div class="clearBoth"></div>
419
                </div>
420
                <!-- /productListTop -->
421
 
422
                <!-- productListCenter -->
423
                <div id="productListCenter2">
424
 
425
 
426
                  <div class="clearBoth"></div>
427
 
428
                </div>
429
                <!-- /productListCenter -->
430
              </div>
431
              <!-- /otherTabContent -->
432
 
517 rajveer 433
            </div>
794 rajveer 434
            <!-- /productList -->
435
 
436
            <div class="clearBoth"></div>
437
          </div>
438
 
517 rajveer 439
        </div>
537 rajveer 440
 
794 rajveer 441
      </div>
442
      <!-- /my account -->
3830 chandransh 443
 
444
		</div>
445
		<!-- Widgets -->
446
		<div class="widgets right">
447
			$action.getCartWidgetSnippet()
448
			<div id="myresearch" class="common-widget">
2868 rajveer 449
                #include("templates/myresearch.vm")
3830 chandransh 450
			</div>
451
			<div id="browsehistory" class="common-widget">
2868 rajveer 452
                #include("templates/browsehistory.vm")
2256 varun.gupt 453
			</div>
3830 chandransh 454
		</div>
455
		<!-- /Widgets -->
794 rajveer 456
 
3830 chandransh 457
	</div>
458
</div>
459
<!-- /Main -->
794 rajveer 460
 
741 rajveer 461
 
3830 chandransh 462
 #include("templates/footer.vm")
463
 
794 rajveer 464
  <!-- color by color lightbox -->
465
  <div style="display:none;">
466
    <div class="colorSelLightBoxColor">
467
      <form name="frmColorSelName" method="post" action="#">
468
        <h1>Color Selector</h1>
469
        <h2>"Please choose color of product"</h2>
741 rajveer 470
 
794 rajveer 471
        <div class="content"></div>
762 rajveer 472
 
794 rajveer 473
        <div class="bigImgButton yellow-image">
474
                <input value="Continue" type="button" class="button" onclick="selectColor();" />
475
        </div>
476
        <div class="clearBoth"></div>
477
 
478
      </form>
479
    </div>
480
  </div>
481
  <!-- /color by color lightbox -->
482
 
943 vikas 483
    #include ( "templates/commonjsfiles.vm" )
484
    <script language="javascript" type="text/javascript" src="/js/priceSlider.js"></script>
485
    <script type="text/javascript" charset="utf-8">
486
        $(function(){
1235 vikas 487
			$('ul.product-description li').truncate({addtitle: true});
943 vikas 488
        });
489
    </script>
794 rajveer 490
 
943 vikas 491
    <script type="text/javascript">
492
      minPrice        = $minPrice ;
493
      maxPrice        = $maxPrice ;
6975 amit.gupta 494
      stepPrice       = 1;
1921 vikas 495
      priceUrl		   = "$priceUrl";
6931 amit.gupta 496
      dynamicPriceRange = $action.getDynamicSearchMap();
943 vikas 497
    </script>
498
 
317 ashish 499
</body>
794 rajveer 500
</html>
6866 amit.gupta 501