Subversion Repositories SmartDukaan

Rev

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