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

source: OpenPNE/branches/ebihara/prj_dev26_todo/webapp_biz/modules/ktai_biz/do/fh_biz_todo_edit.php @ 1147

Last change on this file since 1147 was 1147, checked in by ebihara, 16 years ago

携帯からのTodo表示・投稿・編集に対応

File size: 1.5 KB
Line 
1<?php
2class ktai_biz_do_fh_biz_todo_edit extends OpenPNE_Action
3{
4    function execute($requests)
5    {
6        $u  = $GLOBALS['KTAI_C_MEMBER_ID'];
7        $tail = $GLOBALS['KTAI_URL_TAIL'];
8
9        // --- リクエスト変数
10        $target_biz_todo_id = $requests['target_biz_todo_id'];
11        $target_c_member_id = $requests['target_c_member_id'];
12        $value = $requests['value'];
13        $due_datetime_y = $requests['due_datetime_y'];
14        $due_datetime_m = $requests['due_datetime_m'];
15        $due_datetime_d = $requests['due_datetime_d'];
16        // ----------
17
18                if (!biz_isPermissionTodo($u, $target_biz_todo_id)) {
19                    handle_kengen_error();
20                }
21
22        if ($due_datetime_y && $due_datetime_m && $due_datetime_d) {
23            $due_datetime = $due_datetime_y . '-' . $due_datetime_m . '-' . $due_datetime_d . ' 00:00:00';           
24        }
25
26        if (is_null($target_c_member_id)) {
27            $target_c_member_id = $u;
28        }
29       
30        $todo = biz_getTodo($target_biz_todo_id);
31
32        $is_all = $todo['is_all'];
33        $is_done = $todo['is_done'];
34        $priority = $todo['priority'];
35        $biz_group_id = $todo['biz_group_id'];
36        $public_flag = $todo['public_flag'];
37
38        biz_editTodo($target_c_member_id, $value, $u, 0, $is_all, $target_biz_todo_id,
39            $is_done, $due_datetime, $priority, $biz_group_id, $public_flag);
40        $p = array('target_c_member_id' => $target_c_member_id);
41        ktai_biz_openpne_redirect('ktai_biz', 'page_fh_biz_todo_list', $p);
42    }
43}
44?>
Note: See TracBrowser for help on using the repository browser.