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