Simple paging code for smarty template engine

WBOY
Release: 2016-07-25 08:59:37
Original
1071 people have browsed it
  1. {if $pageCount > 1}
  2. {foreach item=i from=$pagerList}
  3. {if $pageNum eq $i}
  4. {$i}
  5. {else}
  6. {$i}
  7. {/if}
  8. {/foreach}
  9. {if $pageNum eq 1}
  10. Up One page
  11. {else}
  12. Previous page
  13. {/if}
  14. { if $pageNum eq $pageCount }
  15. Next page
  16. {else}
  17. Next page
  18. {/if}
  19. {if $pageNum eq 1}
  20. Homepage
  21. {else}
  22. Homepage< /a>
  23. {/if}
  24. {if $pageNum eq $pageCount}
  25. Last page
  26. {else}
  27. Last page
  28. {/if}
  29. {/if}
  30. (Total {$pageCount} pages)
Copy code


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template