PRJ001.inc
20.3 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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
<script type="text/javascript" src="xmlhttp.js"></script>
<SCRIPT LANGUAGE="JAVASCRIPT">
function delete_prj(seq){
if(confirm("削除しますか?")){
prm = "?seq=" + seq;
loadHTMLFile("PRJ993.php" + prm);
}
function loadHTMLFile(fName){
httpObj = createXMLHttpRequest(displayData);
if (httpObj)
{
httpObj.open(Get_BName(),fName,true);
httpObj.send(null);
}
}
function displayData()
{
if ((httpObj.readyState == 4) && (httpObj.status == 200)){
//alert(httpObj.responseText);
document.getElementById("sts").innerHTML = "";
show_prj(1);
}else{
document.getElementById("sts").innerHTML = "<b>Loading...</b>";
}
}
}
function delete_task(seq,tseq,sseq){
if(confirm("削除しますか?")){
var prm="";
prm = "?seq=" + seq;
prm += "&tseq=" + tseq;
prm += "&sseq=" + sseq;
loadHTMLFile("PRJ994.php" + prm);
}
function loadHTMLFile(fName){
httpObj = createXMLHttpRequest(displayData);
if (httpObj)
{
httpObj.open(Get_BName(),fName,true);
httpObj.send(null);
}
}
function displayData()
{
if ((httpObj.readyState == 4) && (httpObj.status == 200)){
document.getElementById("sts").innerHTML = "";
show_prj(1);
}else{
document.getElementById("sts").innerHTML = "<b>Loading...</b>";
}
}
}
function update_kansa(seq){
prm = "?seq=" + seq;
loadHTMLFile("PRJ916.php" + prm);
function loadHTMLFile(fName){
httpObj = createXMLHttpRequest(displayData);
if (httpObj)
{
httpObj.open(Get_BName(),fName,true);
httpObj.send(null);
}
}
function displayData()
{
if ((httpObj.readyState == 4) && (httpObj.status == 200)){
//alert(httpObj.responseText);
document.getElementById("sts").innerHTML = "";
show_prj(1);
}else{
document.getElementById("sts").innerHTML = "<b>Loading...</b>";
}
}
}
function update_prog(seq,tseq,sseq){
var p = parseInt(document.getElementById("prog_"+seq+"_"+tseq+"_"+sseq).value);
var m = parseInt(document.getElementById("progMax_"+seq+"_"+tseq+"_"+sseq).value);
if(p > m){
alert("進捗完成値を超えています");
return false;
}
prm = "?seq=" + seq;
prm += "&tseq=" + tseq;
prm += "&sseq=" + sseq;
prm += "&prog=" + p;
//prompt(prm,prm);
loadHTMLFile("PRJ913.php" + prm);
function loadHTMLFile(fName){
httpObj = createXMLHttpRequest(displayData);
if (httpObj)
{
httpObj.open(Get_BName(),fName,true);
httpObj.send(null);
}
}
function displayData()
{
if ((httpObj.readyState == 4) && (httpObj.status == 200)){
//alert(httpObj.responseText);
document.getElementById("sts").innerHTML = "";
show_prj(1);
}else{
document.getElementById("sts").innerHTML = "<b>Loading...</b>";
}
}
}
function delete_comm(seq,tseq,sseq,cseq,mode){
if(confirm("削除しますか?")){
//alert(seq+"/"+tseq+"/"+sseq+"/"+cseq+"/"+mode);
prm = "?mode=" + mode;
prm += "&seq=" + seq;
prm += "&tseq=" + tseq;
prm += "&sseq=" + sseq;
prm += "&cseq=" + cseq;
loadHTMLFile("PRJ995.php" + prm);
}
function loadHTMLFile(fName){
httpObj = createXMLHttpRequest(displayData);
if (httpObj)
{
httpObj.open(Get_BName(),fName,true);
httpObj.send(null);
}
}
function displayData()
{
if ((httpObj.readyState == 4) && (httpObj.status == 200)){
//alert(httpObj.responseText);
document.getElementById("sts").innerHTML = "";
show_prj(1);
}else{
document.getElementById("sts").innerHTML = "<b>Loading...</b>";
}
}
}
function update_comm(seq,tseq,sseq,mode){
if (hissu_chk("コメント",document.e_gru.tskComm.value)==false) {
document.e_gru.tskComm.focus();
return false;
}
if (script_chk("コメント",document.e_gru.tskComm.value)==false) {
document.e_gru.tskComm.focus();
return false;
}
//prm = "?mode=" + mode;
prm = "mode=" + mode;
prm += "&seq=" + seq;
prm += "&tseq=" + tseq;
prm += "&sseq=" + sseq;
prm += "&tskComm=" + encodeURIComponent(document.e_gru.tskComm.value)+" ";
//alert(encodeURIComponent(document.e_gru.tskComm.value));
//loadHTMLFile("PRJ905.php" + prm);
loadHTMLFile("PRJ905.php" , prm);
//function loadHTMLFile(fName){
function loadHTMLFile(fName,prm){
httpObj = createXMLHttpRequest(displayData);
if (httpObj){
//httpObj.open(Get_BName(),fName,true);
//httpObj.send(null);
httpObj.open("POST",fName,true);
httpObj.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
httpObj.send(prm);
}
}
function displayData(){
if ((httpObj.readyState == 4) && (httpObj.status == 200)){
document.getElementById("sts").innerHTML = "";
show_prj(1);
}else{
document.getElementById("sts").innerHTML = "<b>Loading...</b>";
}
}
}
function sort_prj(seq,tseq,sseq,mode){
prm = "mode=" + mode;
prm += "&seq=" + seq;
prm += "&tseq=" + tseq;
prm += "&sseq=" + sseq;
loadHTMLFileSRT("PRJ996.php" , prm);
function loadHTMLFileSRT(fName,prm){
httpObjSRT = createXMLHttpRequest(displayDataSRT);
if (httpObjSRT)
{
httpObjSRT.open("POST",fName,true);
httpObjSRT.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
httpObjSRT.send(prm);
}
}
function displayDataSRT()
{
if ((httpObjSRT.readyState == 4) && (httpObjSRT.status == 200)){
document.getElementById("sts").innerHTML = "";
div_remove();
show_prj(1);
}else{
document.getElementById("sts").innerHTML = "<b>Loading...</b>";
}
}
}
function update_tsk(seq,tseq,sseq,mode){
if (hissu_chk("名称",document.e_gru.prjName.value)==false) {
document.e_gru.prjName.focus();
return false;
}
if (script_chk("名称",document.e_gru.prjName.value)==false) {
document.e_gru.prjName.focus();
return false;
}
sy = document.e_gru.start_y.value;
sm = document.e_gru.start_m.value;
sd = document.e_gru.start_d.value;
if(sy + sm + sd != ""){
if (date_chk(sy,sm,sd)==false) {
document.e_gru.start_y.focus();
return false;
}
}
ey = document.e_gru.end_y.value;
em = document.e_gru.end_m.value;
ed = document.e_gru.end_d.value;
if(ey + em + ed != ""){
if (date_chk(ey,em,ed)==false) {
document.e_gru.end_y.focus();
return false;
}
}
if("" + sy + sm + sd > "" + ey + em + ed){
alert("期間が開始>終了となっています");
return false;
}
if (document.e_gru.progMax.value == "") {
alert("進捗完成値を入力してください");
return false;
}
if (suchi_chk("進捗完成値",document.e_gru.progMax.value)==false) {
document.e_gru.progMax.focus();
return false;
}
if (document.e_gru.progMax.value == 0) {
alert("進捗完成値が0になっています");
return false;
}
if(document.e_gru.syain_add[0].length <= 1){
alert("担当者を指定してください");
return false;
}
stradd1="";
for (i=0; i<document.e_gru.syain_add[0].options.length; i++){
stradd1 = stradd1 + document.e_gru.syain_add[0].options[i].value+"/";
}
//20081008修正
//prm = "?mode=" + mode;
prm = "mode=" + mode;
prm += "&seq=" + seq;
prm += "&tseq=" + tseq;
prm += "&sseq=" + sseq;
prm += "&prjName=" + encodeURIComponent(document.e_gru.prjName.value)+" ";
prm += "&start_y=" + sy;
prm += "&start_m=" + sm;
prm += "&start_d=" + sd;
prm += "&end_y=" + ey;
prm += "&end_m=" + em;
prm += "&end_d=" + ed;
prm += "&progMax=" + document.e_gru.progMax.value;
prm += "&progUnit=" + document.e_gru.progUnit.value;
prm += "&stradd1=" + stradd1;
prm += "&prjNaiyo=" + encodeURIComponent(document.e_gru.prjNaiyo.value)+" ";
//loadHTMLFile("PRJ904.php" + prm);
loadHTMLFile("PRJ904.php" , prm);
//function loadHTMLFile(fName){
function loadHTMLFile(fName,prm){
httpObj = createXMLHttpRequest(displayData);
if (httpObj)
{
//httpObj.open(Get_BName(),fName,true);
//httpObj.send(null);
httpObj.open("POST",fName,true);
httpObj.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
httpObj.send(prm);
}
}
function displayData()
{
if ((httpObj.readyState == 4) && (httpObj.status == 200)){
//alert(httpObj.responseText);
document.getElementById("sts").innerHTML = "";
div_remove();
show_prj(1);
}else{
document.getElementById("sts").innerHTML = "<b>Loading...</b>";
}
}
}
function update_prj(seq,divName){
if (hissu_chk("名称",document.e_gru.prjName.value)==false) {
document.e_gru.prjName.focus();
return false;
}
if (script_chk("名称",document.e_gru.prjName.value)==false) {
document.e_gru.prjName.focus();
return false;
}
if(document.e_gru.syain_add[0].length <= 1){
alert("責任者を指定してください");
return false;
}
if(document.e_gru.syain_add[1].length <= 1){
alert("参加者を指定してください");
return false;
}
if (script_chk("内容",document.e_gru.prjNaiyo.value)==false) {
document.e_gru.prjNaiyo.focus();
return false;
}
if (script_chk("備考",document.e_gru.prjBiko.value)==false) {
document.e_gru.prjBiko.focus();
return false;
}
stradd1="";
for (i=0; i<document.e_gru.syain_add[0].options.length; i++){
stradd1 = stradd1 + document.e_gru.syain_add[0].options[i].value+"/";
}
stradd2="";
for (i=0; i<document.e_gru.syain_add[1].options.length; i++){
stradd2 = stradd2 + document.e_gru.syain_add[1].options[i].value+"/";
}
stradd3="";
for (i=0; i<document.e_gru.syain_add[2].options.length; i++){
stradd3 = stradd3 + document.e_gru.syain_add[2].options[i].value+"/";
}
//prm = "?seq=" + seq;;
prm = "seq=" + seq;;
// prm += "&prjName=" + encodeURIComponent(document.e_gru.prjName.value)+" ";
prm += "&stradd1=" + stradd1;
prm += "&stradd2=" + stradd2;
prm += "&stradd3=" + stradd3;
// prm += "&prjNaiyo=" + encodeURIComponent(document.e_gru.prjNaiyo.value)+" ";
// prm += "&prjBiko=" + encodeURIComponent(document.e_gru.prjBiko.value)+" ";
// prm += "&dmode=" + document.e_gru.dmode.value;
// prm += "&pmode=" + document.e_gru.pmode.value;
prm += "&ctg_seq=" + document.e_gru.ctg_list.value;
//画面遷移で
document.e_gru.action = "PRJ903.php?"+prm;
document.e_gru.method="POST";
document.e_gru.submit();
return false;
//loadHTMLFile("PRJ903.php" + prm);
// loadHTMLFile("PRJ903.php", prm);
function loadHTMLFile(fName, pprm){
httpObj = createXMLHttpRequest(displayData);
if (httpObj)
{
//httpObj.open(Get_BName(),fName,true);
//httpObj.send(null);
httpObj.open("POST",fName,true);
httpObj.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
httpObj.send(pprm);
}
}
function displayData()
{
if ((httpObj.readyState == 4) && (httpObj.status == 200)){
document.getElementById("sts").innerHTML = "";
document.getElementById(divName).innerHTML = "";
document.getElementById(divName).style.display = "none";
show_prj(1);
}else{
document.getElementById("sts").innerHTML = "<b>Loading...</b>";
}
}
}
function show_prj(flg){
dmode = document.e_gru.dmode.value;
pmode = document.e_gru.pmode.value;
ctg = document.e_gru.ctg.value;
loadHTMLFile("PRJ001.php?dmode=" + dmode + "&pmode=" + pmode + "&ctg=" + ctg);
function loadHTMLFile(fName){
httpObj = createXMLHttpRequest(displayData);
if (httpObj)
{
httpObj.open(Get_BName(),fName,true);
httpObj.send(null);
}
}
function displayData()
{
if ((httpObj.readyState == 4) && (httpObj.status == 200)){
//alert(httpObj.responseText);
document.getElementById("sts").innerHTML = "";
document.getElementById("prj-list").innerHTML = httpObj.responseText;
document.getElementById("prj-list").style.display = "block";
if(flg == 1){
div_block();
}else{
if(document.e_gru.prj_seq.value != ""){
show_naiyo(document.e_gru.prj_seq.value , 0);
}
}
}else{
document.getElementById("sts").innerHTML = "<b>Loading...</b>";
}
}
}
function show_naiyo(seq,flg){
if (document.getElementById("prj-naiyo_"+seq).style.display == "block"){
document.getElementById("prj-naiyo_"+seq).style.display = "none";
document.getElementById("prj-naiyo_"+seq).sinnerHTML = "";
make_divList("prj-naiyo_"+seq,0);
return;
}
div_clear();
if(flg==0){
document.e_gru.divList.value = "";
}
make_divList("prj-naiyo_"+seq,1);
dmode = document.e_gru.dmode.value;
pmode = document.e_gru.pmode.value;
loadHTMLFile("PRJ002.php?seq=" + seq + "&dmode=" + dmode + "&pmode=" + pmode);
function loadHTMLFile(fName){
httpObj = createXMLHttpRequest(displayData);
if (httpObj)
{
httpObj.open(Get_BName(),fName,true);
httpObj.send(null);
}
}
function displayData()
{
if ((httpObj.readyState == 4) && (httpObj.status == 200)){
//alert(httpObj.responseText);
document.getElementById("sts").innerHTML = "";
// document.getElementById("prj-naiyo_"+seq).style.display = "block";
//alert(httpObj.responseText);
// document.getElementById("prj-naiyo_"+seq).innerText = httpObj.responseText;
document.getElementById("prj-naiyo_"+seq).innerHTML = httpObj.responseText;
div_none(seq);
document.getElementById("prj-naiyo_"+seq).style.display = "block";
}else{
document.getElementById("sts").innerHTML = "<b>Loading...</b>";
}
}
}
function div_none(seq){
if(document.getElementsByName("none_list_"+seq).length){
obj = document.getElementsByName("none_list_"+seq);
for(i=0;i<obj.length;i++){
str = document.e_gru.divList.value;
if(str.match(obj[i].value) == null){
document.getElementById(obj[i].value).style.display = "none";
}
}
}else{
}
}
function div_clear(){
obj = document.getElementsByName("prj_naiyo");
for(i=0;i<obj.length;i++){
document.getElementById(obj[i].value).style.display = "none";
document.getElementById(obj[i].value).innerHTML = "";
}
}
function show_task(seq){
if(document.getElementById("task-list_"+seq).style.display == "none"){
document.getElementById("task-list_"+seq).style.display = "block";
make_divList("task-list_"+seq,1);
return;
}else{
document.getElementById("task-list_"+seq).style.display = "none";
make_divList("task-list_"+seq,0);
return;
}
}
function task_naiyo(seq,tseq){
if (document.getElementById("tsk-naiyo_"+seq+"_"+tseq).style.display == "none"){
document.getElementById("tsk-naiyo_"+seq+"_"+tseq).style.display = "block";
make_divList("tsk-naiyo_"+seq+"_"+tseq,1);
}else{
document.getElementById("tsk-naiyo_"+seq+"_"+tseq).style.display = "none";
make_divList("tsk-naiyo_"+seq+"_"+tseq,0);
return;
}
}
function make_divList(divName,mode){
str = document.e_gru.divList.value;
if(mode == 0){
document.e_gru.divList.value = str.replace(divName + "/", "");
}else if(mode == 1){
if(str.match(divName) == null){
document.e_gru.divList.value = str + divName + "/";
}
}
}
function div_block(){
str = document.e_gru.divList.value;
if(str == ""){
return;
}
arr = str.split("/")
for(i=0;i<arr.length-1;i++){
tempArr = arr[i].split("_");
if(arr[i].match(/prj-naiyo/) != null){
if(document.getElementById(arr[i])) {
document.getElementById(arr[i]).style.display = "none";
show_naiyo(tempArr[1],1);
}
}
}
}
function show_input(divName,seq){
// document.getElementById("make_prj").innerHTML = "";
// if(document.getElementById("mod-prj") != null){
// document.getElementById("mod-prj").innerHTML = "";
// }
div_remove();
loadHTMLFile("PRJ003.php?seq="+seq);
function loadHTMLFile(fName){
httpObj = createXMLHttpRequest(displayData);
if (httpObj)
{
httpObj.open(Get_BName(),fName,true);
httpObj.send(null);
}
}
function displayData()
{
if ((httpObj.readyState == 4) && (httpObj.status == 200)){
document.getElementById("sts").innerHTML = "";
document.getElementById(divName).innerHTML = httpObj.responseText;
document.getElementById(divName).style.display = "block";
}else{
document.getElementById("sts").innerHTML = "<b>Loading...</b>";
}
}
}
function show_inputTSK(divName,seq,tseq,sseq,mode){
cal1 = new JKL.Calendar("calid","e_gru","colname");
cal2 = new JKL.Calendar("calid2","e_gru","colname2");
div_remove();
loadHTMLFile("PRJ004.php?seq="+seq+"&tseq="+tseq+"&sseq="+sseq+"&mode="+mode);
function loadHTMLFile(fName){
httpObj = createXMLHttpRequest(displayData);
if (httpObj)
{
httpObj.open(Get_BName(),fName,true);
httpObj.send(null);
}
}
function displayData()
{
if ((httpObj.readyState == 4) && (httpObj.status == 200)){
document.getElementById("sts").innerHTML = "";
document.getElementById(divName).innerHTML = httpObj.responseText;
document.getElementById(divName).style.display = "block";
}else{
document.getElementById("sts").innerHTML = "<b>Loading...</b>";
}
}
}
function div_remove(){
if(document.e_gru.divNameTsk){
max = document.e_gru.divNameTsk.length;
for(i=0;i<max;i++){
if(document.e_gru.divNameTsk[i]){
str = document.e_gru.divNameTsk[i].value;
if(str != ""){
document.getElementById(str).style.display = "none";
document.getElementById(str).innerHTML = "";
}
}
}
}
if(document.getElementById("make_task")){
document.getElementById("make_task").style.display = "none";
document.getElementById("make_task").innerHTML = "";
}
document.getElementById("make_prj").style.display = "none";
document.getElementById("make_prj").innerHTML = "";
if(document.getElementById("mod-prj")){
document.getElementById("mod-prj").style.display = "none";
document.getElementById("mod-prj").innerHTML = "";
}
}
function show_inputComm(divName,seq,tseq,sseq,mode){
loadHTMLFile("PRJ005.php?seq="+seq+"&tseq="+tseq+"&sseq="+sseq+"&DIVNAME="+divName+"&mode="+mode);
function loadHTMLFile(fName){
httpObj = createXMLHttpRequest(displayData);
if (httpObj)
{
httpObj.open(Get_BName(),fName,true);
httpObj.send(null);
}
}
function displayData()
{
if ((httpObj.readyState == 4) && (httpObj.status == 200)){
document.getElementById("sts").innerHTML = "";
document.getElementById(divName).innerHTML = httpObj.responseText;
document.getElementById(divName).style.display = "block";
}else{
document.getElementById("sts").innerHTML = "<b>Loading...</b>";
}
}
}
function add(intaddsts,num){
var strsel;
var stradd;
var inti;
var intchk;
var intPt;
var strArray = new Array();
var intflg=0;
//追加
if (intaddsts==1){
inti=document.e_gru.syain_add[num].length-1;
for(i=0;i<document.e_gru.syain_list[num].length;i++){
if(document.e_gru.syain_list[num].options[i].selected){
//データ存在チェック
for(intchk=0;intchk<document.e_gru.syain_add[num].length;intchk++){
if (document.e_gru.syain_list[num].options[i].value==document.e_gru.syain_add[num].options[intchk].value){
intflg=1;
break;
}
}
//配信リスト設定
if (intflg==0){
document.e_gru.syain_add[num].options[inti]=new Option(document.e_gru.syain_list[num].options[i].text,document.e_gru.syain_list[num].options[i].value);
inti=inti+1;
}
intflg=0;
}
}
//最終行空文字
document.e_gru.syain_add[num].options[inti]=new Option(" ","");
}
//削除
else{
//削除選択データ取得
inti=0;
for(i=0;i<document.e_gru.syain_add[num].length;i++){
if(document.e_gru.syain_add[num].options[i].selected){
strArray[inti]=document.e_gru.syain_add[num].options[i].value;
inti=inti+1;
}
}
for(i=0;i<strArray.length;i++){
for(intchk=0;intchk<document.e_gru.syain_add[num].length;intchk++){
if (strArray[i]==document.e_gru.syain_add[num].options[intchk].value){
if (document.e_gru.syain_add[num].options[intchk].value!=""){
document.e_gru.syain_add[num].options[intchk]=null;
break;
}
}
}
}
}
}
function cal_get(strDate, divid){
arrYMD = strDate.split("/");
if(divid == "calid"){
objY = document.e_gru.start_y;
objM = document.e_gru.start_m;
objD = document.e_gru.start_d;
}else if(divid == "calid2"){
objY = document.e_gru.end_y;
objM = document.e_gru.end_m;
objD = document.e_gru.end_d;
}
//年
for(i=0;i<objY.options.length;i++){
if(objY.options[i].value == arrYMD[0]){
objY.selectedIndex = i;
break;
}
}
//月
for(i=0;i<objM.options.length;i++){
if(objM.options[i].value == arrYMD[1]){
objM.selectedIndex = i;
break;
}
}
//日
for(i=0;i<objD.options.length;i++){
if(objD.options[i].value == arrYMD[2]){
objD.selectedIndex = i;
break;
}
}
cal1 = new JKL.Calendar("calid","e_gru","colname");
cal2 = new JKL.Calendar("calid2","e_gru","colname2");
}
var cal1 = new JKL.Calendar("calid","e_gru","colname");
var cal2 = new JKL.Calendar("calid2","e_gru","colname2");
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 ChangeFUP(prm){
if(document.getElementById("delF"+prm).checked == true){
document.getElementById("upfile"+prm).disabled = false;
}else{
document.getElementById("upfile"+prm).disabled = true;
obj = document.getElementById("span"+prm);
stO = obj.innerHTML;
obj.innerHTML = stO;
}
}
-->
</SCRIPT>