Subversion Repositories SmartDukaan

Rev

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