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