if (!isID($_POST["KEYWORD1"], 40, 1)) { $result = 1; } elseif (!isPW($_POST["KEYWORD2"], 10, 4)) { $result = 1; } else { $ActType = $_POST["ActionType"]; $Key0 = $_POST["KEYWORD0"]; //社員番号 $Key1 = $_POST["KEYWORD1"]; //ID $Key2 = $_POST["KEYWORD2"]; //パスワード $Key3 = $_POST["KEYWORD3"]; //名前 //DB問い合わせ $obj = new otherModel(); $result = $obj->GETOldRequest($ActType, $Key1, $dspOldRequest); } //画面表示 if ($result == 0) { $request_edit = 'request_edit.php'; include "requestOld.html"; } else { if ($_POST["ActionType"] != "TgRSPInf") { $error = ""; } elseif ($result == 1) { $error = "入力内容に誤りがあります。再度入力してください。"; } else { $error = "ただいまサーバーが込み合っております。"; } include "/login/login.html";
if($result) { touch(preg_replace("/\.csv/", "-F", CSV_PATH.$csv_name)); } // csvファイルの作成(予備) $csv = new CSV($io, CSV_PATH_BK, $csv_name, "SJIS"); $result = $csv->write(CSV_TEMP); */ // 完了画面 -------------------------------------------------------------- if ($decision) { $vali = new Validation(); $Key61 = $io->get_param_sql("title"); $Key62 = $io->get_param_sql("link"); $Key63 = $io->get_param_sql("remarks"); //データベース更新 $obj = new otherModel(); //link確認 $result = $obj->GETRequestAdd($ActType, $Key0, $Key61, $Key62, $Key63); if ($result == 0) { include HTML_SUCCESS; } else { $db_error = 'システムエラーです。開発者に連絡してください。'; include TEMP_INPUT; } } else { // pg_query($conlink, "rollback"); // 失敗画面 //処理どうし→登録に失敗 include HTML_FAILURE; } } else {
if (!isID($_POST["KEYWORD1"], 40, 1)) { $result = 1; } elseif (!isPW($_POST["KEYWORD2"], 10, 1)) { $result = 1; } else { $ActType = $_POST["ActionType"]; $Key0 = $_POST["KEYWORD0"]; //社員番号 $Key1 = $_POST["KEYWORD1"]; //ID $Key2 = $_POST["KEYWORD2"]; //パスワード $Key3 = $_POST["KEYWORD3"]; //名前 } $obj = new otherModel(); $result = $obj->GETRequest($ActType, $Key1, $dspRequest); function mk_target_col($arrList, $target) { //指定した列を取り出す関数を定義 $arrTarget = array(); //指定した列を格納する配列を用意 foreach ($arrList as $arrLine) { //ここから2次元配列のループ foreach ($arrLine as $key => $value) { //ここから単純配列から特定のキーを取り出すループ if ($key == $target) { //配列のキーが$target(関数の第2引数)と一致したら $arrTarget[] = $value; //$arrTargetに格納する }
//社員番号 $Key1 = $_POST["KEYWORD1"]; //ID $Key2 = $_POST["KEYWORD2"]; //パスワード $Key3 = $_POST["KEYWORD3"]; //名前 $reqnum = $_POST['reqnum']; print_r($reqnum); $pur = $_POST['pur']; print_r($pur); /*$req = $_POST['req']; print_r($req['app']); print_r($req['num']);*/ } $obj = new otherModel(); $result = $obj->GETReqPur($Key1, $pur, $reqnum); if ($result == 0) { $conf = 'request_pur.php'; include "request_pur_suc.html"; } else { if ($_POST["ActionType"] != "TgRSPInf") { $error = ""; include "/login/login.html"; } elseif ($result == 1) { $error = "入力内容に誤りがあります。再度入力してください。"; } else { $error = "ただいまサーバーが込み合っております。"; } include 'request_pur_fal.html'; }
if (!isID($_POST["KEYWORD1"], 40, 1)) { $result = 1; } elseif (!isPW($_POST["KEYWORD2"], 10, 1)) { $result = 1; } else { $ActType = $_POST["ActionType"]; $Key0 = $_POST["KEYWORD0"]; //社員番号 $Key1 = $_POST["KEYWORD1"]; //ID $Key2 = $_POST["KEYWORD2"]; //パスワード $Key3 = $_POST["KEYWORD3"]; //名前 } $obj = new otherModel(); $result = $obj->GETRequestPur($ActType, $Key1, $dspRequestPur); function mk_target_col($arrList, $target) { //指定した列を取り出す関数を定義 $arrTarget = array(); //指定した列を格納する配列を用意 foreach ($arrList as $arrLine) { //ここから2次元配列のループ foreach ($arrLine as $key => $value) { //ここから単純配列から特定のキーを取り出すループ if ($key == $target) { //配列のキーが$target(関数の第2引数)と一致したら $arrTarget[] = $value; //$arrTargetに格納する }
//社員番号 $Key1 = $_POST["KEYWORD1"]; //ID $Key2 = $_POST["KEYWORD2"]; //パスワード $Key3 = $_POST["KEYWORD3"]; //名前 $reqnum = $_POST['reqnum']; print_r($reqnum); $app = $_POST['app']; print_r($app); /*$req = $_POST['req']; print_r($req['app']); print_r($req['num']);*/ } $obj = new otherModel(); $result = $obj->GETReqApp($Key1, $app, $reqnum); if ($result == 0) { $conf = 'request_edit.php'; include "request_edit_suc.html"; } else { if ($_POST["ActionType"] != "TgRSPInf") { $error = ""; include "/login/login.html"; } elseif ($result == 1) { $error = "入力内容に誤りがあります。再度入力してください。"; } else { $error = "ただいまサーバーが込み合っております。"; } include 'request_edit_fal.html'; }
//社員番号 $Key1 = $_POST["KEYWORD1"]; //ID $Key2 = $_POST["KEYWORD2"]; //パスワード $Key3 = $_POST["KEYWORD3"]; //名前 $reqnum = $_POST['reqnum']; print_r($reqnum); $app = $_POST['app']; print_r($app); /*$req = $_POST['req']; print_r($req['app']); print_r($req['num']);*/ } $obj = new otherModel(); $result = $obj->GETReqApp($ActType, $app, $reqnum); if ($result == 0) { $conf = 'request_edit.php'; include "request_edit_suc.html"; } else { if ($_POST["ActionType"] != "TgRSPInf") { $error = ""; include "../../login/login.html"; } elseif ($result == 1) { $error = "入力内容に誤りがあります。再度入力してください。"; } else { $error = "ただいまサーバーが込み合っております。"; } include 'request_edit_fal.html'; }