Subversion Repositories SmartDukaan

Rev

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