Subversion Repositories SmartDukaan

Rev

Rev 20424 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
#if($crumbs && $crumbs.size()!=0)
58
<h3 style="margin-left:20px;padding:0px;margin-bottom:10px;">Current filters:</h3>
59
<div id="currentFilters">
60
#foreach ( $crumb in $crumbs.keySet() )
61
	#if ($crumb == "Category")
62
	#else
63
		<div id="filterTalkTime">
64
		#if ($crumb.length()!=0)
65
	    	<span class="sectionHeader">$crumb:</span>
66
	    #end
67
	    #foreach ($crumblist in $crumbs.get($crumb))
68
	    	<span class="filterContent">
69
	    		<span class="filterOption">$crumblist.get(0)</span>
70
	    		<span class="filterClose"><a href="javascript:void(0)" value="$crumblist.get(1)" class="mk_filter_close">[X]</a></span>
71
			</span>
72
		#end
73
		</div>
74
	#end
75
#end
76
</div>
77
#end
78
 
79
<h4 class="searchResults_title">Showing results for $ssr.getLabel()</h4>
80
<p style="text-align:center; margin:0; padding-bottom:20px; font-size:12px;">
20427 kshitij.so 81
	<a href="">Home</a>&nbsp;&gt;&nbsp; 
20424 kshitij.so 82
	<a href="#">$ssr.getLabel()</a></p>
83
</div>
84
 
85
#foreach($product in $ssr.getResults())
20427 kshitij.so 86
<a href="/$product.getUrl()"><div class="searchResults_productContainer">
20424 kshitij.so 87
<ul class="searchResults_productul">
88
<li class="searchResults_liImage"><img src="$product.getImageUrl()" /></li>
89
<li><h4 class="searchResults_liproductName">$product.getTitle()</h4></li>
90
<li><p title="$product.getDescription()" class="searchResults_lisubName ellipsis">$product.getDescription()</p></li>
91
</ul>
92
</div></a>
93
#end
94
 
95
<div class="searchResults_titleCtainer">
96
<h4 class="searchResults_title">Page $currentPage of $totalPages</h4>
97
<div class="productListBottom">
98
                  <div class="pagination1">
99
					                      <ul class="pagination" style="padding-left:0px;">
100
										#if($currentPage == 1)
101
                        <li class="pager-previous">
102
                          <span class="current prev">Prev</span>
103
                        </li>
104
										#else
105
											#set($prev = $currentPage-1)
106
                        <li class="pager-previous">
107
                          <a href="${url}&page=${prev}" class="current prev">Prev</a>
108
                        </li>
109
										#end
110
 
111
 
112
										#set( $begin = 1 )
113
										#set( $end = 1 )
114
										#if($totalPages <= 5)
115
											#set( $begin = 1 )
116
											#set( $end = $totalPages )
117
										#else
118
											#if($currentPage <= 3)
119
												#set( $begin = 1 )
120
												#set( $end = 5 )
121
											#else
122
												#set( $begin = $currentPage - 2 )
123
    											#set( $end = $currentPage + 2 )
124
												#if( $end > $totalPages)
125
													#set( $end = $totalPages)
126
													#set( $begin = $end - 4 )
127
												#end
128
											#end
129
										#end
130
										#set( $pages = [$begin..$end] )
131
 
132
										#foreach( $pageId in $pages )
133
										#if($currentPage == $pageId)
134
                        <li class="pager-item">
135
                          <span class="current">$pageId</span>
136
                        </li>
137
										#else
138
                        <li class="pager-item">
139
                          <a href="${url}&page=${pageId}">$pageId</a>
140
                        </li>
141
										#end
142
										#end
143
 
144
										#if($currentPage == $totalPages)
145
                        <li class="pager-next">
146
                          <span class="current next">Next</span>
147
                        </li>
148
										#else
149
											#set($next = $currentPage+1)
150
                        <li class="pager-next">
151
                          <a href="${url}&page=${next}" class="current next">Next</a>
152
                        </li>
153
										#end
154
                      </ul>
155
 
156
				  </div>
157
                  <div class="clearBoth"></div>
158
                </div>
159
                <!-- /productListBottom -->
160
 
161
</div>
162
 
163
 
164
 
165
</div>
166
<!--Search Results Ends Here-->
167
 
168
 
169
 
170
 
171
</div>
172
 
173
#include("templates/footer.vm")
174
</body>
175
</html>