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