SIM0500.tpl
13.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
<html>
<head>
<meta http-equiv="content-type" content="text/html; cahrset=euc-jp">
<meta http-equiv="content-style-type" content="text/css">
<meta name="robots" content="noindex, nofollow">
{literal}
<script language="javascript">
function chk_up(){
sYM = document.frm.yyyy.value+(("00"+ document.frm.mon.value).substr(("00"+document.frm.mon.value).length-2,2));
if(document.frm.hidKaishi.value > sYM){
alert("開始期間は"+(document.frm.hidKaishi.value).substr(0,4)+"年"+parseInt((document.frm.hidKaishi.value).substr(4,2))+"月以降を選択してください");
return false;
}
for(i=0;i<(document.frm.elements["shikin[1][]"].length);i++){
txtName = "shikin[1][]";
val = document.frm.elements[txtName][i].value;
if (val.match(/[^0-9]/g) && val != "") {
alert("不正な金額が入力されています");
return false;
}
txtName = "shikin[2][]";
val = document.frm.elements[txtName][i].value;
if (val.match(/[^0-9]/g) && val != "") {
alert("不正な金額が入力されています");
return false;
}
}
document.frm.target = "_self";
document.frm.action = "SIM0500.php";
document.frm.method="POST";
document.frm.submit();
}
function mycheck(val){
if(val != ""){
if (val.search(/^(\\|\$)?(0|-?[1-9]\d*)$/) != -1 ){
return true;
}else{
return false;
}
}else{
return true;
}
}
function show_print(){
window.open("","SIM_Print","status=no,menubar=no,favorites=no,scrollbars=yes,resizable=yes");
document.frm.target = "SIM_Print";
document.frm.action = "SIM0500.php?mode=p";
document.frm.method="POST";
document.frm.submit();
}
function csv_dl(){
document.frm.action = "SIM0600.php";
document.frm.method="POST";
document.frm.submit();
}
function lnk_input(auth,sMode,bSeq,dSeq,cSeq){
document.frm.sMode.value = sMode;
document.frm.bSeq.value = bSeq;
document.frm.dSeq.value = dSeq;
if(auth == 1 || auth == 99){
document.frm.action="SIM0210.php?chgmode=f&bSeq="+bSeq+"&dSeq="+dSeq+"&cSeq="+cSeq;
}else{
document.frm.action="SIM0200.php?chgmode=f";
}
document.frm.method="POST";
document.frm.submit();
}
var lay = new Array();
function Get_BName(){
if (navigator.appName == "Microsoft Internet Explorer"){
return "POST";
}else if (navigator.appName == "Netscape"){
return "GET";
}else{
return "GET";
}
}
function MoverStyle(n){
ret = Get_BName();
if(ret=="POST"){
lay[n] = document.getElementById("Td"+n);
lay[n].style.background = "#B7E7F7";
}
if(ret=="GET"){
lay[n].background = "#B7E7F7";
}
}
function MoutStyle(n){
ret = Get_BName();
if(ret=="POST"){
lay[n] = document.getElementById("Td"+n);
lay[n].style.background = "#F7F7F7";
}
if(ret=="GET"){
lay[n].background = "#F7F7F7";
}
}
</script>
{/literal}
<title>{$PHP_SYSNAME}</title>
<link rel="stylesheet" href="./templates/SIM.css" type="text/css" />
</head>
<body>
<form name="frm">
<div class="SimBody">
<!--{if $DISP_CNT == "3" || $DISP_CNT == ""}-->
<div class="SimHeader">
<img src="./templates/img/logo.gif" alt="{$PHP_SYSNAME}" border="0">
</div>
<div class="SimUserinfo">
<span class="NameText">{$PHP_GROUP_NAME} / {$PHP_BUMON_NAME} / {$PHP_USER_NAME}</span>
<span id="SimSpace"><!-- space --></span>
<span class="LinkText">
<a href = "./help/HELP0500.html" target="_blank">ヘルプ</a> /
<a href = "SIM9999.php">ログアウト</a>
</span>
</div>
<div class="SimMiddle">
<div class="SimTitle">
資金繰表
</div>
<div class="SimMain">
<!--{elseif $DISP_CNT == "6"}-->
<div class="SimHeader6">
<img src="./templates/img/logo.gif" alt="{$PHP_SYSNAME}" border="0">
</div>
<div class="SimUserinfo6">
<span class="NameText">{$PHP_GROUP_NAME} / {$PHP_BUMON_NAME} / {$PHP_USER_NAME}</span>
<span id="SimSpace"><!-- space --></span>
<span class="LinkText">
<a href = "./help/HELP0500.html" target="_blank">ヘルプ</a> /
<a href = "SIM9999.php">ログアウト</a>
</span>
</div>
<div class="SimMiddle6">
<div class="SimTitle6">
資金繰表
</div>
<div class="SimMain6">
<!--{else}-->
<div class="SimHeader12">
<img src="./templates/img/logo.gif" alt="{$PHP_SYSNAME}" border="0">
</div>
<div class="SimUserinfo12">
<span class="NameText">{$PHP_GROUP_NAME} / {$PHP_BUMON_NAME} / {$PHP_USER_NAME}</span>
<span id="SimSpace"><!-- space --></span>
<span class="LinkText">
<a href = "./help/HELP0500.html" target="_blank">ヘルプ</a> /
<a href = "SIM9999.php">ログアウト</a>
</span>
</div>
<div class="SimMiddle12">
<div class="SimTitle12">
資金繰表
</div>
<div class="SimMain12">
<!--{/if}-->
<table>
<tr>
<td class="SimMainHead" rowspan="2">
<select name="yyyy">
{$lstY}
</select>年
<select name="mon">
{$lstM}
</select>月から
<select name="kikan">
{$lstK}
</select>間
<br>
<span id="SimSpace"><!-- space --></span>
</td>
<td class="SimMainHead">
<input type="button" class="SimCancelButton" value=" メニューへ " onclick="location.href='SIM0100.php'">
</td>
<td class="SimMainHead" colspan="2">
<input type="button" class="SimCancelButton" value=" 印刷画面へ " onclick="show_print();">
</td>
</tr>
<tr>
<td class="SimMainHead">
<input type="button" class="SimOkButton" value="資金繰表更新" onclick="chk_up();">
</td>
<td class="SimMainHead">
<input type="button" class="SimOkButton" value="CSVファイル出力" onclick="csv_dl();">
</td>
<td>
<span class="SimComment">(単位:{$sUnitName})</span>
</td>
</tr>
</table>
<table class="SimShikinTab">
<tr>
<th class="SimShikinHead" nowrap rowspan="2" colspan="2"> </td>
<!--{section name=ymCnt loop=$dataYM}-->
<th class="SimShikinHead" nowrap colspan="3">{$dataYM[ymCnt][1]}月</td>
<!--{/section}-->
</tr>
<tr>
<!--{section name=ymCnt loop=$dataYM}-->
<th class="SimShikinHead" nowrap>{$DEFARR[9]}</td>
<th class="SimShikinHead" nowrap>{$DEFARR[8]}</td>
<th class="SimShikinHead" nowrap>残高</td>
<!--{/section}-->
</tr>
<tr>
<th class="SimShikin_s" nowrap colspan="2">前月繰越</td>
<!--{section name=ymCnt loop=$dataYM}-->
<td class="SimShikin_s" nowrap>{$dspkuri[1][ymCnt]}</td>
<td class="SimShikin_s" nowrap>{$dspkuri[2][ymCnt]}</td>
<!--{if intval($dspkuri[3][ymCnt]) >= 0}-->
<td class="SimShikin_s" nowrap>{$dspkuri[3][ymCnt]}</td>
<!--{else}-->
<td class="SimRedBoldTd" nowrap>{$dspkuri[3][ymCnt]}</td>
<!--{/if}-->
<!--{/section}-->
</tr>
<!--{section name=item loop=$bData}-->
<!--{section name=item2 loop=$dData[item]}-->
<tr>
<!-- 集計金額表示 -->
<!--{if $smarty.section.item2.index == 0}-->
<th class="SimShikinSide" nowrap rowspan="{$dData[item]|@count}">{$bData[item][1]}</td>
<!--{/if}-->
<th class="SimShikinSide" nowrap><a href="javascript:lnk_input({$PHP_USER_NYUKIN}, '2',{$bData[item][0]}, {$dData[item][item2][0]}, '999');">{$dData[item][item2][1]}</a></td>
<!--{section name=ymCnt loop=$dataYM}-->
<!-- {if $comData[item][item2][1][ymCnt] == 1 }-->
<td id="Td1_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}" class="SimShikinTd" nowrap onMouseOver="MoverStyle('1_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}');" onMouseOut="MoutStyle('1_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}');" onClick="lnk_input({$PHP_USER_NYUKIN}, '1',{$bData[item][0]}, {$dData[item][item2][0]}, '999');">
<img src="./templates/img/writemini.gif" alt="コメントがあります">
<!--{else}-->
<td id="Td1_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}" class="SimShikinTd" nowrap onMouseOver="MoverStyle('1_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}');" onMouseOut="MoutStyle('1_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}');" onClick="lnk_input({$PHP_USER_NYUKIN}, '1',{$bData[item][0]}, {$dData[item][item2][0]}, '999');">
<!--{/if}-->
{$dspData[item][item2][3][ymCnt]}
</td>
<!-- {if $comData[item][item2][2][ymCnt] == 1 }-->
<td id="Td2_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}" class="SimShikinTd" nowrap onMouseOver="MoverStyle('2_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}');" onMouseOut="MoutStyle('2_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}');" onClick="lnk_input({$PHP_USER_NYUKIN}, '2',{$bData[item][0]}, {$dData[item][item2][0]}, '999');">
<img src="./templates/img/writemini.gif" alt="コメントがあります">
<!--{else}-->
<td id="Td2_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}" class="SimShikinTd" nowrap onMouseOver="MoverStyle('2_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}');" onMouseOut="MoutStyle('2_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}');" onClick="lnk_input({$PHP_USER_NYUKIN}, '2',{$bData[item][0]}, {$dData[item][item2][0]}, '999');">
<!--{/if}-->
{$dspData[item][item2][4][ymCnt]}
</td>
<td class="SimShikinTd" nowrap> </td>
<!--{/section}-->
</tr>
<!--{/section}-->
<tr>
<th class="Sim_kaku_s" nowrap colspan="2">{$bData[item][1]}小計</td>
<!--{section name=ymCnt loop=$dataYM}-->
<td class="Sim_kaku_s" nowrap> {$dspminiTotal[item][1][ymCnt]}</td>
<td class="Sim_kaku_s" nowrap> {$dspminiTotal[item][2][ymCnt]}</td>
<!--{if intval($dspminiTotal[item][3][ymCnt]) >= 0}-->
<td class="Sim_kaku_s" nowrap> {$dspminiTotal[item][3][ymCnt]}</td>
<!--{else}-->
<td class="SimRedBoldTd" nowrap> {$dspminiTotal[item][3][ymCnt]}</td>
<!--{/if}-->
<!--{/section}-->
</tr>
<!--{/section}-->
<tr>
<th class="SimKeihiTd" nowrap colspan="2">入出金計</td>
<!--{section name=ymCnt loop=$dataYM}-->
<td class="SimKeihiTd" nowrap> {$dspkeihi[1][ymCnt]}</td>
<td class="SimKeihiTd" nowrap> {$dspkeihi[2][ymCnt]}</td>
<!--{if intval($dspkeihi[3][ymCnt]) >= 0}-->
<td class="SimKeihiTd" nowrap> {$dspkeihi[3][ymCnt]}</td>
<!--{else}-->
<td class="SimRedBoldTd" nowrap> {$dspkeihi[3][ymCnt]}</td>
<!--{/if}-->
<!--{/section}-->
</tr>
<tr>
<th class="SimChoseTd" nowrap colspan="2">予実算差額調整</td>
<!--{section name=ymCnt loop=$dataYM}-->
<td class="SimChoseTd" nowrap><input name="shikin[1][]" type="text" size="8" style="text-align:right;" value="{$shikin[1][ymCnt]}"></td>
<td class="SimChoseTd" nowrap><input name="shikin[2][]" type="text" size="8" style="text-align:right;" value="{$shikin[2][ymCnt]}"></td>
<td class="SimChoseTd" nowrap> {$dspshikin[3][ymCnt]}<input type="hidden" name="shikin[4][]" value="{$dataYM[ymCnt][0]}/{$dataYM[ymCnt][1]}"></td>
<!--{/section}-->
</tr>
<tr>
<th class="SimShikinHead" nowrap rowspan="2" colspan="2"> </td>
<!--{section name=ymCnt loop=$dataYM}-->
<th class="SimShikinHead" nowrap>{$DEFARR[9]}</td>
<th class="SimShikinHead" nowrap>{$DEFARR[8]}</td>
<th class="SimShikinHead" nowrap>残高</td>
<!--{/section}-->
</tr>
<tr>
<!--{section name=ymCnt loop=$dataYM}-->
<th class="SimShikinHead" nowrap colspan="3">{$dataYM[ymCnt][1]}月</td>
<!--{/section}-->
</tr>
</table>
<table>
<tr>
<td class="SimMainHead" rowspan="2">
<span class="SimCommentBox" style="width:340px;">
※ご注意<br>
予実算差額調整は直接入力し、<br>
「資金繰表更新」をクリックしてください。
</span>
</td>
<td class="SimMainHead">
<input type="button" class="SimCancelButton" value=" メニューへ " onclick="location.href='SIM0100.php'">
</td>
<td class="SimMainHead">
<input type="button" class="SimCancelButton" value=" 印刷画面へ " onclick="show_print();">
</td>
<td>
<span class="SimComment">(単位:{$sUnitName})</span>
</td>
</tr>
<tr>
<td class="SimMainHead">
<input type="button" class="SimOkButton" value="資金繰表更新" onclick="chk_up();">
</td>
<td class="SimMainHead" colspan="2">
<input type="button" class="SimOkButton" value="CSVファイル出力" onclick="csv_dl();">
</td>
</tr>
</table>
</div>
</div>
<!--{if $DISP_CNT == "3" || $DISP_CNT == ""}-->
<div class="SimUserinfo">
<!--{elseif $DISP_CNT == "6"}-->
<div class="SimUserinfo6">
<!--{else}-->
<div class="SimUserinfo12">
<!--{/if}-->
<span class="NameText"></span>
<span id="SimSpace"><!-- space --></span>
<span class="LinkText">
<a href = "{$DEFARR[1]}" target="_blank">ホームページへ</a>
</span>
</div>
<!--{if $DISP_CNT == "3" || $DISP_CNT == ""}-->
<div class="SimFooter">
<!--{elseif $DISP_CNT == "6"}-->
<div class="SimFooter6">
<!--{else}-->
<div class="SimFooter12">
<!--{/if}-->
<a href="{$DEFARR[3]}" target="_blank" title="メディアテック(株)ホームページへ">© Copyright2006-2009 All rights reserved by Mediatech. Co., Ltd.</a>
</div>
</div>
<input type="hidden" name="hidKaishi" value="{$hidKaishi}">
<input type="hidden" name="sMode" value="">
<input type="hidden" name="bSeq" value="">
<input type="hidden" name="dSeq" value="">
</form>
</body>
</html>