$comment_1 = $request['comment_1']; } if (isset($request['comment_2'])) { $comment_2 = $request['comment_2']; } if (isset($request['sort_order'])) { $sort_order = $request['sort_order']; } if (isset($request['holiday_flg'])) { $holiday_flg = $request['holiday_flg']; } $wm_flg = 'weekly'; if (in_array(ACCOUNT_NEW_EMP, $authority)) { $flg = $edit->isEntryEnabledReport($sql_flg, $staff_id, $term_id, $wm_flg); if ($flg) { if (!$edit->editEmpWeeklyReport($sql_flg, $staff_id, $term_id, $next_program)) { $error = true; } } else { throw new Exception("不正な処理の為処理を終了します。"); } } if (in_array(ACCOUNT_TRAINER, $authority) && isset($comment_1)) { $boss_id = $_SESSION[SESSION_USER_ID]; $boss_flg = 'trainer'; $data_type = WEEKLY_TRAINER; // $flg = $edit->isEntryEnabledFeedback2($sql_flg, $staff_id, $term_id, $boss_id, $boss_flg, $data_type, $wm_flg); $flg = $edit->isEntryEnabledFeedback($sql_flg, $staff_id, $term_id, $boss_id, $boss_flg, $data_type, $wm_flg); if ($flg) { if (!$edit->editFeedbackReport($sql_flg, $staff_id, $term_id, $boss_id, $authority, $comment_1, $boss_flg, $data_type)) { $error = true;