Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
545 rajveer 1
#set($totalItems  = $action.getTotalItems())
2
#set($beginIndex  = $action.getBeginIndex())
3
 
4
#set($endIndex  = $action.getBeginIndex() + 19 )
5
#if($totalItems <= $endIndex)
6
#set($endIndex = $totalItems)
7
#end
8
#set($totalPages = $action.getTotalPages())
9
#set($items  = $action.getItems())
10
#set($currentPage  = $action.getCurrentPage())
11
 
550 rajveer 12
#set($itemCount = $action.userinfo.getTotalItems()) 
545 rajveer 13
 
14
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
15
<html xmlns="http://www.w3.org/1999/xhtml">
16
<head>
17
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
18
<!-- Prevent MS Office toolbar from changing layout -->
19
<meta http-equiv="imagetoolbar" content="false">
20
<meta name="MSSmartTagsPreventParsing" content="true">
21
<title>Best Sellers</title>
22
 
568 rajveer 23
#include ( "templates/commoncssfiles.vm" )
741 rajveer 24
#include ( "templates/commonjsfiles.vm" )
568 rajveer 25
 
545 rajveer 26
 
637 rajveer 27
<link rel="stylesheet" href="http://jqueryui.com/themes/base/jquery.ui.all.css"> 
741 rajveer 28
<script src="http://jqueryui.com/ui/jquery.ui.core.js"></script> 
29
<script src="http://jqueryui.com/ui/jquery.ui.widget.js"></script> 
30
<script src="http://jqueryui.com/ui/jquery.ui.mouse.js"></script> 
31
<script src="http://jqueryui.com/ui/jquery.ui.button.js"></script> 
32
<script src="http://jqueryui.com/ui/jquery.ui.draggable.js"></script> 
33
<script src="http://jqueryui.com/ui/jquery.ui.position.js"></script> 
34
<script src="http://jqueryui.com/ui/jquery.ui.resizable.js"></script> 
35
<script src="http://jqueryui.com/ui/jquery.ui.dialog.js"></script> 
36
<script src="http://jqueryui.com/ui/jquery.effects.core.js"></script> 
545 rajveer 37
 
637 rajveer 38
 
545 rajveer 39
</head>
40
<body>
41
 
42
    <noscript>
43
 	   <p id="noScript">Please allow <em>Javascript</em> in order to function this website correctly!</p>
44
    </noscript>
45
 
637 rajveer 46
<div id="dialog-form" title="Color Selector"> 
47
	<p class="validateTips">Please choose the color</p> 
48
 	<form> 
49
	<fieldset> 
50
		<label for="color">Color</label> 
51
		<select class="colorselector" id="colorselector" name="colorselector">
52
		</select>
53
	</fieldset> 
54
	</form> 
55
</div>
56
 
57
 
58
	$action.getHeaderSnippet()			
545 rajveer 59
    <!-- main -->
637 rajveer 60
	<div id="main">
61
    	$action.getMainMenuSnippet()
62
    	$action.getSearchBarSnippet()
63
 
545 rajveer 64
      <!-- wrapper-->
65
      <div id="wrapper">
66
 
67
	        <!-- Product detail -->
68
        <div id="productDetail">
69
 
70
          <div class="top">
71
            <div class="left">
72
              <div class="right"> &nbsp; </div>
73
            </div>
74
          </div>
75
 
76
          <div class="middle">
77
            <div class="content">
78
 
79
                <div class="blockLeft">
80
 
81
                  <!-- breadcrumb -->
82
                  <div id="breadcrumb"><a href="#">Home</a>&nbsp;&gt; <a href="#" class="deselect">Best Deals</a></div>
83
                  <!-- /breadcrumb -->                  
84
                  <h1 id="productHeading2">Best Deals</h1>
85
 
86
                </div>
87
              <div class="clearBoth"></div>
88
 
89
            </div>
90
          </div>
91
 
92
          <div class="bottom">
93
            <div class="left">
94
              <div class="right"> &nbsp; </div>
95
            </div>
96
          </div>
97
 
98
        </div>
99
        <!-- /Product detail -->
100
 
101
 
102
 
103
        <!-- Best Sellers -->
627 rajveer 104
		<div id="productListing">
105
 
106
        <div class="top">
107
			<div class="left">
108
				<div class="right">&nbsp;</div>
109
			</div>
110
        </div>
111
 
545 rajveer 112
            <div class="middle">
113
                <div class="content">
637 rajveer 114
                    #if($items && $items.size()!=0)
568 rajveer 115
                             <!-- productListTop -->
545 rajveer 116
                            <div class="productListTop">
627 rajveer 117
        						<div class="pagination2">
545 rajveer 118
									<div class="pagination">
119
										#if($currentPage == 1)
120
											<span class="current prev">Prev</span>
121
										#else
122
											#set($prev = $currentPage-1)
123
											<a href="./${prev}" class="current prev">Prev</a>
124
										#end	
125
 
126
 
127
										#set( $begin = 1 )
128
										#set( $end = 1 )
129
										#if($totalPages <= 5)
130
											#set( $begin = 1 )
131
											#set( $end = $totalPages )
132
										#else
133
											#if($currentPage <= 3)
134
												#set( $begin = 1 )
135
												#set( $end = 5 )
136
											#else
137
												#set( $begin = $currentPage - 2 )
138
    											#set( $end = $currentPage + 2 )
139
												#if( $end > $totalPages)
140
													#set( $end = $totalPages)
141
													#set( $begin = $end - 4 )
142
												#end
143
											#end	
144
										#end	
145
										#set( $pages = [$begin..$end] )
146
 
147
										#foreach( $pageId in $pages )
148
										#if($currentPage == $pageId)
149
										<span class="current">$pageId</span>
150
										#else
151
										<a href="./$pageId">$pageId</a>	
152
										#end
153
										#end
154
 
155
										#if($currentPage == $totalPages)
156
											<span class="current next">Next</span>
157
										#else
158
											#set($next = $currentPage+1)
159
											<a href="./${next}" class="current next">Next</a>
160
										#end
161
									</div>
162
								</div>
163
 
164
                                <div class="productListResult"> $beginIndex to $endIndex of <span class="resultLimit"> $totalItems </span>best deals</div>                                
165
                                <div class="clearBoth"></div>
166
                            </div>
167
                            <!-- /productListTop -->
168
 
169
                            <!-- productListCenter -->
568 rajveer 170
                            <div id="productListingContent">
545 rajveer 171
 
568 rajveer 172
 
545 rajveer 173
                            #set($items =  $action.getItems())
174
                            #set( $isLeft = 0 )
741 rajveer 175
                            #foreach ( $entity in $items )
545 rajveer 176
                            <div
177
                            #if( $isLeft == 0 ) 
178
                            	 class="floatLeft"
179
                            	#set($isLeft = 1)	
180
                            #else
181
                            	class="floatRight"
182
                            	#set($isLeft = 0)	
183
                            #end		
184
                            >
741 rajveer 185
                            $entity
545 rajveer 186
                            </div>
187
                            #end
568 rajveer 188
 
545 rajveer 189
 
190
 
627 rajveer 191
							<div class="clearBoth"></div>
545 rajveer 192
 
193
                            </div>
194
                            <!-- /productListCenter -->
195
 
196
                            <!-- productListBottom -->
197
                            <div class="productListBottom">
627 rajveer 198
                                <div class="pagination2">
199
									<div class="pagination">
200
                                		#if($currentPage == 1)
201
											<span class="current prev">Prev</span>
202
										#else
203
											#set($prev = $currentPage-1)
204
											<a href="./${prev}" class="current prev">Prev</a>
205
										#end	
206
 
207
 
208
										#set( $begin = 1 )
209
										#set( $end = 1 )
210
										#if($totalPages <= 5)
211
											#set( $begin = 1 )
212
											#set( $end = $totalPages )
213
										#else
214
											#if($currentPage <= 3)
215
												#set( $begin = 1 )
216
												#set( $end = 5 )
217
											#else
218
												#set( $begin = $currentPage - 2 )
219
    											#set( $end = $currentPage + 2 )
220
												#if( $end > $totalPages)
221
													#set( $end = $totalPages)
222
													#set( $begin = $end - 4 )
223
												#end
224
											#end	
225
										#end	
226
										#set( $pages = [$begin..$end] )
227
 
228
										#foreach( $pageId in $pages )
229
										#if($currentPage == $pageId)
230
										<span class="current">$pageId</span>
231
										#else
232
										<a href="./$pageId">$pageId</a>	
233
										#end
234
										#end
235
 
236
										#if($currentPage == $totalPages)
237
											<span class="current next">Next</span>
238
										#else
239
											#set($next = $currentPage+1)
240
											<a href="./${next}" class="current next">Next</a>
241
										#end
242
									</div>
243
								</div>	
545 rajveer 244
                            </div>
245
                        	<!-- /productListBottom -->
637 rajveer 246
                      #end      
545 rajveer 247
 
248
                   <div class="clearBoth"></div>
249
                </div>
250
 
251
            </div>
252
 
253
            <div class="bottom">
254
                <div class="left">
255
                    <div class="right">&nbsp;</div>
256
                </div>
257
            </div>
258
        </div>
259
        <!-- /Best Sellers -->
260
 
261
      </div>
262
      <!-- /wrapper-->
263
 
264
        <!-- sidebar-->
265
        <div id="sidebar">
741 rajveer 266
        $action.getCustomerServiceSnippet()
637 rajveer 267
		$action.getMyResearchSnippet()
268
		$action.getBrowseHistorySnippet()
545 rajveer 269
        </div>
270
        <!-- /sidebar-->
271
        <div class="clearBoth"></div>
272
 
273
    </div>
274
    <!-- /main -->
275
 
276
    <!-- footer -->
741 rajveer 277
    $action.getFooterSnippet()
545 rajveer 278
    <!-- /footer -->
279
 
280
</body>
281
</html>
282