function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     // --- リクエスト変数
     $chid = $requests['chid'];
     $is_check = $requests['is_check'];
     // ----------
     biz_checkTodo($chid, $is_check);
     if (!biz_isPermissionTodo($u, $chid)) {
         handle_kengen_error();
     }
     $p = array();
     openpne_redirect('pc', 'page_h_home', $p);
 }
 function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     // --- リクエスト変数
     $target_c_member_id = $requests['target_c_member_id'];
     $chid = $requests['chid'];
     $id = $requests['target_id'];
     $is_check = $requests['is_check'];
     // ----------
     if (!biz_isPermissionTodo($u, $chid)) {
         handle_kengen_error();
     }
     biz_checkTodo($chid, $is_check);
     $todo = biz_getTodo($chid);
     $p = array('target_c_member_id' => $target_c_member_id);
     openpne_redirect('pc', 'page_f_home', $p);
 }
Ejemplo n.º 3
0
 function execute($requests)
 {
     $u = $GLOBALS['KTAI_C_MEMBER_ID'];
     $tail = $GLOBALS['KTAI_URL_TAIL'];
     // --- リクエスト変数
     $target_biz_todo_id = $requests['target_biz_todo_id'];
     $target_c_member_id = $requests['target_c_member_id'];
     $is_checked = $requests['is_checked'];
     // ----------
     if (is_null($target_c_member_id)) {
         $target_c_member_id = $u;
     }
     if (!biz_isPermissionTodo($u, $target_biz_todo_id)) {
         handle_kengen_error();
     }
     biz_checkTodo($target_biz_todo_id, $is_checked);
     $p = array('target_c_member_id' => $target_c_member_id, 'is_checked' => $is_checked);
     ktai_biz_openpne_redirect('ktai_biz', 'page_fh_biz_todo_list', $p);
 }
Ejemplo n.º 4
0
function biz_editTodo($member_id, $memo, $writer_id, $sort_order, $is_all, $biz_todo_id, $is_done, $due_datetime, $priority, $biz_group_id, $public_flag)
{
    $todo = biz_getTodo($biz_todo_id);
    if ($is_all) {
        //共有Todo
        $member_id = 0;
    } elseif ($member_id == $writer_id) {
        $writer_name = '';
    }
    if ($is_done != $todo['is_check']) {
        biz_checkTodo($biz_todo_id, $todo['is_check']);
    }
    $sql = 'UPDATE biz_todo SET c_member_id = ?, memo = ?, writer_id = ?,' . 'r_datetime = ?, due_datetime = ?, priority = ?, biz_group_id = ?,' . 'public_flag = ? WHERE biz_todo_id = ?';
    $params = array(intval($member_id), db_ktai_delete_url_session_parameter($memo), intval($writer_id), date("Y-m-d H:i"), $due_datetime, intval($priority), intval($biz_group_id), $public_flag, intval($biz_todo_id));
    $result = db_query($sql, $params);
    return $result;
}