1 | <?php |
---|
2 | class 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 | ?> |
---|