| 317 |
ashish |
1 |
<!DOCTYPE html PUBLIC
|
|
|
2 |
"-//W3C//DTD XHTML 1.1 Transitional//EN"
|
|
|
3 |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
4 |
|
|
|
5 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
|
6 |
<head>
|
|
|
7 |
<title>Search Results</title>
|
|
|
8 |
<style type="text/css">
|
|
|
9 |
.labels { width:300px; font-family:Trebuchet MS,Verdana,Arial,sans-serif; font-size:8pt; float:left;}
|
|
|
10 |
.facets { width:300px; font-family:Trebuchet MS,Verdana,Arial,sans-serif; font-size:10pt; float:left;}
|
|
|
11 |
.result { width:400px; font-family:Trebuchet MS,Verdana,Arial,sans-serif; font-size:8pt; float:left;}
|
|
|
12 |
.result_img { border:0; width:65px; height:65px }
|
|
|
13 |
.result_text { display:block; font-weight:bold; }
|
|
|
14 |
</style>
|
| 354 |
rajveer |
15 |
|
|
|
16 |
|
|
|
17 |
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
|
|
|
18 |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
|
|
|
19 |
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
|
|
|
20 |
|
|
|
21 |
<style type="text/css">
|
|
|
22 |
#demo-frame > div.demo { padding: 10px !important; };
|
|
|
23 |
</style>
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
<meta charset="UTF-8" />
|
|
|
27 |
|
|
|
28 |
|
| 317 |
ashish |
29 |
</head>
|
|
|
30 |
|
| 354 |
rajveer |
31 |
#set ( $minPrice = $action.getMinPrice() )
|
|
|
32 |
#set ( $maxPrice = $action.getMaxPrice() )
|
|
|
33 |
|
| 317 |
ashish |
34 |
#set ( $results = $action.getResults() )
|
|
|
35 |
#set ( $facets = $action.getFacets() )
|
|
|
36 |
|
|
|
37 |
<body>
|
|
|
38 |
<h2>Search Results</h2>
|
|
|
39 |
<h4>Count - $results.size()</h4>
|
|
|
40 |
<h4>
|
| 354 |
rajveer |
41 |
|
|
|
42 |
<div class="demo">
|
|
|
43 |
<p>
|
|
|
44 |
<label for="amount">Price range:</label>
|
|
|
45 |
<input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;" />
|
|
|
46 |
<label for="status">Event Status:</label>
|
|
|
47 |
<input type="text" id="status" style="border:0; color:#f6931f; font-weight:bold;" />
|
|
|
48 |
</p>
|
|
|
49 |
<div id="slider-range" style="width:250px"></div>
|
|
|
50 |
|
|
|
51 |
</div><!-- End demo -->
|
|
|
52 |
|
| 317 |
ashish |
53 |
#set ( $crumbs = $action.getCrumbs() )
|
|
|
54 |
#foreach ( $crumb in $crumbs )
|
| 354 |
rajveer |
55 |
<a href="/Website/search?$crumb.get(1)">$crumb.get(0)</a>
|
| 317 |
ashish |
56 |
#if( $velocityHasNext )
|
|
|
57 |
>
|
|
|
58 |
#end
|
|
|
59 |
#end
|
|
|
60 |
</h4>
|
|
|
61 |
<div class="facets">
|
|
|
62 |
<ul>
|
|
|
63 |
#foreach ( $facetLabel in $facets.keySet() )
|
|
|
64 |
<li><span style="font-weight:bold;">$facetLabel<span>
|
|
|
65 |
#set ( $facetvalues = $facets.get($facetLabel) )
|
|
|
66 |
<ul>
|
|
|
67 |
#foreach ( $facetdetail in $facetvalues )
|
| 354 |
rajveer |
68 |
<li>
|
| 317 |
ashish |
69 |
<span style="font-weight:normal;">
|
| 354 |
rajveer |
70 |
<a href="/Website/search?$facetdetail.get(2)">
|
| 317 |
ashish |
71 |
$facetdetail.get(0) ($facetdetail.get(1))
|
|
|
72 |
</a>
|
|
|
73 |
</span>
|
|
|
74 |
</li>
|
|
|
75 |
#end
|
|
|
76 |
</ul>
|
|
|
77 |
</li>
|
|
|
78 |
#end
|
|
|
79 |
</ul>
|
|
|
80 |
</div>
|
|
|
81 |
|
|
|
82 |
<div class="result">
|
|
|
83 |
#foreach ( $entityid in $results.keySet() )
|
|
|
84 |
#set ( $values = $results.get($entityid) )
|
|
|
85 |
#set ( $entityname = $values.get(0) )
|
|
|
86 |
<div>
|
|
|
87 |
<div class="result_text"><a href="/shop2020/entity/$entityid">$entityname</a></div>
|
|
|
88 |
<div>
|
|
|
89 |
<span>
|
| 354 |
rajveer |
90 |
<a href="/Website/entity/$entityid"><img class="result_img" src="/shop2020/images/${entityid}.jpg"></a>
|
| 317 |
ashish |
91 |
</span>
|
|
|
92 |
<!--
|
|
|
93 |
<span>
|
|
|
94 |
<ul>
|
|
|
95 |
<li>One</li>
|
|
|
96 |
<li>Two</li>
|
|
|
97 |
</ul>
|
|
|
98 |
</span>
|
|
|
99 |
-->
|
|
|
100 |
</div>
|
|
|
101 |
<hr/>
|
|
|
102 |
</div>
|
|
|
103 |
#end
|
|
|
104 |
</div>
|
| 354 |
rajveer |
105 |
|
|
|
106 |
<script type="text/javascript">
|
|
|
107 |
$(function() {
|
|
|
108 |
$("#slider-range").slider({
|
|
|
109 |
range: true,
|
|
|
110 |
<!-- min: 0,
|
|
|
111 |
<!-- max: 500,
|
|
|
112 |
<!-- values: [75, 300],
|
|
|
113 |
start: function(event, ui) {
|
|
|
114 |
$("#status").val("Start Event");
|
|
|
115 |
},
|
|
|
116 |
stop: function(event, ui) {
|
|
|
117 |
$("#status").val("Stop Event");
|
|
|
118 |
location.href = location.href + "&fq=F_50002:[" + ui.values[0] + " TO " + ui.values[1] + "]";
|
|
|
119 |
<!-- location.href = location.href + "&facet.query=[" + ui.values[0] + " TO " + ui.values[1] + "]";
|
|
|
120 |
},
|
|
|
121 |
slide: function(event, ui) {
|
|
|
122 |
$("#amount").val('$' + ui.values[0] + ' - $' + ui.values[1]);
|
|
|
123 |
}
|
|
|
124 |
});
|
|
|
125 |
|
|
|
126 |
|
|
|
127 |
$("#slider-range").slider( "option", "min", $action.getMinPrice() );
|
|
|
128 |
$("#slider-range").slider( "option", "max", $maxPrice );
|
|
|
129 |
$("#slider-range").slider( "option", "values", [$minPrice,$maxPrice] );
|
|
|
130 |
$("#amount").val('$' + $("#slider-range").slider("values", 0) + ' - $' + $("#slider-range").slider("values", 1));
|
|
|
131 |
|
|
|
132 |
});
|
|
|
133 |
</script>
|
|
|
134 |
|
|
|
135 |
|
| 317 |
ashish |
136 |
</body>
|
|
|
137 |
</html>
|