示例#1
0
 if (isset($request['id'])) {
     $staff_id = $request['id'];
 } else {
     throw new Exception($e);
 }
 //m_termに存在しない日付の場合エラー文言表示
 if ($termid) {
     $param['msg'] = '';
 } else {
     $param['errors'][] = "指定された日付は使用できません。";
     renderTemplate('error.tpl', $param);
     exit;
 }
 $wm_flg = 'monthly';
 if (in_array(ACCOUNT_NEW_EMP, $authority)) {
     $flg = $edit->isEntryEnabledReport($sql_flg, $staff_id, $termid, $wm_flg);
     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) {