Subversion Repositories SmartDukaan

Rev

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