CON162.inc
1.52 KB
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
53
54
55
56
57
58
59
60
61
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
var SFlg = false; //サブミットフラグを定義
function DoubleSubmit(){ //ダブルサブミットチェック関数
if (SFlg){ //ダブルサブミットの場合
alert("応答中です"); //メッセージを出力
return false;
}
SFlg = true; //サブミットフラグを設定
return true; //戻り値を設定
}
function sinki_chk(){
if (DoubleSubmit()) {
document.e_gru.sinki_edit_flg.value="sinki";
document.e_gru.action = "CON162_1.php";
document.e_gru.method="POST"
document.e_gru.submit();
}
}
function update_chk(){
if (touban_chk() == false) {
document.e_gru.zaiseki_name.focus();
return false;
}
if (DoubleSubmit()) {
document.e_gru.sinki_edit_flg.value="edit";
document.e_gru.action = "CON162_1.php";
document.e_gru.method="POST"
document.e_gru.submit();
}
}
function dell_chk(){
if (touban_chk() == false) {
document.e_gru.zaiseki_name.focus();
return false;
}
if (confirm("削除します\nよろしいですか?")){
if (DoubleSubmit()) {
document.e_gru.dell_flg.value="dell";
document.e_gru.action = "CON162_2.php";
document.e_gru.method="POST"
document.e_gru.submit();
}
}
}
function touban_chk(){
if ((document.e_gru.zaiseki_name.selectedIndex == -1) || (document.e_gru.zaiseki_name.value == "")) {
alert("申請種類を選択してください");
return false;
}
}
function back(){
if (DoubleSubmit()) {
document.e_gru.action = "CON160.php";
document.e_gru.method="POST"
document.e_gru.submit();
}
}
-->
</SCRIPT>