Subversion Repositories SmartDukaan

Rev

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