#IF(#DEFINED(#Pager.CountOfPages) AND #Pager.CountOfPages > 1)
#LOCAL("CountA",0) #LOCAL("CountB",0) #IF(#Pager.CountOfPages == #Pager.CountOfItems) #SET("CountA",#Pager.Page) #ELSE #IF(#Pager.Page < 2) #SET("CountA",1) #ELSE #SET("CountA",#CALCULATE((#Pager.PageSize * #Pager.Page) - (#Pager.PageSize - 1))) #ENDIF #LOCAL("PagerEndResult", #CALCULATE(#Pager.PageSize * #Pager.Page)) #IF(NOT #PagerEndResult > #Pager.CountOfItems) #SET("CountA",#CountA." - ".#Pager.CountOfItems) #ELSE #SET("CountA",#CountA." - ".#PagerEndResult) #ENDIF #ENDLOCAL #ENDIF #SET("CountB",#Pager.CountOfItems) #REM #ENDREM {ResultCounter} #ENDLOCAL #ENDLOCAL
    #IF(#Pager.Page == 1)
  • #ELSE
  • #ENDIF #LOOP(#Pager.PagesNew) #IF(#Pager.Page == #Page)
  • #PageText
  • #ELSE
  • #PageText
  • #ENDIF #ENDLOOP #IF(#Pager.CountOfPages == #Pager.Page)
  • #ELSE
  • #ENDIF
#ENDIF