Subversion Repositories SmartDukaan

Rev

Rev 1372 | Rev 1477 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1372 Rev 1472
Line 327... Line 327...
327
                </div>
327
                </div>
328
                <!-- /productListCenter -->
328
                <!-- /productListCenter -->
329
 
329
 
330
                <!-- productListBottom -->
330
                <!-- productListBottom -->
331
                <div class="productListBottom">
331
                <div class="productListBottom">
332
                  <div class="pagination1"></div>
332
                  <div class="pagination1">
-
 
333
					                      <ul class="pagination">
-
 
334
										#if($currentPage == 1)
-
 
335
                        <li class="pager-previous">
-
 
336
                          <span class="current prev">Prev</span>
-
 
337
                        </li>
-
 
338
										#else
-
 
339
											#set($prev = $currentPage-1)
-
 
340
                        <li class="pager-previous">
-
 
341
                          <a href="${url}&page=${prev}" class="current prev">Prev</a>
-
 
342
                        </li>
-
 
343
										#end
-
 
344
 
-
 
345
 
-
 
346
										#set( $begin = 1 )
-
 
347
										#set( $end = 1 )
-
 
348
										#if($totalPages <= 5)
-
 
349
											#set( $begin = 1 )
-
 
350
											#set( $end = $totalPages )
-
 
351
										#else
-
 
352
											#if($currentPage <= 3)
-
 
353
												#set( $begin = 1 )
-
 
354
												#set( $end = 5 )
-
 
355
											#else
-
 
356
												#set( $begin = $currentPage - 2 )
-
 
357
    											#set( $end = $currentPage + 2 )
-
 
358
												#if( $end > $totalPages)
-
 
359
													#set( $end = $totalPages)
-
 
360
													#set( $begin = $end - 4 )
-
 
361
												#end
-
 
362
											#end
-
 
363
										#end
-
 
364
										#set( $pages = [$begin..$end] )
-
 
365
 
-
 
366
										#foreach( $pageId in $pages )
-
 
367
										#if($currentPage == $pageId)
-
 
368
                        <li class="pager-item">
-
 
369
                          <span class="current">$pageId</span>
-
 
370
                        </li>
-
 
371
										#else
-
 
372
                        <li class="pager-item">
-
 
373
                          <a href="${url}&page=${pageId}">$pageId</a>
-
 
374
                        </li>
-
 
375
										#end
-
 
376
										#end
-
 
377
 
-
 
378
										#if($currentPage == $totalPages)
-
 
379
                        <li class="pager-next">
-
 
380
                          <span class="current next">Next</span>
-
 
381
                        </li>
-
 
382
										#else
-
 
383
											#set($next = $currentPage+1)
-
 
384
                        <li class="pager-next">
-
 
385
                          <a href="${url}&page=${next}" class="current next">Next</a>
-
 
386
                        </li>
-
 
387
										#end
-
 
388
                      </ul>
-
 
389
 
-
 
390
				  </div>
333
                  <div class="clearBoth"></div>
391
                  <div class="clearBoth"></div>
334
                </div>
392
                </div>
335
                <!-- /productListBottom -->
393
                <!-- /productListBottom -->
336
 
394
 
337
              </div>
395
              </div>
Line 359... Line 417...
359
 
417
 
360
                </div>
418
                </div>
361
                <!-- /productListCenter -->
419
                <!-- /productListCenter -->
362
 
420
 
363
                <!-- productListBottom -->
421
                <!-- productListBottom -->
-
 
422
                      <div class="productListBottom">
-
 
423
                          <div class="pagination2">
-
 
424
		                      <ul class="pagination">
-
 
425
								#if($currentPage == 1)
-
 
426
                                    <li class="pager-previous">
-
 
427
                                      <span class="current prev">Prev</span>
-
 
428
                                    </li>
-
 
429
            										#else
-
 
430
            											#set($prev = $currentPage-1)
-
 
431
                                    <li class="pager-previous">
-
 
432
                                      <a href="${url}&page=${prev}" class="current prev">Prev</a>
-
 
433
                                    </li>
-
 
434
            										#end
-
 
435
            
364
                <!--
436
            
-
 
437
            										#set( $begin = 1 )
-
 
438
            										#set( $end = 1 )
-
 
439
            										#if($totalPages <= 5)
-
 
440
            											#set( $begin = 1 )
-
 
441
            											#set( $end = $totalPages )
-
 
442
            										#else
-
 
443
            											#if($currentPage <= 3)
-
 
444
            												#set( $begin = 1 )
-
 
445
            												#set( $end = 5 )
-
 
446
            											#else
-
 
447
            												#set( $begin = $currentPage - 2 )
-
 
448
                											#set( $end = $currentPage + 2 )
-
 
449
            												#if( $end > $totalPages)
-
 
450
            													#set( $end = $totalPages)
-
 
451
            													#set( $begin = $end - 4 )
-
 
452
            												#end
-
 
453
            											#end
-
 
454
            										#end
-
 
455
            										#set( $pages = [$begin..$end] )
-
 
456
            
-
 
457
            										#foreach( $pageId in $pages )
-
 
458
            										#if($currentPage == $pageId)
365
                              <div class="productListBottom">
459
                                    <li class="pager-item">
-
 
460
                                      <span class="current">$pageId</span>
-
 
461
                                    </li>
-
 
462
            										#else
366
                                  <div class="pagination2"></div>
463
                                    <li class="pager-item">
-
 
464
                                      <a href="${url}&page=${pageId}">$pageId</a>
-
 
465
                                    </li>
-
 
466
            										#end
-
 
467
            										#end
-
 
468
            
-
 
469
            										#if($currentPage == $totalPages)
-
 
470
                                    <li class="pager-next">
-
 
471
                                      <span class="current next">Next</span>
-
 
472
                                    </li>
-
 
473
            										#else
-
 
474
            											#set($next = $currentPage+1)
367
                                  <div class="clearBoth"></div>
475
                                    <li class="pager-next">
-
 
476
                                      <a href="${url}&page=${next}" class="current next">Next</a>
-
 
477
                                    </li>
-
 
478
            										#end
368
                              </div>
479
                                  </ul>
-
 
480
 
369
							-->
481
						  </div>
-
 
482
                          <div class="clearBoth"></div>
-
 
483
                      </div>
370
                <!-- /productListBottom -->
484
        <!-- /productListBottom -->
371
 
485
 
372
              </div>
486
              </div>
373
              <!-- /otherTabContent -->
487
              <!-- /otherTabContent -->
374
 
488
 
375
            </div>
489
            </div>