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
 
12
 
13
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
14
<html xmlns="http://www.w3.org/1999/xhtml">
15
<head>
16
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
17
<!-- Prevent MS Office toolbar from changing layout -->
18
<meta http-equiv="imagetoolbar" content="false">
19
<meta name="MSSmartTagsPreventParsing" content="true">
20
<title>Best Sellers</title>
21
 
568 rajveer 22
#include ( "templates/commoncssfiles.vm" )
741 rajveer 23
#include ( "templates/commonjsfiles.vm" )
568 rajveer 24
 
637 rajveer 25
<link rel="stylesheet" href="http://jqueryui.com/themes/base/jquery.ui.all.css"> 
26
	<script src="http://jqueryui.com/ui/jquery.ui.core.js"></script> 
27
	<script src="http://jqueryui.com/ui/jquery.ui.widget.js"></script> 
28
	<script src="http://jqueryui.com/ui/jquery.ui.mouse.js"></script> 
29
	<script src="http://jqueryui.com/ui/jquery.ui.button.js"></script> 
30
	<script src="http://jqueryui.com/ui/jquery.ui.draggable.js"></script> 
31
	<script src="http://jqueryui.com/ui/jquery.ui.position.js"></script> 
32
	<script src="http://jqueryui.com/ui/jquery.ui.resizable.js"></script> 
33
	<script src="http://jqueryui.com/ui/jquery.ui.dialog.js"></script> 
34
	<script src="http://jqueryui.com/ui/jquery.effects.core.js"></script> 
545 rajveer 35
 
637 rajveer 36
 
545 rajveer 37
</head>
38
<body>
39
 
40
    <noscript>
41
 	   <p id="noScript">Please allow <em>Javascript</em> in order to function this website correctly!</p>
42
    </noscript>
637 rajveer 43
 
44
<div id="dialog-form" title="Color Selector"> 
45
	<p class="validateTips">Please choose the color</p> 
46
 	<form> 
47
	<fieldset> 
48
		<label for="color">Color</label> 
49
		<select class="colorselector" id="colorselector" name="colorselector">
50
		</select>
51
	</fieldset> 
52
	</form> 
53
</div> 
54
 
55
 
56
	$action.getHeaderSnippet()			
545 rajveer 57
    <!-- main -->
637 rajveer 58
	<div id="main">
59
    	$action.getMainMenuSnippet()
60
    	$action.getSearchBarSnippet()
61
 
545 rajveer 62
      <!-- wrapper-->
63
      <div id="wrapper">
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 -->
80
                  <div id="breadcrumb"><a href="#">Home</a>&nbsp;&gt; <a href="#" class="deselect">Latest Arrivals</a></div>
81
                  <!-- /breadcrumb -->                  
82
                  <h1 id="productHeading2">Latest Arrivals</h1>
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
 
99
 
100
 
101
        <!-- Best Sellers -->
650 rajveer 102
        <div id="productListing">
103
			<div class="top">
104
				<div class="left">
105
					<div class="right">&nbsp;</div>
106
				</div>
107
			</div>
545 rajveer 108
 
650 rajveer 109
			<div class="middle">
545 rajveer 110
                <div class="content">
637 rajveer 111
                   #if($items && $items.size()!=0) 
545 rajveer 112
	                         <!-- productListTop -->
113
                            <div class="productListTop">
114
								<div class="pagination2">
115
									<div class="pagination">
116
										#if($currentPage == 1)
117
											<span class="current prev">Prev</span>
118
										#else
119
											#set($prev = $currentPage-1)
120
											<a href="./${prev}" class="current prev">Prev</a>
121
										#end	
122
 
123
 
124
										#set( $begin = 1 )
125
										#set( $end = 1 )
126
										#if($totalPages <= 5)
127
											#set( $begin = 1 )
128
											#set( $end = $totalPages )
129
										#else
130
											#if($currentPage <= 3)
131
												#set( $begin = 1 )
132
												#set( $end = 5 )
133
											#else
134
												#set( $begin = $currentPage - 2 )
135
    											#set( $end = $currentPage + 2 )
136
												#if( $end > $totalPages)
137
													#set( $end = $totalPages)
138
													#set( $begin = $end - 4 )
139
												#end
140
											#end	
141
										#end	
142
										#set( $pages = [$begin..$end] )
143
 
144
										#foreach( $pageId in $pages )
145
										#if($currentPage == $pageId)
146
										<span class="current">$pageId</span>
147
										#else
148
										<a href="./$pageId">$pageId</a>	
149
										#end
150
										#end
151
 
152
										#if($currentPage == $totalPages)
153
											<span class="current next">Next</span>
154
										#else
155
											#set($next = $currentPage+1)
156
											<a href="./${next}" class="current next">Next</a>
157
										#end
158
									</div>
159
								</div>
160
 
161
                                <div class="productListResult"> $beginIndex to $endIndex of <span class="resultLimit"> $totalItems </span>latest arrivals</div>                                
162
                                <div class="clearBoth"></div>
163
                            </div>
164
                            <!-- /productListTop -->
165
 
166
                            <!-- productListCenter -->
568 rajveer 167
                            <div id="productListingContent">
545 rajveer 168
 
650 rajveer 169
 
545 rajveer 170
                            #set($items =  $action.getItems())
171
                            #set( $isLeft = 0 )
741 rajveer 172
                            #foreach ( $entity in $items )
545 rajveer 173
                            <div
174
                            #if( $isLeft == 0 ) 
175
                            	 class="floatLeft"
176
                            	#set($isLeft = 1)	
177
                            #else
178
                            	class="floatRight"
179
                            	#set($isLeft = 0)	
180
                            #end		
181
                            >
741 rajveer 182
							$entity
545 rajveer 183
                            </div>
650 rajveer 184
							#if( $isLeft == 0 ) 
185
							     <div class="clearBoth"></div>
186
							#end	 
545 rajveer 187
                            #end
650 rajveer 188
 
545 rajveer 189
 
190
 
191
								<div class="clearBoth"></div>
192
 
193
                            </div>
194
                            <!-- /productListCenter -->
195
 
196
                            <!-- productListBottom -->
197
                            <div class="productListBottom">
198
                                <div class="pagination2"></div>
199
                                <div class="clearBoth"></div>
200
                            </div>
201
                        	<!-- /productListBottom -->
202
 
203
 
637 rajveer 204
                    #end
545 rajveer 205
 
206
                   <div class="clearBoth"></div>
207
                </div>
208
 
209
            </div>
210
 
211
            <div class="bottom">
212
                <div class="left">
213
                    <div class="right">&nbsp;</div>
214
                </div>
215
            </div>
216
        </div>
217
        <!-- /Best Sellers -->
218
 
219
      </div>
220
      <!-- /wrapper-->
221
 
222
        <!-- sidebar-->
223
        <div id="sidebar">
224
 
225
		#include ( "templates/customerservice.vm" )
226
		#parse ( "templates/myresearch.vm" )
227
 
228
        </div>
229
        <!-- /sidebar-->
230
        <div class="clearBoth"></div>
231
 
232
    </div>
233
    <!-- /main -->
234
 
235
    <!-- footer -->
236
    #include ( "templates/footer.vm" )
237
    <!-- /footer -->
238
 
239
</body>
240
</html>
241