ここの情報は古いです。ご理解頂いた上でお取り扱いください。

source: OpenPNE/branches/kunitada/MyNETS/trunk/webapp/modules/ktai/page/h_diary_list_friend.php @ 3043

Last change on this file since 3043 was 3043, checked in by kunitada, 16 years ago

MyNETS1.0.1 merge

File size: 1.8 KB
Line 
1<?php
2
3/* ========================================================================
4 *
5 * @license This source file is subject to version 3.01 of the PHP license,
6 *              that is available at http://www.php.net/license/3_01.txt
7 *              If you did not receive a copy of the PHP license and are unable
8 *              to obtain it through the world-wide-web, please send a note to
9 *              license@php.net so we can mail you a copy immediately. 
10 *
11 * @category   Application of MyNETS
12 * @project    OpenPNE UsagiProject 2006-2007
13 * @package    MyNETS
14 * @author     UsagiProject <info@usagi.mynets.jp>
15 * @copyright  2006-2007 UsagiProject <author member ad http://usagi.mynets.jp/member.html>
16 * @version    MyNETS,v 1.0.0
17 * @since      File available since Release 1.0.0 Nighty
18 * @chengelog  [2007/02/17] Ver1.1.0Nighty package
19 * ========================================================================
20 */
21
22/**
23 * OpenPNE
24 * @copyright 2005-2006 OpenPNE Project
25 * @link      http://www.tejimaya.com/openpne.shtml
26 *
27 */
28
29class ktai_page_h_diary_list_friend extends OpenPNE_Action
30{
31    function execute($requests)
32    {
33        $u  = $GLOBALS['KTAI_C_MEMBER_ID'];
34
35        // --- リクエスト変数
36        $direc = $requests['direc'];
37        $page = $requests['page'];
38        // ----------
39
40        //日記一覧
41        $page = $page + $direc;
42        $page_size = 10;
43        $this->set("page_size", $page_size);
44
45        //日付のリミットはとりあえず30
46        $lst = p_h_diary_list_friend_h_diary_list_friend4c_member_id($u, $page_size, $page, 30);
47        $this->set("h_diary_list_friend", $lst[0]);
48        $this->set("is_prev", $lst[1]);
49        $this->set("is_next", $lst[2]);
50        $this->set("total_num", $lst[3]);
51
52        $this->set("page", $page);
53
54        return 'success';
55    }
56}
57?>
Note: See TracBrowser for help on using the repository browser.