Changes between Version 12 and Version 13 of API/BBS/Get-All-Posts-From-Specify-Topic
- Timestamp:
- 05/20/2011 09:45:25 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
API/BBS/Get-All-Posts-From-Specify-Topic
v12 v13 41 41 }}} 42 42 43 || X-Page || 当前第几页,共多少页 || 43 || X-Page || 当前第几页,共有多少个帖子 || 44 45 46 客户端分页时,必须要作如下设置 47 48 {{{ 49 PAGINATION_SIZE 10 # 每页里面有多少个 posts 50 51 splits = X-Page.split(",") 52 current_page_num = splits[0] 53 total_posts = splits[1] 54 55 total_page = total_posts / PAGINATION_SIZE; # 一共有多少页 56 }}} 57 44 58 45 59
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)