PRO005.inc
2.65 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
var SFlg = false; //サブミットフラグを定義
function DoubleSubmit(){ //ダブルサブミットチェック関数
if (SFlg){ //ダブルサブミットの場合
alert("応答中です"); //メッセージを出力
return false;
}
SFlg = true; //サブミットフラグを設定
return true; //戻り値を設定
}
function NEWToroku(){
if (DoubleSubmit()) {
document.e_gru.action = "PRO006.php";
document.e_gru.method="POST";
document.e_gru.submit();
}
}
function PRJ(){
if (DoubleSubmit()) {
document.e_gru.action = "PRO005.php";
document.e_gru.method="POST";
document.e_gru.submit();
}
}
function Edit(){
document.location = "PRO004.php";
}
function PRJ_rtn(){
if (DoubleSubmit()) {
document.e_gru.action = "PRO002.php";
document.e_gru.method="POST";
document.e_gru.submit();
}
}
function chk(){
if (hissu_chk("新規作業項目名",document.e_gru.pro_name.value)==false) {
document.e_gru.pro_name.focus();
return false;
}
if (script_chk("新規作業項目名",document.e_gru.pro_name.value)==false) {
document.e_gru.pro_name.focus();
return false;
}
if (hissu_chk("作業期間",document.e_gru.pro_s_y.value)==false) {
document.e_gru.pro_s_y.focus();
return false;
}
if (suchi_chk("作業期間",document.e_gru.pro_s_y.value)==false) {
document.e_gru.pro_s_y.focus();
return false;
}
if (date_chk(document.e_gru.pro_s_y.value,document.e_gru.pro_s_m.value,document.e_gru.pro_s_d.value)==false) {
document.e_gru.pro_s_y.focus();
return false;
}
if (date_chk(document.e_gru.pro_e_y.value,document.e_gru.pro_e_m.value,document.e_gru.pro_e_d.value)==false) {
document.e_gru.pro_e_y.focus();
return false;
}
st_date=document.e_gru.pro_s_y.value+document.e_gru.pro_s_m.value+document.e_gru.pro_s_d.value;
ed_date=document.e_gru.pro_e_y.value+document.e_gru.pro_e_m.value+document.e_gru.pro_e_d.value;
if(st_date>ed_date){
alert("期間を正しく選択してください");
document.e_gru.pro_s_y.focus();
return false;
}
if (script_chk("活動内容",document.e_gru.contents.value)==false) {
document.e_gru.contents.focus();
return false;
}
if (script_chk("備考",document.e_gru.note.value)==false) {
document.e_gru.note.focus();
return false;
}
if (DoubleSubmit()) {
document.e_gru.toroku_flg.value=3;
document.e_gru.action = "PRO004.php";
document.e_gru.method="POST";
document.e_gru.submit();
return false;
}
}
function del(){
if (confirm("プロジェクトを削除します\nよろしいですか?")){
if (DoubleSubmit()) {
document.e_gru.toroku_flg.value=5;
document.e_gru.action="PRO004.php";
document.e_gru.method="POST";
document.e_gru.submit();
}
}
}
-->
</SCRIPT>