Пример #1
0
     if ($flg) {
         if (!$edit->editEmpMonthlyReport($sql_flg, $staff_id, $termid, $digest, $issue)) {
             $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 = MONTHLY_TRAINER;
     //         $flg = $edit->isEntryEnabledFeedback2($sql_flg, $staff_id, $termid, $boss_id, $boss_flg, $data_type);
     $flg = $edit->isEntryEnabledFeedback($sql_flg, $staff_id, $termid, $boss_id, $boss_flg, $data_type, $wm_flg);
     if ($flg) {
         if (!$edit->editFeedbackReport($sql_flg, $staff_id, $termid, $boss_id, $authority, $comment_1, $boss_flg, $data_type)) {
             $error = true;
         }
     } else {
         throw new Exception("不正な処理の為処理を終了します。");
     }
 }
 if (in_array(ACCOUNT_ADMIN, $authority) && isset($comment_2)) {
     $boss_id = $_SESSION[SESSION_USER_ID];
     $boss_flg = 'admin';
     $data_type = MONTHLY_ADMIN;
     //         $flg = $edit->isEntryEnabledFeedback2($sql_flg, $staff_id, $termid, $boss_id, $boss_flg, $data_type);
     $flg = $edit->isEntryEnabledFeedback($sql_flg, $staff_id, $termid, $boss_id, $boss_flg, $data_type, $wm_flg);
     if ($flg) {
         if (!$edit->editFeedbackReport($sql_flg, $staff_id, $termid, $boss_id, $authority, $comment_2, $boss_flg, $data_type)) {
             $error = true;