Subversion Repositories SmartDukaan

Rev

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