Line | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * @copyright 2005-2006 OpenPNE Project |
---|
4 | * @license http://www.php.net/license/3_01.txt PHP License 3.01 |
---|
5 | */ |
---|
6 | |
---|
7 | class biz_page_h_biz_todo_posted_list extends OpenPNE_Action |
---|
8 | { |
---|
9 | function execute($requests) |
---|
10 | { |
---|
11 | $u = $GLOBALS['AUTH']->uid(); |
---|
12 | |
---|
13 | // --- リクエスト変数 |
---|
14 | $direc = $requests['direc']; |
---|
15 | $page = $requests['page']; |
---|
16 | // ---------- |
---|
17 | |
---|
18 | $this->set('inc_navi',fetch_inc_navi("h")); |
---|
19 | |
---|
20 | //日記一覧 |
---|
21 | $page = $page + $direc; |
---|
22 | $page_size = 50; |
---|
23 | $this->set("page_size",$page_size); |
---|
24 | |
---|
25 | $lst = biz_getPostedTodo($u); |
---|
26 | $this->set("posted_list", $lst); |
---|
27 | |
---|
28 | $this->set("total_num", count($lst)); |
---|
29 | |
---|
30 | $this->set("page", $page); |
---|
31 | $pager = array(); |
---|
32 | $pager['start'] = $page_size * ($page - 1) + 1; |
---|
33 | if (($pager['end'] = $page_size * $page) > $lst[3]) { |
---|
34 | $pager['end'] = $lst[3]; |
---|
35 | } |
---|
36 | $this->set('pager', $pager); |
---|
37 | |
---|
38 | return 'success'; |
---|
39 | } |
---|
40 | } |
---|
41 | |
---|
42 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.