/
return.php
52 lines (41 loc) · 1.06 KB
/
return.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
require '../lib/book_func.php';
require '../lib/check.php';
$result = 0;
$ActType = "";
$Key0 ="";
$Key1 ="";
$Key2 ="";
$Key3 ="";
$Key21 = "";
$Key22 = "";
//IDとパスワードチェック
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 BookModel();
//入力された情報の確認
$result = $obj->GETBorrowUList($ActType, $Key0, $dspBorrowUList);
}
//画面表示
if ($result == 0){
include("return_input.html");
}else{
if ($_POST["ActionType"] != "TgRSPInf"){
$error = "";
}elseif ($result == 1){
$error = "入力内容に誤りがあります。再度入力してください。";
}else{
$error = "ただいまサーバーが込み合っております。";
}
include("../login/login.html");
}
?>