Subversion Repositories SmartDukaan

Rev

Rev 2755 | Rev 2868 | 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
 
42
	$action.getHeaderSnippet()
43
    <!-- Wrapper start -->
44
    <div id="main">
517 rajveer 45
		$action.getMainMenuSnippet()
46
		$action.getSearchBarSnippet()
47
 
794 rajveer 48
      <!-- wrapper-->
49
      <div id="wrapper">
537 rajveer 50
 
794 rajveer 51
        <!-- Product detail -->
537 rajveer 52
        <div id="productDetail">
794 rajveer 53
 
537 rajveer 54
          <div class="top">
55
            <div class="left">
56
              <div class="right"> &nbsp; </div>
57
            </div>
58
          </div>
794 rajveer 59
 
537 rajveer 60
          <div class="middle">
61
            <div class="content">
794 rajveer 62
 
63
              <div class="blockLeft">
64
 
65
                <!-- breadcrumb -->
799 vikas 66
                <div id="breadcrumb"><a href="/">Home</a>&nbsp;&gt; <a href="#" class="deselect">$action.getCategoryName()</a></div>
794 rajveer 67
                <!-- /breadcrumb -->
68
                <h1 id="productHeading2" value="$action.getId()">$action.getCategoryName()</h1>
69
 
70
              </div>
537 rajveer 71
              <div class="clearBoth"></div>
794 rajveer 72
 
537 rajveer 73
            </div>
74
          </div>
794 rajveer 75
 
537 rajveer 76
          <div class="bottom">
77
            <div class="left">
78
              <div class="right"> &nbsp; </div>
79
            </div>
80
          </div>
794 rajveer 81
 
537 rajveer 82
        </div>
83
        <!-- /Product detail -->
84
 
794 rajveer 85
        <!-- banner -->
86
        <!--
87
              <div id="productBanner">
88
                  <a href="#"><img src="/images/product-banner.jpg" width="736" alt="" /></a>
89
              </div>
545 rajveer 90
			-->
794 rajveer 91
        <!-- /banner -->
517 rajveer 92
 
794 rajveer 93
        <!-- tab buttons -->
94
        <ul id="tabButton" class="menu">
95
          <li class="tabButton1" id="catTab1">
883 rajveer 96
            <a class="showBrowse" href="#" title="" id="catTab1-first">
97
              <span>
98
                <span>
99
                  Browse
100
                </span>
101
              </span>
102
            </a>
794 rajveer 103
          </li>
104
          <li class="tabButton2" id="catTab2">
883 rajveer 105
            <a class="category-tabs" href="#" title="Best Sellers" name="best-sellers" id="catTab2-$action.getId()">
106
              <span>
107
                <span>
108
                  Best Sellers
109
                </span>
110
              </span>
111
            </a>
794 rajveer 112
          </li>
113
          <li class="tabButton2" id="catTab3">
883 rajveer 114
            <a class="category-tabs" href="#" title="Latest Arrivals" name="latest-arrivals" id="catTab3-$action.getId()">
115
              <span>
116
                <span>
117
                  Latest Arrivals
118
                </span>
119
              </span>
120
            </a>
794 rajveer 121
          </li>
122
          <li class="tabButton2" id="catTab4">
883 rajveer 123
            <a class="category-tabs" href="#" title="Best Deals" name="best-deals" id="catTab4-$action.getId()">
124
              <span>
125
                <span>
126
                  Best Deals
127
                </span>
128
              </span>
129
            </a>
794 rajveer 130
          </li>
131
        </ul>
132
        <!-- /tab buttons -->
133
 
134
        <!-- my account -->
517 rajveer 135
        <div id="productCat">
794 rajveer 136
          <div class="top">
137
            <div class="left">&nbsp;</div>
138
            <div class="right">&nbsp;</div>
139
            <div class="clearBoth"></div>
140
          </div>
141
 
142
          <div class="middle">
143
            <div class="content">
144
 
145
              <!-- multifaceted search -->
146
              <div id="multifacetedSearch">
147
 
620 rajveer 148
					#set ( $crumbs = $action.getCrumbs() )
149
					#if($crumbs && $crumbs.size()!=0)
794 rajveer 150
                <h2>Current filters:</h2>
620 rajveer 151
 
794 rajveer 152
                <div id="currentFilters">
153
 
154
                  #foreach ( $crumb in $crumbs )
155
                  <div id="filterTalkTime">
156
                    <span class="sectionHeader">$crumb.get(0):</span>
157
                    <span class="filterContent">
158
                      <span class="filterOption">$crumb.get(1)</span>
1849 vikas 159
                      <span class="filterClose"><a href="$crumb.get(2)">[X]</a></span>
794 rajveer 160
                    </span>
161
                  </div>
162
    					#end
163
                </div>
164
					#end
165
 
166
 
167
 
168
                <!-- filter by -->
169
                <div id="filterBy">
170
 
171
                    	#if($facets && $facets.size()!=0)
172
                  <h2>Filter by:</h2>
173
 
517 rajveer 174
                    	#foreach ( $facetLabel in $facets.keySet() )
175
                    		#set ( $facetvalues = $facets.get($facetLabel) )
176
                    		#if( $facetLabel == "Price" )
794 rajveer 177
                  <!-- price -->
178
                  <div id="filterByPrice">
179
                    <div class="filterHeading">
180
                      <div class="filterArrow">&nbsp;</div>
181
                      <div class="sectionHeader">Price <span class="noBold">(Rs.)</span></div>
182
                    </div>
183
 
184
                    <div id="priceSlider">
185
                      <div id="priceRange1"></div>
186
                      <div id="priceRange2"></div>
187
                      <div class="clearBoth"></div>
188
 
189
 
190
                      <div id="slider-range"></div>
191
                      <div id="diff">&nbsp;</div>
192
                    </div>
193
                  </div>
194
                  <!-- /price -->
517 rajveer 195
                    		#else
794 rajveer 196
                  <div id="filterByTalkTime">
197
                    <div class="filterHeading">
198
                      <div class="filterArrow">&nbsp;</div>
199
                      <div class="sectionHeader">$facetLabel</div>
200
                    </div>
201
 
202
                    <div class="filterOption">
203
                      <ul>
517 rajveer 204
                    				#foreach ( $facetdetail in $facetvalues )
794 rajveer 205
                        <li>
1004 vikas 206
                          <a href="$facetdetail.get(2)" id="ttMedium">$facetdetail.get(0)</a> <span class="noColor">($facetdetail.get(1))</span>
794 rajveer 207
                        </li>
208
                        #end
209
                      </ul>
210
                    </div>
211
                  </div>
517 rajveer 212
                    		#end
213
                    	#end
794 rajveer 214
 
517 rajveer 215
                    	#end
794 rajveer 216
                  <div class="bottomBorder">&nbsp;</div>
217
                </div>
218
                <!-- /filter by -->
517 rajveer 219
 
794 rajveer 220
              </div>
221
              <!-- /multifaceted search -->
222
 
223
              <!-- productList -->
224
              <div id="productList">
225
 
226
                <!-- browse tab content -->
227
                <div id="browseContent">
228
 
229
 
230
 
231
                  <!-- productListTop -->
232
                  <div class="productListTop">
233
                    <div class="productListResult">
545 rajveer 234
									$beginIndex to $endIndex  of <span class="resultLimit">$totalItems</span> <span class="style1">results</span>
794 rajveer 235
                    </div>
236
                    <div class="pagination1 moveTop">
237
                      <ul class="pagination">
545 rajveer 238
										#if($currentPage == 1)
794 rajveer 239
                        <li class="pager-previous">
240
                          <span class="current prev">Prev</span>
241
                        </li>
545 rajveer 242
										#else
243
											#set($prev = $currentPage-1)
794 rajveer 244
                        <li class="pager-previous">
245
                          <a href="${url}&page=${prev}" class="current prev">Prev</a>
246
                        </li>
247
										#end
545 rajveer 248
 
249
 
250
										#set( $begin = 1 )
251
										#set( $end = 1 )
252
										#if($totalPages <= 5)
253
											#set( $begin = 1 )
254
											#set( $end = $totalPages )
255
										#else
256
											#if($currentPage <= 3)
257
												#set( $begin = 1 )
258
												#set( $end = 5 )
259
											#else
260
												#set( $begin = $currentPage - 2 )
261
    											#set( $end = $currentPage + 2 )
262
												#if( $end > $totalPages)
263
													#set( $end = $totalPages)
264
													#set( $begin = $end - 4 )
265
												#end
794 rajveer 266
											#end
267
										#end
545 rajveer 268
										#set( $pages = [$begin..$end] )
794 rajveer 269
 
545 rajveer 270
										#foreach( $pageId in $pages )
271
										#if($currentPage == $pageId)
794 rajveer 272
                        <li class="pager-item">
273
                          <span class="current">$pageId</span>
274
                        </li>
545 rajveer 275
										#else
794 rajveer 276
                        <li class="pager-item">
277
                          <a href="${url}&page=${pageId}">$pageId</a>
278
                        </li>
545 rajveer 279
										#end
280
										#end
794 rajveer 281
 
545 rajveer 282
										#if($currentPage == $totalPages)
794 rajveer 283
                        <li class="pager-next">
284
                          <span class="current next">Next</span>
285
                        </li>
545 rajveer 286
										#else
287
											#set($next = $currentPage+1)
794 rajveer 288
                        <li class="pager-next">
289
                          <a href="${url}&page=${next}" class="current next">Next</a>
290
                        </li>
545 rajveer 291
										#end
794 rajveer 292
                      </ul>
293
                    </div>
294
                    <div class="clearBoth"></div>
295
                  </div>
296
                  <!-- /productListTop -->
517 rajveer 297
 
794 rajveer 298
                  <!-- productListCenter -->
299
                  <div id="productListCenter1">
300
 
301
                    <!-- page 1 -->
302
                    <div class="page">
303
                      <ul class="deal-items category-page-items">
517 rajveer 304
								#set($snippets =  $action.getSnippets())
794 rajveer 305
 
537 rajveer 306
								#set( $isLeft = 0 )
790 vikas 307
								#foreach ( $entityid in $results )
794 rajveer 308
 
309
                        <li
310
                          #if( $isLeft == 0 )
943 vikas 311
									class="floatLeft"
794 rajveer 312
									#set($isLeft = 1)
537 rajveer 313
								#else
314
									class="floatRight"
794 rajveer 315
									#set($isLeft = 0)
316
								#end
537 rajveer 317
								>
794 rajveer 318
 
517 rajveer 319
								$snippets.get($entityid)
794 rajveer 320
                      </li>
517 rajveer 321
								#end
794 rajveer 322
                    </ul>
323
 
324
                  </div>
325
                  <div class="clearBoth"></div>
326
 
517 rajveer 327
                </div>
794 rajveer 328
                <!-- /productListCenter -->
329
 
330
                <!-- productListBottom -->
331
                <div class="productListBottom">
1472 rajveer 332
                  <div class="pagination1">
333
					                      <ul class="pagination">
334
										#if($currentPage == 1)
335
                        <li class="pager-previous">
336
                          <span class="current prev">Prev</span>
337
                        </li>
338
										#else
339
											#set($prev = $currentPage-1)
340
                        <li class="pager-previous">
341
                          <a href="${url}&page=${prev}" class="current prev">Prev</a>
342
                        </li>
343
										#end
344
 
345
 
346
										#set( $begin = 1 )
347
										#set( $end = 1 )
348
										#if($totalPages <= 5)
349
											#set( $begin = 1 )
350
											#set( $end = $totalPages )
351
										#else
352
											#if($currentPage <= 3)
353
												#set( $begin = 1 )
354
												#set( $end = 5 )
355
											#else
356
												#set( $begin = $currentPage - 2 )
357
    											#set( $end = $currentPage + 2 )
358
												#if( $end > $totalPages)
359
													#set( $end = $totalPages)
360
													#set( $begin = $end - 4 )
361
												#end
362
											#end
363
										#end
364
										#set( $pages = [$begin..$end] )
365
 
366
										#foreach( $pageId in $pages )
367
										#if($currentPage == $pageId)
368
                        <li class="pager-item">
369
                          <span class="current">$pageId</span>
370
                        </li>
371
										#else
372
                        <li class="pager-item">
373
                          <a href="${url}&page=${pageId}">$pageId</a>
374
                        </li>
375
										#end
376
										#end
377
 
378
										#if($currentPage == $totalPages)
379
                        <li class="pager-next">
380
                          <span class="current next">Next</span>
381
                        </li>
382
										#else
383
											#set($next = $currentPage+1)
384
                        <li class="pager-next">
385
                          <a href="${url}&page=${next}" class="current next">Next</a>
386
                        </li>
387
										#end
388
                      </ul>
389
 
390
				  </div>
794 rajveer 391
                  <div class="clearBoth"></div>
517 rajveer 392
                </div>
794 rajveer 393
                <!-- /productListBottom -->
394
 
395
              </div>
396
              <!-- /browse tab content -->
397
 
398
              <!-- otherTabContent -->
399
              <div id="otherTabContent">
400
 
401
                <!-- productListTop -->
402
                <div class="productListTop">
403
 
404
                  <div class="productListHeading"></div>
405
                  <div class="pagination2"></div>
406
                  <div class="productListResult"></div>
407
 
408
                  <div class="clearBoth"></div>
409
                </div>
410
                <!-- /productListTop -->
411
 
412
                <!-- productListCenter -->
413
                <div id="productListCenter2">
414
 
415
 
416
                  <div class="clearBoth"></div>
417
 
418
                </div>
419
                <!-- /productListCenter -->
420
 
421
                <!-- productListBottom -->
1477 rajveer 422
                <!--
423
                              <div class="productListBottom">
424
                                  <div class="pagination2"></div>
425
                                  <div class="clearBoth"></div>
426
                              </div>
427
							-->
428
                <!-- /productListBottom -->
794 rajveer 429
 
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 class="bottom">
442
          <div class="left">
443
            <div class="right">&nbsp;</div>
444
          </div>
517 rajveer 445
        </div>
794 rajveer 446
      </div>
447
      <!-- /my account -->
448
 
449
 
450
    </div>
451
    <!-- /wrapper-->
452
 
453
    <!-- sidebar-->
454
    <div id="sidebar">
455
      <!-- sidebar banner -->
456
      <!--
517 rajveer 457
            <div id="sidebarBanner">
537 rajveer 458
            	<a href="#"><img src="/images/sidebar-banner.jpg" width="240" height="100" alt="" /></a>
517 rajveer 459
            </div>
545 rajveer 460
			-->
794 rajveer 461
      <!-- /sidebar banner -->
517 rajveer 462
			$action.getCustomerServiceSnippet()
1372 vikas 463
			<div id="myresearch" class="lightbox">
1934 vikas 464
                $action.getMyResearchSnippet()
465
            </div>
466
            <div id="browsehistory" class="lightbox">
467
                $action.getBrowseHistorySnippet()
468
            </div>
2256 varun.gupt 469
			<div id="paymentoptions" class="lightbox">
470
				#include("templates/paymentmodes.vm")
471
			</div>
794 rajveer 472
      <div style="clear:both;padding:2px;">&nbsp;</div>
473
    </div>
474
    <!-- /sidebar-->
475
 
476
    <div class="clearBoth"></div>
477
  </div><!-- /main -->
478
 
517 rajveer 479
	 $action.getFooterSnippet()
741 rajveer 480
 
794 rajveer 481
  <!-- color by color lightbox -->
482
  <div style="display:none;">
483
    <div class="colorSelLightBoxColor">
484
      <form name="frmColorSelName" method="post" action="#">
485
        <h1>Color Selector</h1>
486
        <h2>"Please choose color of product"</h2>
741 rajveer 487
 
794 rajveer 488
        <div class="content"></div>
762 rajveer 489
 
794 rajveer 490
        <div class="bigImgButton yellow-image">
491
                <input value="Continue" type="button" class="button" onclick="selectColor();" />
492
        </div>
493
        <div class="clearBoth"></div>
494
 
495
      </form>
496
    </div>
497
  </div>
498
  <!-- /color by color lightbox -->
499
 
943 vikas 500
    #include ( "templates/commonjsfiles.vm" )
501
    <script language="javascript" type="text/javascript" src="/js/priceSlider.js"></script>
502
    <script type="text/javascript" charset="utf-8">
503
        $(function(){
1235 vikas 504
			$('ul.product-description li').truncate({addtitle: true});
943 vikas 505
        });
506
    </script>
794 rajveer 507
 
943 vikas 508
    <script type="text/javascript">
509
      minPrice        = $minPrice ;
510
      maxPrice        = $maxPrice ;
511
      stepPrice       = 10;
1921 vikas 512
      priceUrl		   = "$priceUrl";
943 vikas 513
    </script>
514
 
317 ashish 515
</body>
794 rajveer 516
</html>