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

source: OpenPNE/trunk/webapp_biz/modules/pc/page/h_prof.php @ 284

Last change on this file since 284 was 284, checked in by ogawa, 14 years ago

CS

File size: 3.0 KB
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
7class pc_page_h_prof extends OpenPNE_Action
8{
9    function execute($requests)
10    {
11        $u = $GLOBALS['AUTH']->uid();
12
13        $target_c_member_id = $u;
14
15        $this->set('is_h_prof', 1);
16        $this->set('inc_navi',fetch_inc_navi('h'));
17        $target_c_member = db_common_c_member_with_profile($u, 'friend');
18        $this->set('is_friend', 0);
19        $this->set('c_diary_list', db_diary_get_c_diary_list4c_member_id($target_c_member_id, 5, null, 'friend'));
20
21        // --- f_home, h_prof 共通処理
22
23        $this->set('target_c_member_id',$target_c_member_id);
24        $target_c_member['last_login'] = p_f_home_last_login4access_date($target_c_member['access_date']);
25        if ($target_c_member['birth_year']) {
26            $target_c_member['age'] = getAge($target_c_member['birth_year'], $target_c_member['birth_month'], $target_c_member['birth_day']);
27        }
28        $this->set('target_c_member', $target_c_member);
29
30        $this->set('c_rss_cache_list', p_f_home_c_rss_cache_list4c_member_id($target_c_member_id, 5));
31
32        $this->set('c_friend_comment_list', p_f_home_c_friend_comment4c_member_id($target_c_member_id));
33        $this->set('c_friend_list', p_f_home_c_friend_list4c_member_id($target_c_member_id, 9));
34        $this->set('c_friend_count', db_friend_count_friends($target_c_member_id));
35        $this->set('user_count',p_common_count_c_commu4c_member_id($target_c_member_id));
36        $this->set('c_commu_list', p_f_home_c_commu_list4c_member_id($target_c_member_id, 9));
37        $this->set('c_review_list', db_review_c_review_list4member($target_c_member_id, 5));
38
39        $this->set('profile_list', db_common_c_profile_list());
40
41        // 誕生日まであと何日?
42        $this->set('days_birthday', db_common_count_days_birthday4c_member_id($target_c_member_id));
43
44        // inc_entry_point
45        $this->set('inc_entry_point', fetch_inc_entry_point_f_home($this->getView()));
46
47        // ---bizここから
48
49        //nak 20060217 バナーをBIZ用右部拡張領域下に表示させる為の仕掛け
50        $this->set('is_h_prof', 1);
51
52        //カレンダー表示用
53        $biz_dir = OPENPNE_MODULES_BIZ_DIR.'/biz/';  //bizモジュールディレクトリの定義
54        include_once($biz_dir.'lib/smarty_functions.php');  //bizモジュールよりライブラリを拝借
55        include_once $biz_dir . 'lib/mysql_functions.php';  //bizモジュールよりライブラリを拝借
56        $this->set('calendar', biz_getScheduleWeek($u, $requests['w'], 'p', true, true, true, $target_c_member));
57
58        $todolist = biz_getTodoList($u, "h", $target_c_member['nickname']);
59        $this->set("todolist", $todolist);
60        $stateform = biz_getStateForm($u);
61        $this->set("stateform", $stateform);
62
63        $this->set("group_list", biz_getJoinGroup($u, 9));
64
65        // ---bizここまで
66
67        return 'success';
68    }
69}
70
71?>
Note: See TracBrowser for help on using the repository browser.