Subversion Repositories SmartDukaan

Rev

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