| 20424 |
kshitij.so |
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
3 |
<head>
|
|
|
4 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
5 |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
|
|
|
6 |
<script type="text/javascript" src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
|
|
|
7 |
#include ( "templates/commoncssfiles.vm" )
|
|
|
8 |
#include ( "templates/commonjsfiles.vm" )
|
|
|
9 |
</head>
|
|
|
10 |
|
|
|
11 |
<body>
|
|
|
12 |
#include("templates/header.vm")
|
|
|
13 |
|
|
|
14 |
<div class="seachContent_mainContainer">
|
|
|
15 |
|
|
|
16 |
#set($ssr = $action.getSsr())
|
|
|
17 |
#set($facets = $ssr.getFacets())
|
|
|
18 |
#set( $totalItems = $action.getTotalResults() )
|
|
|
19 |
#set( $beginIndex = $action.getBeginIndex() )
|
|
|
20 |
#set( $endIndex = $action.getBeginIndex() + 23 )
|
|
|
21 |
|
|
|
22 |
#if( $totalItems <= $endIndex )
|
|
|
23 |
#set( $endIndex = $totalItems )
|
|
|
24 |
#end
|
|
|
25 |
#set($totalPages = $action.getTotalPages())
|
|
|
26 |
#set($currentPage = $action.getCurrentPage())
|
|
|
27 |
#set($crumbs = $action.getCrumbs())
|
|
|
28 |
|
|
|
29 |
<!--Filter Starts Here-->
|
|
|
30 |
<div class="filterContainer">
|
|
|
31 |
<h4 class="filterMaintitle">FILTERS</h4>
|
|
|
32 |
#foreach($facet in $facets)
|
|
|
33 |
#if(!($facet.getDisplayText()=="Availability"))
|
|
|
34 |
<ul class="filterList_ul" style="max-height: 400px; overflow-y:auto;">
|
|
|
35 |
<li class="filterList_secondTitle"><strong>$facet.getDisplayText()</strong></li>
|
|
|
36 |
#set($selected = $crumbs.get($facet.getDisplayText()))
|
|
|
37 |
#set($items = [])
|
|
|
38 |
#foreach($sel in $selected)
|
|
|
39 |
#set($result = $items.add($sel.get(0)))
|
|
|
40 |
#end
|
|
|
41 |
#foreach($filterOption in $facet.getFilterOptions())
|
|
|
42 |
<a href="" class="filterList_secondTitle_liColor">
|
|
|
43 |
<li><input #if($filterOption.getSelected()) checked="checked" #end value="&fq=$action.getEncodedCompontent("$filterOption.getKey():$filterOption.getValue()")" type="checkbox" class="filterList_checkBox" />$filterOption.getValue()</li>
|
|
|
44 |
</a>
|
|
|
45 |
#end
|
|
|
46 |
</ul>
|
|
|
47 |
#end
|
|
|
48 |
#end
|
|
|
49 |
|
|
|
50 |
</div>
|
|
|
51 |
<!--Filter Ends Here-->
|
|
|
52 |
|
|
|
53 |
<!--Search Results Starts Here-->
|
|
|
54 |
<div class="searchResults_container">
|
|
|
55 |
|
|
|
56 |
<div class="searchResults_titleCtainer">
|
|
|
57 |
<div class="searchResults_titleCtainer">
|
|
|
58 |
#if($crumbs && $crumbs.size()!=0)
|
|
|
59 |
<h3 style="margin-left:20px;padding:0px;margin-bottom:10px;">Current filters:</h3>
|
|
|
60 |
<div id="currentFilters">
|
|
|
61 |
#foreach ( $crumb in $crumbs.keySet() )
|
|
|
62 |
<div id="filterTalkTime">
|
|
|
63 |
#if ($crumb.length()!=0)
|
|
|
64 |
<span class="sectionHeader">$crumb:</span>
|
|
|
65 |
#end
|
|
|
66 |
#foreach ($crumblist in $crumbs.get($crumb))
|
|
|
67 |
<span class="filterContent">
|
|
|
68 |
<span class="filterOption">$crumblist.get(0)</span>
|
|
|
69 |
<span class="filterClose"><a href="javascript:void(0)" value="$crumblist.get(1)" class="mk_filter_close">[X]</a></span>
|
|
|
70 |
</span>
|
|
|
71 |
#end
|
|
|
72 |
</div>
|
|
|
73 |
#end
|
|
|
74 |
</div>
|
|
|
75 |
#end
|
|
|
76 |
<h4 class="searchResults_title">Showing results for $action.getQ()</h4>
|
|
|
77 |
<p style="text-align:center; margin:0; padding-bottom:20px; font-size:12px;">
|
| 20427 |
kshitij.so |
78 |
<a href="">Home</a> >
|
| 20424 |
kshitij.so |
79 |
<a href="#">Search</a></p>
|
|
|
80 |
</div>
|
|
|
81 |
|
|
|
82 |
#foreach($product in $ssr.getResults())
|
| 20427 |
kshitij.so |
83 |
<a href="/$product.getUrl()"><div class="searchResults_productContainer">
|
| 20424 |
kshitij.so |
84 |
<ul class="searchResults_productul">
|
| 20704 |
kshitij.so |
85 |
<li class="searchResults_liImage"><img src="$product.getDefaultImageUrl()" /></li>
|
| 20424 |
kshitij.so |
86 |
<li><h4 class="searchResults_liproductName">$product.getTitle()</h4></li>
|
|
|
87 |
<li><p title="$product.getDescription()" class="searchResults_lisubName ellipsis">$product.getDescription()</p></li>
|
|
|
88 |
</ul>
|
|
|
89 |
</div></a>
|
|
|
90 |
#end
|
|
|
91 |
|
|
|
92 |
<div class="searchResults_titleCtainer">
|
|
|
93 |
<h4 class="searchResults_title">Page $currentPage of $totalPages</h4>
|
|
|
94 |
<div class="productListBottom">
|
|
|
95 |
<div class="pagination1">
|
|
|
96 |
<ul class="pagination" style="padding-left:0px;">
|
|
|
97 |
#if($currentPage == 1)
|
|
|
98 |
<li class="pager-previous">
|
|
|
99 |
<span class="current prev">Prev</span>
|
|
|
100 |
</li>
|
|
|
101 |
#else
|
|
|
102 |
#set($prev = $currentPage-1)
|
|
|
103 |
<li class="pager-previous">
|
|
|
104 |
<a href="${url}&page=${prev}" class="current prev">Prev</a>
|
|
|
105 |
</li>
|
|
|
106 |
#end
|
|
|
107 |
|
|
|
108 |
|
|
|
109 |
#set( $begin = 1 )
|
|
|
110 |
#set( $end = 1 )
|
|
|
111 |
#if($totalPages <= 5)
|
|
|
112 |
#set( $begin = 1 )
|
|
|
113 |
#set( $end = $totalPages )
|
|
|
114 |
#else
|
|
|
115 |
#if($currentPage <= 3)
|
|
|
116 |
#set( $begin = 1 )
|
|
|
117 |
#set( $end = 5 )
|
|
|
118 |
#else
|
|
|
119 |
#set( $begin = $currentPage - 2 )
|
|
|
120 |
#set( $end = $currentPage + 2 )
|
|
|
121 |
#if( $end > $totalPages)
|
|
|
122 |
#set( $end = $totalPages)
|
|
|
123 |
#set( $begin = $end - 4 )
|
|
|
124 |
#end
|
|
|
125 |
#end
|
|
|
126 |
#end
|
|
|
127 |
#set( $pages = [$begin..$end] )
|
|
|
128 |
|
|
|
129 |
#foreach( $pageId in $pages )
|
|
|
130 |
#if($currentPage == $pageId)
|
|
|
131 |
<li class="pager-item">
|
|
|
132 |
<span class="current">$pageId</span>
|
|
|
133 |
</li>
|
|
|
134 |
#else
|
|
|
135 |
<li class="pager-item">
|
|
|
136 |
<a href="${url}&page=${pageId}">$pageId</a>
|
|
|
137 |
</li>
|
|
|
138 |
#end
|
|
|
139 |
#end
|
|
|
140 |
|
|
|
141 |
#if($currentPage == $totalPages)
|
|
|
142 |
<li class="pager-next">
|
|
|
143 |
<span class="current next">Next</span>
|
|
|
144 |
</li>
|
|
|
145 |
#else
|
|
|
146 |
#set($next = $currentPage+1)
|
|
|
147 |
<li class="pager-next">
|
|
|
148 |
<a href="${url}&page=${next}" class="current next">Next</a>
|
|
|
149 |
</li>
|
|
|
150 |
#end
|
|
|
151 |
</ul>
|
|
|
152 |
|
|
|
153 |
</div>
|
|
|
154 |
<div class="clearBoth"></div>
|
|
|
155 |
</div>
|
|
|
156 |
<!-- /productListBottom -->
|
|
|
157 |
|
|
|
158 |
</div>
|
|
|
159 |
|
|
|
160 |
|
|
|
161 |
|
|
|
162 |
</div>
|
|
|
163 |
</div>
|
|
|
164 |
<!--Search Results Ends Here-->
|
|
|
165 |
|
|
|
166 |
|
|
|
167 |
|
|
|
168 |
|
|
|
169 |
</div>
|
|
|
170 |
|
|
|
171 |
#include("templates/footer.vm")
|
|
|
172 |
</body>
|
|
|
173 |
</html>
|