<?php /** * ヒアリングシート編集画面 * * @created 2015-02-12 * @author R. Kumabe * @version v1.0 * @copyright Copyright (c) 2015 USEN */ $PAGE = "S_HEARING_EDIT"; require_once "../_init_auth.php"; require_once "hearing/class.Hearing.php"; try { //クラス読み込み $hearing = new Hearing(); //パラメータ初期値 $param = $request; $param['page'] = $PAGE; //validate処理 if ($error = $hearing->formValidate('edit', $param)) { $param['errors'] = $error; renderTemplate('error.tpl', $param); exit; } //必要パラメータをセット $param['answer_ability_list'] = $answer_ability_list; $param['answer_function_list'] = $answer_function_list; $param['answer_mind_list'] = $answer_mind_list; $param['answer_effort_list'] = $answer_effort_list; $param['answer_growth_list'] = $answer_growth_list;
<?php /** * ヒアリングシート編集完了画面 * * @created 2015-02-17 * @author R. Kumabe * @version v1.0 * @copyright Copyright (c) 2015 USEN */ $PAGE = "S_HEARING_EDIT"; require_once "../_init_auth.php"; require_once "hearing/class.Hearing.php"; try { //クラス読み込み $hearing = new Hearing(); //パラメータ初期値 $param = $request; $param['page'] = $PAGE; //validate処理 if ($error = $hearing->formValidate('complete', $param)) { $param['errors'] = $error; renderTemplate('error.tpl', $param); exit; } //期間マスタテーブルに存在しない日付の場合、登録不可 $date = $request['target_date']; $enable_date = isEnableDate($date); if (!$enable_date) { $param['errors'][] = "不正な日付なので登録できません。"; renderTemplate('error.tpl', $param);
<?php /** * ヒアリングシートトップ画面 * * @created 2015-02-10 * @author R. Kumabe * @version v1.0 * @copyright Copyright (c) 2015 USEN */ $PAGE = "S_HEARING"; require_once "../_init_auth.php"; require_once "hearing/class.Hearing.php"; try { $hearing = new Hearing(); //var_dump ($_SESSION); $param = array(); //$param = $request; $param['page'] = $PAGE; $id = $_SESSION[SESSION_USER_ID]; $authority = $_SESSION[SESSION_GROUP_CD]; $department_cd = $_SESSION[SESSION_USER_DEPARTMENT_CD]; $division_cd = $_SESSION[SESSION_USER_DIVISION_CD]; // アクセス可否を判定 $auth = true; $message = ""; // ログインユーザ:責任者・本部権限・人事部以外エラー if (!in_array(ACCOUNT_ADMIN, $authority) && !in_array(ACCOUNT_DEPARTMENT, $authority) && !in_array(ACCOUNT_HUMAN_RESOURCES, $authority) && !in_array(ACCOUNT_DEVEL, $authority)) { $auth = false; $message = "アクセス権限がありません。"; }