getpaging实例

注意:AKCMS已于2019年12月27日宣布停止更新,此文档仅供老用户参考,不建议新用户选择AKCMS建站。
注意:AKCMS6.1.2已取消授权机制,文档中关于授权、服务、技术支持等的内容均已失效。

实例1(akcms主站正在用的静态页分页,演示地址:http://www.akhtm.com/dynamic/)

<{getpaging
  baseurl="$fullpath/index-[page].htm"
  page=$page
  firstpage="$fullpath/index.htm"
  previoustemplate="<a href='[url]' style='color:red;'>上一页</a>"
  noprevioustemplate="<span>上一页</span>"
  nexttemplate="<a href='[url]' style='color:red;'>下一页</a>"
  nonexttemplate="<span>下一页</span>"
  firstpagetemplate="<a href='index.htm'>[1]</a>"
  currentfirstpagetemplate="<a href='index.htm' style='color:red;'>[1]</a>"
  lasttemplate="<a href='[url]' style='color:red;'>尾页</a>"
  firsttemplate="<a href='[url]' style='color:red;'>首页</a>"
  alreadyfirsttemplate="<span>首页</span>"
  alreadylasttemplate="<span>尾页</span>"
  paging="[first] [previous] [paging] [next] [last]"
  template=" <a href='[url]'>[[page]]</a> "
  currenttemplate=" <span style='color:red;'>[page]</span> "
 }>