Subversion Repositories SmartDukaan

Rev

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