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