Changes between Version 6 and Version 7 of API/BBS/Get-All-Topics-From-Specify-Forum
- Timestamp:
- 05/20/2011 09:47:20 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
API/BBS/Get-All-Topics-From-Specify-Forum
v6 v7 16 16 17 17 18 19 == Note == 20 21 22 23 {{{ 24 HTTP/1.1 200 OK 25 Server: nginx/0.8.42 26 Date: Wed, 04 May 2011 10:19:44 GMT 27 Content-Type: text/html; charset=UTF-8 28 Transfer-Encoding: chunked 29 Connection: keep-alive 30 X-Page: 1,91 31 }}} 32 33 || X-Page || 当前第几页,共有多少个帖子 || 34 35 36 客户端分页时,必须要作如下设置 37 38 {{{ 39 PAGINATION_SIZE 10 # 每页里面有多少个 posts 40 41 splits = X-Page.split(",") 42 current_page_num = splits[0] 43 total_posts = splits[1] 44 45 total_page = total_posts / PAGINATION_SIZE; # 一共有多少页 46 }}} 47 48 18 49 == Examples == 19 50
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)