Subversion Repositories SmartDukaan

Rev

Rev 1004 | Rev 1232 | 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
 
794 rajveer 31
    #include ( "templates/commoncssfiles.vm" )
883 rajveer 32
    <link rel="stylesheet" href="/css/colorbox.css" type="text/css" media="all" />
33
    <link rel="stylesheet" href="/css/lightbox_inline.css" type="text/css" media="all" />
34
    <link rel="stylesheet" href="/css/jquery-ui-1.8.6.custom.css" type="text/css" media="all" />
741 rajveer 35
 
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">
335
                  <div class="pagination1"></div>
336
                  <div class="clearBoth"></div>
517 rajveer 337
                </div>
794 rajveer 338
                <!-- /productListBottom -->
339
 
340
              </div>
341
              <!-- /browse tab content -->
342
 
343
              <!-- otherTabContent -->
344
              <div id="otherTabContent">
345
 
346
                <!-- productListTop -->
347
                <div class="productListTop">
348
 
349
                  <div class="productListHeading"></div>
350
                  <div class="pagination2"></div>
351
                  <div class="productListResult"></div>
352
 
353
                  <div class="clearBoth"></div>
354
                </div>
355
                <!-- /productListTop -->
356
 
357
                <!-- productListCenter -->
358
                <div id="productListCenter2">
359
 
360
 
361
                  <div class="clearBoth"></div>
362
 
363
                </div>
364
                <!-- /productListCenter -->
365
 
366
                <!-- productListBottom -->
367
                <!--
368
                              <div class="productListBottom">
369
                                  <div class="pagination2"></div>
370
                                  <div class="clearBoth"></div>
371
                              </div>
372
							-->
373
                <!-- /productListBottom -->
374
 
375
              </div>
376
              <!-- /otherTabContent -->
377
 
517 rajveer 378
            </div>
794 rajveer 379
            <!-- /productList -->
380
 
381
            <div class="clearBoth"></div>
382
          </div>
383
 
517 rajveer 384
        </div>
537 rajveer 385
 
794 rajveer 386
        <div class="bottom">
387
          <div class="left">
388
            <div class="right">&nbsp;</div>
389
          </div>
517 rajveer 390
        </div>
794 rajveer 391
      </div>
392
      <!-- /my account -->
393
 
394
 
395
    </div>
396
    <!-- /wrapper-->
397
 
398
    <!-- sidebar-->
399
    <div id="sidebar">
400
      <!-- sidebar banner -->
401
      <!--
517 rajveer 402
            <div id="sidebarBanner">
537 rajveer 403
            	<a href="#"><img src="/images/sidebar-banner.jpg" width="240" height="100" alt="" /></a>
517 rajveer 404
            </div>
545 rajveer 405
			-->
794 rajveer 406
      <!-- /sidebar banner -->
517 rajveer 407
			$action.getCustomerServiceSnippet()
408
			$action.getMyResearchSnippet()
568 rajveer 409
			$action.getBrowseHistorySnippet()
794 rajveer 410
      <div style="clear:both;padding:2px;">&nbsp;</div>
411
    </div>
412
    <!-- /sidebar-->
413
 
414
    <div class="clearBoth"></div>
415
  </div><!-- /main -->
416
 
517 rajveer 417
	 $action.getFooterSnippet()
741 rajveer 418
 
794 rajveer 419
  <!-- color by color lightbox -->
420
  <div style="display:none;">
421
    <div class="colorSelLightBoxColor">
422
      <form name="frmColorSelName" method="post" action="#">
423
        <h1>Color Selector</h1>
424
        <h2>"Please choose color of product"</h2>
741 rajveer 425
 
794 rajveer 426
        <div class="content"></div>
762 rajveer 427
 
794 rajveer 428
        <div class="bigImgButton yellow-image">
429
                <input value="Continue" type="button" class="button" onclick="selectColor();" />
430
        </div>
431
        <div class="clearBoth"></div>
432
 
433
      </form>
434
    </div>
435
  </div>
436
  <!-- /color by color lightbox -->
437
 
943 vikas 438
    #include ( "templates/commonjsfiles.vm" )
439
    <!--<script language="javascript" type="text/javascript" src="/js/jquery-ui-1.8.6.custom.min.js"></script>-->
440
    <script language="javascript" type="text/javascript" src="/js/priceSlider.js"></script>
441
    <script language="javascript" type="text/javascript" src="/js/jquery.colorbox-min.js"></script>
442
    <script type="text/javascript" charset="utf-8">
443
        $(function(){
444
        	$('ul.product-description li').textOverflow();
445
        });
446
    </script>
794 rajveer 447
 
943 vikas 448
    <script type="text/javascript">
449
      minPrice        = $minPrice ;
450
      maxPrice        = $maxPrice ;
451
      stepPrice       = 10;
452
      priceUrl		   = "$priceUrl";
453
    </script>
454
 
317 ashish 455
</body>
794 rajveer 456
</html>