Subversion Repositories SmartDukaan

Rev

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

Rev 1472 Rev 1477
Line 417... Line 417...
417
 
417
 
418
                </div>
418
                </div>
419
                <!-- /productListCenter -->
419
                <!-- /productListCenter -->
420
 
420
 
421
                <!-- 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
            
-
 
436
            
422
                <!--
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)
-
 
459
                                    <li class="pager-item">
423
                              <div class="productListBottom">
460
                                      <span class="current">$pageId</span>
-
 
461
                                    </li>
-
 
462
            										#else
-
 
463
                                    <li class="pager-item">
424
                                  <div class="pagination2"></div>
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)
-
 
475
                                    <li class="pager-next">
425
                                  <div class="clearBoth"></div>
476
                                      <a href="${url}&page=${next}" class="current next">Next</a>
-
 
477
                                    </li>
-
 
478
            										#end
-
 
479
                                  </ul>
426
                              </div>
480
 
-
 
481
						  </div>
427
							-->
482
                          <div class="clearBoth"></div>
-
 
483
                      </div>
-
 
484
        <!-- /productListBottom -->
428
                <!-- /productListBottom -->
485
 
429
 
486
              </div>
430
              </div>
487
              <!-- /otherTabContent -->
431
              <!-- /otherTabContent -->
488
 
432
 
489
            </div>
433
            </div>