Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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