MET001.inc
1010 Bytes
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
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
var SFlg = false; //サブミットフラグを定義
function DoubleSubmit(){ //ダブルサブミットチェック関数
if (SFlg){ //ダブルサブミットの場合
alert("応答中です"); //メッセージを出力
return false;
}
SFlg = true; //サブミットフラグを設定
return true; //戻り値を設定
}
function PageChange(){
if (DoubleSubmit()) {
document.e_gru.action = "MET003.php";
document.e_gru.method="POST";
document.e_gru.submit();
}
}
function Detail(category_no,title_no,kanri_flg){
if (DoubleSubmit()) {
document.e_gru.kanri_flg.value=kanri_flg;
document.e_gru.category_no.value=category_no;
document.e_gru.title_no.value=title_no;
document.e_gru.action = "MET002.php";
document.e_gru.method="POST";
document.e_gru.submit();
}
}
function admin(kanri_flg){
if (DoubleSubmit()) {
document.e_gru.kanri_flg.value=kanri_flg;
document.e_gru.action = "MET001.php";
document.e_gru.method="POST";
document.e_gru.submit();
}
}
-->
</SCRIPT>