| 7323 |
anupam.sin |
1 |
#set ( $minPrice = $action.getMinPrice() )
|
|
|
2 |
#set ( $maxPrice = $action.getMaxPrice() )
|
|
|
3 |
|
|
|
4 |
#set ( $results = $action.getResults() )
|
|
|
5 |
#set ( $facets = $action.getFacets() )
|
|
|
6 |
|
|
|
7 |
#set( $totalItems = $action.getTotalResults() )
|
|
|
8 |
#set( $beginIndex = $action.getBeginIndex() )
|
|
|
9 |
#set( $endIndex = $action.getBeginIndex() + 19 )
|
|
|
10 |
|
|
|
11 |
#if( $totalItems <= $endIndex )
|
|
|
12 |
#set( $endIndex = $totalItems )
|
|
|
13 |
#end
|
|
|
14 |
#set($totalPages = $action.getTotalPages())
|
|
|
15 |
#set($currentPage = $action.getCurrentPage())
|
|
|
16 |
#set($priceUrl = $action.getPriceUrl())
|
|
|
17 |
#set($sortUrl = $action.getSortUrl())
|
|
|
18 |
#set($sortOrder = $action.getSortOrder())
|
|
|
19 |
#set($query = $action.getQuery())
|
|
|
20 |
|
| 7226 |
anupam.sin |
21 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
22 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
23 |
<head>
|
|
|
24 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
| 7325 |
anupam.sin |
25 |
<link rel="stylesheet" href="/storewebsite/css/storewebsite.css" type="text/css" />
|
|
|
26 |
<link rel="stylesheet" href="/storewebsite/css/style.css" type="text/css" />
|
|
|
27 |
<link rel="stylesheet" href="/storewebsite/css/widgets.css" type="text/css" />
|
|
|
28 |
<link rel="stylesheet" href="/storewebsite/css/widget.css" type="text/css" />
|
|
|
29 |
<link rel="stylesheet" href="/storewebsite/css/common.css" type="text/css" />
|
|
|
30 |
<link rel="stylesheet" href="/storewebsite/css/jquery.ui.autocomplete.css" type="text/css" />
|
| 7323 |
anupam.sin |
31 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/jquery-1.4.2.js"></script>
|
|
|
32 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/jquery.truncate.min.js"></script>
|
|
|
33 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/jquery-ui.min.js"></script>
|
|
|
34 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/jquery.colorbox-min.js"></script>
|
|
|
35 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/jquery.validate.js"></script>
|
|
|
36 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/jquery.dataTables.min.js"></script>
|
| 7695 |
anupam.sin |
37 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/storewebsite_20130704.js"></script>
|
| 7323 |
anupam.sin |
38 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/jquery.ui.autocomplete.js"></script>
|
|
|
39 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/common.js"></script>
|
| 7226 |
anupam.sin |
40 |
</head>
|
|
|
41 |
|
| 7575 |
anupam.sin |
42 |
<body style="min-width:1000px;margin: 0;font-size:12px;line-height:18px;font-family: Arial, Arial, sans-serif">
|
| 7226 |
anupam.sin |
43 |
|
|
|
44 |
<div style="line-height:37px;height:37px;background-color:#333;color:white;">
|
| 7386 |
anupam.sin |
45 |
<span style="margin-left:20px;font-weight:bold;font-size:15px">Store : </span><span style="font-size:20px">$action.getStoreCode()</span>
|
| 19706 |
amit.gupta |
46 |
#if($action.getOCRSession())
|
| 7343 |
anupam.sin |
47 |
<a style="margin:0px 25px 0px 25px;color:white" href="/storewebsite/report">REPORTS</a>
|
| 19706 |
amit.gupta |
48 |
#end
|
| 7409 |
anupam.sin |
49 |
<a style="margin:0px 25px 0px 25px;color:white" href="/storewebsite/home">HOME</a>
|
| 7343 |
anupam.sin |
50 |
<a style="color:white;" href="/storewebsite/!doLogout">Logout</a>
|
| 7226 |
anupam.sin |
51 |
</div>
|
|
|
52 |
|
|
|
53 |
<div style="line-height:60px;height: 70px;background-color:#DBEEFF;color: #333333;margin: 0px;border-bottom:1px solid #67ABD3">
|
| 7483 |
anupam.sin |
54 |
<img style="float:left;" src="/storewebsite/images/hotspotLogoBlue.jpg">
|
| 7255 |
amit.gupta |
55 |
<form id="formSearch" method='GET' action='/storewebsite/search'>
|
|
|
56 |
<input id="query" name="q" type="text" style="height: 26px;margin: 20px 0px 20px 20px;width: 400px;border: 1px solid #999999;padding: 2px 5px 2px 10px;font-size: 17px;color: #777777;box-shadow: 1px -1px 10px -1px #999999 inset;" value="$q"></input>
|
|
|
57 |
<input type="submit" value="Search" style="height: 26px;margin: 20px 0 20px 20px;color: white;background-color: #2789c1;border: 1px solid blue;cursor: pointer;"></input>
|
| 7386 |
anupam.sin |
58 |
|
| 7255 |
amit.gupta |
59 |
</form>
|
| 7263 |
anupam.sin |
60 |
|
| 7226 |
anupam.sin |
61 |
</div>
|
|
|
62 |
|
| 7575 |
anupam.sin |
63 |
<div id="main" style="width:1000px;margin: 25px 0 0 25px;border: solid 1px #2789C1;overflow:hidden;">
|
| 7226 |
anupam.sin |
64 |
<div style="height: 30px;background-color: #2789C1;font-size: 14px;font-weight: bold;color: white;">
|
|
|
65 |
<div style="margin: 0px 10px 0px 10px;padding-top: 7px;">
|
|
|
66 |
<span style="float:left">Search Results</span>
|
|
|
67 |
</div>
|
|
|
68 |
</div>
|
| 7323 |
anupam.sin |
69 |
<div class="main-content" style='width:100%;padding-left:10px;'>
|
|
|
70 |
<div class="main-top" style='width:100%;'>
|
|
|
71 |
<div class="bread-crumbs">
|
| 7409 |
anupam.sin |
72 |
<a href="/storewebsite/home">Home</a> >
|
| 7323 |
anupam.sin |
73 |
<a href="#">Search</a>
|
|
|
74 |
</div>
|
|
|
75 |
</div>
|
|
|
76 |
<div class="main-left left blue-border" style='width:975px;float:left;'>
|
|
|
77 |
#if($results && $totalItems != 0)
|
|
|
78 |
<!-- search result -->
|
|
|
79 |
<div id="searchResult">
|
|
|
80 |
<div class="middle">
|
|
|
81 |
<div class="content" style='float:left;'>
|
|
|
82 |
|
|
|
83 |
<!-- multifaceted search -->
|
|
|
84 |
<div id="multifacetedSearch">
|
|
|
85 |
|
|
|
86 |
<!-- filter by -->
|
|
|
87 |
<div id="filterBy">
|
|
|
88 |
|
| 7226 |
anupam.sin |
89 |
#if($facets && $facets.size()!=0)
|
| 7323 |
anupam.sin |
90 |
<h2>Filter by:</h2>
|
|
|
91 |
#renderCategory($facets)
|
|
|
92 |
#foreach ( $facetLabel in $facets.keySet() )
|
|
|
93 |
#set ( $facetvalues = $facets.get($facetLabel) )
|
|
|
94 |
#if( $facetLabel == "Price" )
|
|
|
95 |
#elseif ($facetLabel == "Sub Category" )
|
|
|
96 |
#elseif( $facetLabel == "Category" )
|
|
|
97 |
#else
|
|
|
98 |
<div id="filterByTalkTime">
|
|
|
99 |
<div class="filterHeading">
|
|
|
100 |
<div class="filterArrow"> </div>
|
|
|
101 |
<div class="sectionHeader">$facetLabel</div>
|
|
|
102 |
</div>
|
|
|
103 |
|
|
|
104 |
<div class="filterOption">
|
|
|
105 |
<ul>
|
|
|
106 |
#foreach ( $facetdetail in $facetvalues)
|
|
|
107 |
#set ($zeroClass = "")
|
|
|
108 |
#set ($isActive = "")
|
|
|
109 |
#if ($facetdetail.get(1) == "0")
|
|
|
110 |
#set ($zeroClass = "zero_count")
|
|
|
111 |
#set ($isActive = 'disabled="disabled"')
|
| 7226 |
anupam.sin |
112 |
#end
|
| 7323 |
anupam.sin |
113 |
#if ($facetdetail.get(3) == "")
|
|
|
114 |
#set ($checked = "")
|
|
|
115 |
#else
|
|
|
116 |
#set ($checked = "bold")
|
|
|
117 |
#end
|
|
|
118 |
<li class="$zeroClass $checked">
|
|
|
119 |
<input type="checkbox" value="$facetdetail.get(2)" $isActive class="mk_filter" $facetdetail.get(3)/>$facetdetail.get(0)<span class="noColor">($facetdetail.get(1))</span>
|
|
|
120 |
</li>
|
|
|
121 |
#end
|
|
|
122 |
</ul>
|
|
|
123 |
</div>
|
|
|
124 |
</div>
|
|
|
125 |
|
|
|
126 |
#end
|
| 7226 |
anupam.sin |
127 |
#end
|
|
|
128 |
|
| 7323 |
anupam.sin |
129 |
#end
|
|
|
130 |
|
|
|
131 |
<div class="bottomBorder"> </div>
|
|
|
132 |
</div>
|
|
|
133 |
<!-- /filter by -->
|
|
|
134 |
|
|
|
135 |
</div>
|
|
|
136 |
<!-- /multifaceted search -->
|
|
|
137 |
|
|
|
138 |
<!-- searchResultContent -->
|
|
|
139 |
<div id="searchResultContent" style='width:735px;'>
|
|
|
140 |
|
|
|
141 |
<!--Put filters here-->
|
|
|
142 |
#if($crumbs && $crumbs.size()!=0)
|
|
|
143 |
<h2 style="padding:6px">Current filters:</h2>
|
|
|
144 |
<div id="currentFilters">
|
|
|
145 |
#if ($crumbs.containsKey("Category"))
|
|
|
146 |
<div id="filterTalkTime">
|
|
|
147 |
<span class="sectionHeader">Category:</span>
|
|
|
148 |
<span class="filterContent">
|
|
|
149 |
<span class="filterOption">$crumbs.get("Category").get(0).get(0)</span>
|
|
|
150 |
<span class="filterClose"><a href="javascript:void(0)" class="mk_filter_close" value="$crumbs.get("Category").get(0).get(1)">[X]</a></span>
|
|
|
151 |
</span>
|
|
|
152 |
#if($crumbs.containsKey("Sub Category"))
|
|
|
153 |
>
|
|
|
154 |
<span class="filterContent">
|
|
|
155 |
<span class="filterOption">$crumbs.get("Sub Category").get(0).get(0)</span>
|
|
|
156 |
<span class="filterClose"><a href="javascript:void(0)" class="mk_filter_close" value="$crumbs.get("Sub Category").get(0).get(1)">[X]</a></span>
|
|
|
157 |
</span>
|
|
|
158 |
#end
|
|
|
159 |
</div>
|
|
|
160 |
#end
|
|
|
161 |
#foreach ( $crumb in $crumbs.keySet() )
|
|
|
162 |
#if ($crumb == "Category" || $crumb == "Sub Category")
|
|
|
163 |
#else
|
|
|
164 |
<div id="filterTalkTime">
|
|
|
165 |
<span class="sectionHeader">$crumb:</span>
|
|
|
166 |
#foreach ($crumblist in $crumbs.get($crumb))
|
|
|
167 |
<span class="filterContent">
|
|
|
168 |
<span class="filterOption">$crumblist.get(0)</span>
|
|
|
169 |
<span class="filterClose"><a href="javascript:void(0)" value="$crumblist.get(1)" class="mk_filter_close">[X]</a></span>
|
|
|
170 |
</span>
|
|
|
171 |
#end
|
| 7226 |
anupam.sin |
172 |
</div>
|
| 7323 |
anupam.sin |
173 |
#end
|
|
|
174 |
#end
|
|
|
175 |
</div>
|
|
|
176 |
#end
|
|
|
177 |
|
|
|
178 |
<!-- productListTop -->
|
|
|
179 |
<div class="productListTop">
|
|
|
180 |
<div class="productListResult">
|
|
|
181 |
$beginIndex to $endIndex of <span class="resultLimit">$totalItems</span> <span class="style1">results</span>
|
|
|
182 |
</div>
|
| 7226 |
anupam.sin |
183 |
|
| 7323 |
anupam.sin |
184 |
<div class="pagination1 moveTop">
|
|
|
185 |
<ul class="pagination">
|
|
|
186 |
#if($currentPage == 1)
|
|
|
187 |
<li class="pager-previous">
|
|
|
188 |
<span class="current prev">Prev</span>
|
|
|
189 |
</li>
|
|
|
190 |
#else
|
|
|
191 |
#set($prev = $currentPage-1)
|
|
|
192 |
<li class="pager-previous">
|
|
|
193 |
<a href="search?${url}&page=${prev}" class="current prev">Prev</a>
|
|
|
194 |
</li>
|
|
|
195 |
#end
|
|
|
196 |
|
|
|
197 |
|
|
|
198 |
#set( $begin = 1 )
|
|
|
199 |
#set( $end = 1 )
|
|
|
200 |
#if($totalPages <= 5)
|
|
|
201 |
#set( $begin = 1 )
|
|
|
202 |
#set( $end = $totalPages )
|
|
|
203 |
#else
|
|
|
204 |
#if($currentPage <= 3)
|
|
|
205 |
#set( $begin = 1 )
|
|
|
206 |
#set( $end = 5 )
|
| 7226 |
anupam.sin |
207 |
#else
|
| 7323 |
anupam.sin |
208 |
#set( $begin = $currentPage - 2 )
|
|
|
209 |
#set( $end = $currentPage + 2 )
|
|
|
210 |
#if( $end > $totalPages)
|
|
|
211 |
#set( $end = $totalPages)
|
|
|
212 |
#set( $begin = $end - 4 )
|
|
|
213 |
#end
|
| 7226 |
anupam.sin |
214 |
#end
|
| 7323 |
anupam.sin |
215 |
#end
|
|
|
216 |
#set( $pages = [$begin..$end] )
|
| 7226 |
anupam.sin |
217 |
|
| 7323 |
anupam.sin |
218 |
#foreach( $pageId in $pages )
|
|
|
219 |
#if($currentPage == $pageId)
|
|
|
220 |
<li class="pager-item">
|
|
|
221 |
<span class="current">$pageId</span>
|
|
|
222 |
</li>
|
|
|
223 |
#else
|
|
|
224 |
<li class="pager-item">
|
|
|
225 |
<a href="search?${url}&page=${pageId}">$pageId</a>
|
|
|
226 |
</li>
|
|
|
227 |
#end
|
|
|
228 |
#end
|
|
|
229 |
|
|
|
230 |
#if($currentPage == $totalPages)
|
|
|
231 |
<li class="pager-next">
|
|
|
232 |
<span class="current next">Next</span>
|
|
|
233 |
</li>
|
|
|
234 |
#else
|
|
|
235 |
#set($next = $currentPage+1)
|
|
|
236 |
<li class="pager-next">
|
|
|
237 |
<a href="search?${url}&page=${next}" class="current next">Next</a>
|
|
|
238 |
</li>
|
|
|
239 |
#end
|
|
|
240 |
</ul>
|
|
|
241 |
</div>
|
|
|
242 |
<div class="clearBoth"></div>
|
|
|
243 |
|
|
|
244 |
<div id="sortBy">
|
|
|
245 |
Sort by:
|
|
|
246 |
#if($sortOrder == "F_50002 asc")
|
|
|
247 |
<a class="active" id="sortByPrice">Price</a> |
|
|
|
248 |
<a href="search?${sortUrl}&sort=score+desc" id="sortByRelevance">Relevance</a> |
|
|
|
249 |
<a href="search?${sortUrl}&sort=F_50030+desc" id="sortByPopularity">Popularity</a>
|
|
|
250 |
#elseif($sortOrder == "F_50030 desc")
|
|
|
251 |
<a href="search?${sortUrl}&sort=F_50002+asc" id="sortByPrice">Price</a> |
|
|
|
252 |
<a href="search?${sortUrl}&sort=score+desc" id="sortByRelevance">Relevance</a> |
|
|
|
253 |
<a class="active" id="sortByPopularity">Popularity</a>
|
|
|
254 |
#else
|
|
|
255 |
<a href="search?${sortUrl}&sort=F_50002+asc" id="sortByPrice">Price</a> |
|
|
|
256 |
<a class="active" id="sortByRelevance">Relevance</a> |
|
|
|
257 |
<a href="search?${sortUrl}&sort=F_50030+desc" id="sortByPopularity">Popularity</a>
|
|
|
258 |
#end
|
|
|
259 |
</div>
|
|
|
260 |
|
|
|
261 |
<div class="clearBoth"></div>
|
|
|
262 |
</div>
|
|
|
263 |
<!-- /productListTop -->
|
|
|
264 |
|
|
|
265 |
<!-- productListCenter -->
|
|
|
266 |
<div id="productListCenter">
|
|
|
267 |
|
|
|
268 |
<!-- page 1 -->
|
|
|
269 |
<div class="page">
|
|
|
270 |
<ul class="deal-items category-page-items">
|
|
|
271 |
#set($snippets = $action.getSnippets())
|
|
|
272 |
|
|
|
273 |
#set( $isLeft = 0 )
|
|
|
274 |
#foreach ( $entityid in $results )
|
|
|
275 |
|
|
|
276 |
<li
|
|
|
277 |
#if( $isLeft == 0 )
|
|
|
278 |
class="floatLeft"
|
|
|
279 |
#set($isLeft = 1)
|
|
|
280 |
#else
|
|
|
281 |
class="floatRight"
|
|
|
282 |
#set($isLeft = 0)
|
|
|
283 |
#end
|
|
|
284 |
>
|
|
|
285 |
|
|
|
286 |
$snippets.get($entityid)
|
|
|
287 |
</li>
|
|
|
288 |
#end
|
|
|
289 |
</ul>
|
|
|
290 |
|
|
|
291 |
</div>
|
|
|
292 |
<div class="clearBoth"></div>
|
|
|
293 |
|
|
|
294 |
</div>
|
|
|
295 |
<!-- /productListCenter -->
|
|
|
296 |
|
|
|
297 |
|
|
|
298 |
<!-- productListBottom -->
|
|
|
299 |
<div class="productListBottom">
|
|
|
300 |
<div class="pagination1">
|
|
|
301 |
<ul class="pagination">
|
|
|
302 |
#if($currentPage == 1)
|
|
|
303 |
<li class="pager-previous">
|
|
|
304 |
<span class="current prev">Prev</span>
|
|
|
305 |
</li>
|
|
|
306 |
#else
|
|
|
307 |
#set($prev = $currentPage-1)
|
|
|
308 |
<li class="pager-previous">
|
|
|
309 |
<a href="search?${url}&page=${prev}" class="current prev">Prev</a>
|
|
|
310 |
</li>
|
|
|
311 |
#end
|
|
|
312 |
|
|
|
313 |
|
| 7226 |
anupam.sin |
314 |
#set( $begin = 1 )
|
| 7323 |
anupam.sin |
315 |
#set( $end = 1 )
|
|
|
316 |
#if($totalPages <= 5)
|
| 7226 |
anupam.sin |
317 |
#set( $begin = 1 )
|
| 7323 |
anupam.sin |
318 |
#set( $end = $totalPages )
|
| 7226 |
anupam.sin |
319 |
#else
|
| 7323 |
anupam.sin |
320 |
#if($currentPage <= 3)
|
|
|
321 |
#set( $begin = 1 )
|
|
|
322 |
#set( $end = 5 )
|
|
|
323 |
#else
|
|
|
324 |
#set( $begin = $currentPage - 2 )
|
|
|
325 |
#set( $end = $currentPage + 2 )
|
|
|
326 |
#if( $end > $totalPages)
|
|
|
327 |
#set( $end = $totalPages)
|
|
|
328 |
#set( $begin = $end - 4 )
|
|
|
329 |
#end
|
| 7226 |
anupam.sin |
330 |
#end
|
|
|
331 |
#end
|
| 7323 |
anupam.sin |
332 |
#set( $pages = [$begin..$end] )
|
| 7226 |
anupam.sin |
333 |
|
| 7323 |
anupam.sin |
334 |
#foreach( $pageId in $pages )
|
| 7226 |
anupam.sin |
335 |
#if($currentPage == $pageId)
|
| 7323 |
anupam.sin |
336 |
<li class="pager-next">
|
|
|
337 |
<span class="current">$pageId</span>
|
|
|
338 |
</li>
|
| 7226 |
anupam.sin |
339 |
#else
|
| 7323 |
anupam.sin |
340 |
<li class="pager-next">
|
|
|
341 |
<a href="search?${url}&page=${pageId}">$pageId</a>
|
|
|
342 |
</li>
|
| 7226 |
anupam.sin |
343 |
#end
|
| 7323 |
anupam.sin |
344 |
#end
|
| 7226 |
anupam.sin |
345 |
|
| 7323 |
anupam.sin |
346 |
#if($currentPage == $totalPages)
|
|
|
347 |
<li class="pager-next">
|
|
|
348 |
<span class="current next">Next</span>
|
|
|
349 |
</li>
|
|
|
350 |
#else
|
|
|
351 |
#set($next = $currentPage+1)
|
|
|
352 |
<li class="pager-next">
|
|
|
353 |
<a href="search?${url}&page=${next}" class="current next">Next</a>
|
|
|
354 |
</li>
|
|
|
355 |
#end
|
|
|
356 |
</ul>
|
|
|
357 |
</div>
|
|
|
358 |
<div class="clearBoth"></div>
|
|
|
359 |
</div>
|
|
|
360 |
<!-- /productListBottom -->
|
| 7226 |
anupam.sin |
361 |
|
| 7323 |
anupam.sin |
362 |
</div>
|
|
|
363 |
<!-- /searchResultContent -->
|
| 7226 |
anupam.sin |
364 |
|
| 7323 |
anupam.sin |
365 |
<div class="clearBoth"></div>
|
|
|
366 |
</div>
|
|
|
367 |
</div>
|
| 7226 |
anupam.sin |
368 |
|
| 7323 |
anupam.sin |
369 |
</div>
|
| 7226 |
anupam.sin |
370 |
|
| 7323 |
anupam.sin |
371 |
<!-- /search result -->
|
|
|
372 |
#else
|
|
|
373 |
|
|
|
374 |
<div id="resultFound">
|
|
|
375 |
<div id="resultFoundNo" style="display:block; margin-left:20px;">
|
|
|
376 |
<span class="redColor">$totalItems results found for $action.getQuery()</span>
|
|
|
377 |
</div>
|
|
|
378 |
</div>
|
|
|
379 |
|
|
|
380 |
<div id="productDetail">
|
|
|
381 |
|
|
|
382 |
|
|
|
383 |
<div class="middle" style="min-height:800px">
|
|
|
384 |
<div class="content">
|
|
|
385 |
Search Tips
|
|
|
386 |
<ul style="padding-left:22px;">
|
|
|
387 |
<li>Make sure all words are spelled correctly.</li>
|
|
|
388 |
<li>Try searching in a specific category.</li>
|
|
|
389 |
<li>Try different keywords.</li>
|
|
|
390 |
</ul>
|
|
|
391 |
</div>
|
|
|
392 |
</div>
|
|
|
393 |
|
|
|
394 |
</div>
|
|
|
395 |
<!-- /Product detail -->
|
|
|
396 |
#end
|
| 7226 |
anupam.sin |
397 |
</div>
|
| 7323 |
anupam.sin |
398 |
<!-- Widgets -->
|
| 7226 |
anupam.sin |
399 |
</div>
|
| 7323 |
anupam.sin |
400 |
</div>
|
|
|
401 |
|
|
|
402 |
|
|
|
403 |
<script type="text/javascript" charset="utf-8">
|
|
|
404 |
$(function(){
|
|
|
405 |
$('#query').val("$query");
|
|
|
406 |
$('div.productDesp li').truncate({addtitle: true});
|
|
|
407 |
});
|
|
|
408 |
</script>
|
| 7226 |
anupam.sin |
409 |
</body>
|
| 7323 |
anupam.sin |
410 |
</html>
|
|
|
411 |
|
| 7263 |
anupam.sin |
412 |
|
| 7323 |
anupam.sin |
413 |
#macro ( renderCategory $facets )
|
|
|
414 |
#set ($facetLabel = "Category")
|
|
|
415 |
#set ( $facetvalues = $facets.get($facetLabel) )
|
|
|
416 |
<div id="filterByTalkTime">
|
|
|
417 |
<div class="filterHeading">
|
|
|
418 |
<div class="filterArrow"> </div>
|
|
|
419 |
<div class="sectionHeader">$facetLabel</div>
|
|
|
420 |
</div>
|
|
|
421 |
<div class="filterOption">
|
|
|
422 |
<ul>
|
|
|
423 |
#foreach ( $facetdetail in $facetvalues )
|
|
|
424 |
#if ($facetdetail.get(3) != "")
|
|
|
425 |
<li>
|
|
|
426 |
<a href="javascript:void(0)" style="font-weight:bold" class="mk_bold mk_filter mk_category" value="$facetdetail.get(2)">$facetdetail.get(0)</a> <span class="noColor">($facetdetail.get(1))</span>
|
|
|
427 |
#set ($subcategories = $facets.get("Sub Category"))
|
|
|
428 |
#set ($childCategories = $action.getChildren($facetdetail.get(0)))
|
|
|
429 |
<ul class="sub-category">
|
|
|
430 |
#if ($childCategories.size() > 1)
|
|
|
431 |
#foreach ( $subcategory in $subcategories )
|
|
|
432 |
#if($childCategories.contains($subcategory.get(0)))
|
|
|
433 |
<li>
|
|
|
434 |
#if ($subcategory.get(3) != "")
|
|
|
435 |
<a style="font-weight:bold" class="mk_bold mk_subcategory" value="$subcategory.get(2)">$subcategory.get(0)</a> <span class="noColor">($subcategory.get(1))</span>
|
|
|
436 |
#else
|
|
|
437 |
#set($zeroresults = 'class = "mk_subcategory zero_count')
|
|
|
438 |
#if ($subcategory.get(1) !="0")
|
|
|
439 |
#set($zeroresults = 'class="mk_filter mk_subcategory" href="javascript:void(0)"')
|
|
|
440 |
#end
|
|
|
441 |
<a $zeroresults value="$subcategory.get(2)">$subcategory.get(0)</a> <span class="noColor">($subcategory.get(1))</span>
|
|
|
442 |
#end
|
|
|
443 |
|
|
|
444 |
</li>
|
|
|
445 |
#end
|
|
|
446 |
#end
|
|
|
447 |
#end
|
|
|
448 |
</ul>
|
|
|
449 |
</li>
|
|
|
450 |
#else
|
|
|
451 |
#set($zeroresults = 'class="mk_category zero_count"')
|
|
|
452 |
#if ($facetdetail.get(1) !="0")
|
|
|
453 |
#set($zeroresults = 'class="mk_filter mk_category" href="javascript:void(0)"')
|
|
|
454 |
#end
|
|
|
455 |
<li>
|
|
|
456 |
<a $zeroresults value="$facetdetail.get(2)">$facetdetail.get(0)</a> <span class="noColor">($facetdetail.get(1))</span>
|
|
|
457 |
</li>
|
|
|
458 |
#end
|
|
|
459 |
#end
|
|
|
460 |
</ul>
|
|
|
461 |
</div>
|
|
|
462 |
</div>
|
|
|
463 |
|
|
|
464 |
#end
|