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