FLO001.inc
5.84 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<script type="text/javascript" src="xmlhttp.js"></script>
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
var SFlg = false; //サブミットフラグを定義
function DoubleSubmit(){ //ダブルサブミットチェック関数
if (SFlg){ //ダブルサブミットの場合
alert("応答中です"); //メッセージを出力
return false;
}
SFlg = true; //サブミットフラグを設定
return true; //戻り値を設定
}
var gseq;
function loadHTMLFile_SUB(fName,seq){
gseq = seq;
httpObj2 = createXMLHttpRequest(displayData2);
if (httpObj2){
httpObj2.open(Get_BName(),fName,true);
httpObj2.send(null);
}
}
function displayData2(){
if ((httpObj2.readyState == 4) && (httpObj2.status == 200)){
document.getElementById("floNo"+gseq).innerHTML = httpObj2.responseText;
}else{
document.getElementById("floNo"+gseq).innerHTML = "<b>Loading...</b>";
}
}
function input(){
if(document.getElementById("floNo0").innerHTML !=""){
document.getElementById("floNo0").innerHTML = "";
}else{
loadHTMLFile_SUB("FLO002.php",0);
}
}
function move_flo(intseq,ichiran){
if(document.getElementById("floNo"+intseq).innerHTML !=""){
document.getElementById("floNo"+intseq).innerHTML = "";
}else{
loadHTMLFile_SUB("FLO004_1.php?seq="+intseq+"&ichiran="+ichiran,intseq);
}
}
function Load1(){
document.location = "FLO001.php?disp_flg=0";
}
function Load2(){
document.location = "FLO002.php";
}
function Load3(){
// document.location = "FLO003.php";
document.location = "FLO001.php?disp_flg=1";
}
function submit1(){
if (confirm("申請を削除します\nよろしいですか?")){
if (DoubleSubmit()) {
//チェックボックスリスト作成
document.e_gru.strChkDat.value="";
if (document.e_gru.del_seq.length){
for(i = 0 ; i <= document.e_gru.del_seq.length-1; i++ ){
if (document.e_gru.del_seq[i].checked==true){
document.e_gru.strChkDat.value=document.e_gru.strChkDat.value+document.e_gru.del_seq[i].value+"/";
}
}
}else{
if (document.e_gru.del_seq.checked==true){
document.e_gru.strChkDat.value=document.e_gru.del_seq.value+"/";
}
}
document.e_gru.intsyorists.value=1;
document.e_gru.action = "FLO005.php";
document.e_gru.method="POST";
document.e_gru.submit();
}
/*
alert("intsts=1&strChkDat="+document.e_gru.strChkDat.value);
loadHTMLFile4("FLO005_1.php","intsts=1&strChkDat="+document.e_gru.strChkDat.value,0);
*/
}
return false;
}
function All_chk(){
//チェックボックス一括チェック処理
var intFlg = 0; //一括チェックFLG
//削除チェックボックス
if (document.e_gru.del_seq.length){
//未チェックがあるか
for(i = 0 ; i <= document.e_gru.del_seq.length-1; i++ ){
if (document.e_gru.del_seq[i].checked==false){
intFlg=1;
}
}
if (intFlg==1){
//未チェックがある場合
for(i = 0 ; i <= document.e_gru.del_seq.length-1; i++ ){
document.e_gru.del_seq[i].checked=true;
}
}else{
//未チェックがない場合
for(i = 0 ; i <= document.e_gru.del_seq.length-1; i++ ){
document.e_gru.del_seq[i].checked=false;
}
}
}else{
//チェックボックス1個の場合
if (document.e_gru.del_seq.checked==false){
document.e_gru.del_seq.checked=true;
}else{
document.e_gru.del_seq.checked=false;
}
}
}
function chk(){
// if (hissu_chk("送信ファイル",document.e_gru.upfile.value)==false) {
// document.e_gru.upfile.focus();
// return false;
// }
// if (script_chk("送信ファイル",document.e_gru.upfile.value)==false) {
// document.e_gru.upfile.focus();
// return false;
// }
if (hissu_chk("理由",document.e_gru.purpose.value)==false) {
document.e_gru.purpose.focus();
return false;
}
if (script_chk("理由",document.e_gru.purpose.value)==false) {
document.e_gru.purpose.focus();
return false;
}
if (DoubleSubmit()) {
document.e_gru.intsyorists_FLO002.value=2;
strArr=document.e_gru.upfile.value.split("\\");
strFName=strArr[strArr.length-1].toUpperCase();
document.e_gru.file_name.value=strFName;
document.e_gru.action = "FLO005_1.php";
document.e_gru.method="POST";
document.e_gru.submit();
return false;
}
}
//flo003.inc
function Shori(){
if (DoubleSubmit()) {
document.location = "FLO004.php";
}
}
//flo004.inc
//function set_syori(intNo,intsts){
// if (DoubleSubmit()) {
// document.e_gru.Comment.value=document.e_gru.Comment.value+" ";
// document.e_gru.intsts.value=intsts;
// document.e_gru.intindex.value=intNo;
// document.e_gru.intsyorists.value=3;
// document.e_gru.action = "FLO005_1.php";
// document.e_gru.method="POST";
// document.e_gru.submit();
// }
//}
function DownFile(strPass,strName){
document.e_gru.strFilePass.value=strPass;
document.e_gru.strFileName.value=strName;
document.e_gru.action="download.php";
document.e_gru.method="GET";
document.e_gru.submit();
}
function syubetu_select(index){
if(index==0){
list_index = 0;
}else{
list_index = document.e_gru.sinsei_syubetu.selectedIndex;
}
document.getElementById("kessai_list0").innerHTML=document.e_gru.PhpKesai0[list_index].value;
document.getElementById("kessai_list1").innerHTML=document.e_gru.PhpKesai1[list_index].value;
document.getElementById("kessai_list2").innerHTML=document.e_gru.PhpKesai2[list_index].value;
document.getElementById("kessai_list3").innerHTML=document.e_gru.PhpKesai3[list_index].value;
document.getElementById("kessai_list4").innerHTML=document.e_gru.PhpKesai4[list_index].value;
document.getElementById("kessai_list5").innerHTML=document.e_gru.PhpKesai5[list_index].value;
}
function PageCnt(flg,Sort_Mode,Sort_Ptn){
if (flg == 1){
document.e_gru.intPage.value = document.e_gru.prmBACK.value;
}else if ((flg == 2)){
document.e_gru.intPage.value = document.e_gru.prmNEXT.value;
}else{
document.e_gru.intPage.value = "";
}
prm = "disp_flg="+document.e_gru.disp_flg.value;
prm += "&intPage="+document.e_gru.intPage.value;
prm += "&Sort_Mode="+Sort_Mode;
prm += "&Sort_Ptn="+Sort_Ptn;
document.location = "FLO001.php?"+prm;
}
-->
</SCRIPT>