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
 
27
</head>
28
<body>
29
 
30
    <noscript>
31
 	   <p id="noScript">Please allow <em>Javascript</em> in order to function this website correctly!</p>
32
    </noscript>
33
 
637 rajveer 34
	$action.getHeaderSnippet()			
545 rajveer 35
    <!-- main -->
637 rajveer 36
	<div id="main">
37
    	$action.getMainMenuSnippet()
38
    	$action.getSearchBarSnippet()
39
 
545 rajveer 40
      <!-- wrapper-->
41
      <div id="wrapper">
42
 
43
	        <!-- Product detail -->
44
        <div id="productDetail">
45
 
46
          <div class="top">
47
            <div class="left">
48
              <div class="right"> &nbsp; </div>
49
            </div>
50
          </div>
51
 
52
          <div class="middle">
53
            <div class="content">
54
 
55
                <div class="blockLeft">
56
 
57
                  <!-- breadcrumb -->
58
                  <div id="breadcrumb"><a href="#">Home</a>&nbsp;&gt; <a href="#" class="deselect">Best Deals</a></div>
59
                  <!-- /breadcrumb -->                  
60
                  <h1 id="productHeading2">Best Deals</h1>
61
 
62
                </div>
63
              <div class="clearBoth"></div>
64
 
65
            </div>
66
          </div>
67
 
68
          <div class="bottom">
69
            <div class="left">
70
              <div class="right"> &nbsp; </div>
71
            </div>
72
          </div>
73
 
74
        </div>
75
        <!-- /Product detail -->
76
 
77
 
78
 
79
        <!-- Best Sellers -->
627 rajveer 80
		<div id="productListing">
81
 
82
        <div class="top">
83
			<div class="left">
84
				<div class="right">&nbsp;</div>
85
			</div>
86
        </div>
87
 
545 rajveer 88
            <div class="middle">
89
                <div class="content">
637 rajveer 90
                    #if($items && $items.size()!=0)
568 rajveer 91
                             <!-- productListTop -->
545 rajveer 92
                            <div class="productListTop">
627 rajveer 93
        						<div class="pagination2">
545 rajveer 94
									<div class="pagination">
95
										#if($currentPage == 1)
96
											<span class="current prev">Prev</span>
97
										#else
98
											#set($prev = $currentPage-1)
99
											<a href="./${prev}" class="current prev">Prev</a>
100
										#end	
101
 
102
 
103
										#set( $begin = 1 )
104
										#set( $end = 1 )
105
										#if($totalPages <= 5)
106
											#set( $begin = 1 )
107
											#set( $end = $totalPages )
108
										#else
109
											#if($currentPage <= 3)
110
												#set( $begin = 1 )
111
												#set( $end = 5 )
112
											#else
113
												#set( $begin = $currentPage - 2 )
114
    											#set( $end = $currentPage + 2 )
115
												#if( $end > $totalPages)
116
													#set( $end = $totalPages)
117
													#set( $begin = $end - 4 )
118
												#end
119
											#end	
120
										#end	
121
										#set( $pages = [$begin..$end] )
122
 
123
										#foreach( $pageId in $pages )
124
										#if($currentPage == $pageId)
125
										<span class="current">$pageId</span>
126
										#else
127
										<a href="./$pageId">$pageId</a>	
128
										#end
129
										#end
130
 
131
										#if($currentPage == $totalPages)
132
											<span class="current next">Next</span>
133
										#else
134
											#set($next = $currentPage+1)
135
											<a href="./${next}" class="current next">Next</a>
136
										#end
137
									</div>
138
								</div>
139
 
140
                                <div class="productListResult"> $beginIndex to $endIndex of <span class="resultLimit"> $totalItems </span>best deals</div>                                
141
                                <div class="clearBoth"></div>
142
                            </div>
143
                            <!-- /productListTop -->
144
 
145
                            <!-- productListCenter -->
568 rajveer 146
                            <div id="productListingContent">
545 rajveer 147
 
568 rajveer 148
 
545 rajveer 149
                            #set($items =  $action.getItems())
150
                            #set( $isLeft = 0 )
741 rajveer 151
                            #foreach ( $entity in $items )
545 rajveer 152
                            <div
153
                            #if( $isLeft == 0 ) 
154
                            	 class="floatLeft"
155
                            	#set($isLeft = 1)	
156
                            #else
157
                            	class="floatRight"
158
                            	#set($isLeft = 0)	
159
                            #end		
160
                            >
741 rajveer 161
                            $entity
545 rajveer 162
                            </div>
163
                            #end
568 rajveer 164
 
545 rajveer 165
 
166
 
627 rajveer 167
							<div class="clearBoth"></div>
545 rajveer 168
 
169
                            </div>
170
                            <!-- /productListCenter -->
171
 
172
                            <!-- productListBottom -->
173
                            <div class="productListBottom">
627 rajveer 174
                                <div class="pagination2">
175
									<div class="pagination">
176
                                		#if($currentPage == 1)
177
											<span class="current prev">Prev</span>
178
										#else
179
											#set($prev = $currentPage-1)
180
											<a href="./${prev}" class="current prev">Prev</a>
181
										#end	
182
 
183
 
184
										#set( $begin = 1 )
185
										#set( $end = 1 )
186
										#if($totalPages <= 5)
187
											#set( $begin = 1 )
188
											#set( $end = $totalPages )
189
										#else
190
											#if($currentPage <= 3)
191
												#set( $begin = 1 )
192
												#set( $end = 5 )
193
											#else
194
												#set( $begin = $currentPage - 2 )
195
    											#set( $end = $currentPage + 2 )
196
												#if( $end > $totalPages)
197
													#set( $end = $totalPages)
198
													#set( $begin = $end - 4 )
199
												#end
200
											#end	
201
										#end	
202
										#set( $pages = [$begin..$end] )
203
 
204
										#foreach( $pageId in $pages )
205
										#if($currentPage == $pageId)
206
										<span class="current">$pageId</span>
207
										#else
208
										<a href="./$pageId">$pageId</a>	
209
										#end
210
										#end
211
 
212
										#if($currentPage == $totalPages)
213
											<span class="current next">Next</span>
214
										#else
215
											#set($next = $currentPage+1)
216
											<a href="./${next}" class="current next">Next</a>
217
										#end
218
									</div>
219
								</div>	
545 rajveer 220
                            </div>
221
                        	<!-- /productListBottom -->
637 rajveer 222
                      #end      
545 rajveer 223
 
224
                   <div class="clearBoth"></div>
225
                </div>
226
 
227
            </div>
228
 
229
            <div class="bottom">
230
                <div class="left">
231
                    <div class="right">&nbsp;</div>
232
                </div>
233
            </div>
234
        </div>
235
        <!-- /Best Sellers -->
236
 
237
      </div>
238
      <!-- /wrapper-->
239
 
240
        <!-- sidebar-->
241
        <div id="sidebar">
741 rajveer 242
        $action.getCustomerServiceSnippet()
637 rajveer 243
		$action.getMyResearchSnippet()
244
		$action.getBrowseHistorySnippet()
545 rajveer 245
        </div>
246
        <!-- /sidebar-->
247
        <div class="clearBoth"></div>
248
 
249
    </div>
250
    <!-- /main -->
251
 
252
    <!-- footer -->
741 rajveer 253
    $action.getFooterSnippet()
545 rajveer 254
    <!-- /footer -->
255
 
762 rajveer 256
 
257
<!-- color by color lightbox -->
258
<div style="display:none;">
259
	<div class="colorSelLightBoxColor">
260
		<form name="frmColorSelName" method="post" action="#">
261
			<h1>Color Selector</h1>
262
			<h2>"Please choose color of product"</h2>
263
 
264
			<div class="content"></div>
265
 
266
			<div class="bigImgButton">
267
				<div class="left"><div class="right"><div class="center">
268
					<input value="Continue" type="button" class="button" onclick="selectColor();" />
269
				</div></div></div>
270
			</div>
271
			<div class="clearBoth"></div>
272
 
273
		</form>
274
	</div>
275
</div>
276
<!-- /color by color lightbox -->
277
 
545 rajveer 278
</body>
279
</html>
280