%%8E^8E4^8E4A6B21%%ZIS0100.tpl.php
15.8 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
<?PHP /* Smarty version 2.6.22, created on 2010-07-02 10:23:22
compiled from ZIS0100.tpl */ ?>
<?PHP require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'math', 'ZIS0100.tpl', 73, false),array('modifier', 'replace', 'ZIS0100.tpl', 79, false),)), $this); ?>
</form>
<div class="SimMiddle">
<small><br></small>
<div class="SimTitle"><font size="5px">資金収支データ入力</font></div>
<br>
<table class="printhiddenborder" width="99%">
<tr>
<TD class="printhiddenborder" align="center">
<form name="frmfile" enctype="multipart/form-data" method="post">
<table class="printhidden" width="80%">
<tr>
<td align="left">
</td>
<td align="right">一括入力はこちらから ⇒
<input class="printhidden" type="button" value="CSV雛形ダウンロード" onclick="location.href='./ZIS0110.php?disp_y=<?PHP echo $this->_tpl_vars['disp_y']; ?>
&disp_m=<?PHP echo $this->_tpl_vars['disp_m']; ?>
';">
<input class="printhidden" type="file" name="fileup" onchange="setFilePath(this);">
<input class="printhidden" type="button" name="csvupload" value="CSVアップロード" onclick="checkFilePath();" disabled>
</td>
</tr>
<tr>
<td colspan="2"><hr></td>
</tr>
</table>
</form>
<form name="frmval">
<table class="printhidden" width="80%" onload="calc_shokei();" >
<tr>
<td align="left">
<select name="ZIS_cboY" onchange="date_chg();">
<?PHP echo $this->_tpl_vars['lstY']; ?>
</select>年
<select name="ZIS_cboM" onchange="date_chg();">
<?PHP echo $this->_tpl_vars['lstM']; ?>
</select>月
<input type="button" value="<前月" onclick="move_navi(1);">
<input type="button" value="今月" onclick="move_navi(0);">
<input type="button" value="翌月>" onclick="move_navi(2);">
<input type="button" value="小計の再計算" onclick="calc_shokei();">
</td>
<td align="right">
<input type="button" value="印刷" onclick="show_print();">
</td>
<td align="right">
<input type="button" value="データ更新" onclick="up_data('<?PHP echo $this->_tpl_vars['dispStart']; ?>
');">
</td>
</tr>
<?PHP if ($this->_tpl_vars['dispStart'] == 1): ?>
<tr>
<td colspan="3" align="left"><font color="red">※決算翌月です。初期繰越金もご入力ください。</font></td>
</tr>
<?PHP endif; ?>
</table>
</td>
</tr>
<TR>
<TD align="center">
<table class="printtable" width="80%" border="0" cellpadding="1" cellspacing="1" bgcolor="#000000">
<tr>
<th align="center" class="ConfKubunTh">大区分</th>
<th align="center" class="ConfKubunTh">中区分</th>
<th align="center" class="ConfKubunTh">小区分</th>
<th align="center" class="ConfKubunTh">科目</th>
<?PHP if ($this->_tpl_vars['dispStart'] == 1): ?>
<th align="center" class="ConfKubunTh">初期繰越金額(<?PHP echo $this->_tpl_vars['strUnit']; ?>
<?PHP if ($this->_tpl_vars['strUnit'] !== "円"): ?>円<?PHP endif; ?>)</th>
<?PHP endif; ?>
<th align="center" class="ConfKubunTh">区分</th>
<th align="center" class="ConfKubunTh">入 力 欄(<?PHP echo $this->_tpl_vars['strUnit']; ?>
<?PHP if ($this->_tpl_vars['strUnit'] !== "円"): ?>円<?PHP endif; ?>)</th>
</tr>
<?PHP $this->assign('lineCnt', 0); ?>
<?PHP unset($this->_sections['idx']);
$this->_sections['idx']['name'] = 'idx';
$this->_sections['idx']['loop'] = is_array($_loop=$this->_tpl_vars['Kanjyo_Data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['idx']['show'] = true;
$this->_sections['idx']['max'] = $this->_sections['idx']['loop'];
$this->_sections['idx']['step'] = 1;
$this->_sections['idx']['start'] = $this->_sections['idx']['step'] > 0 ? 0 : $this->_sections['idx']['loop']-1;
if ($this->_sections['idx']['show']) {
$this->_sections['idx']['total'] = $this->_sections['idx']['loop'];
if ($this->_sections['idx']['total'] == 0)
$this->_sections['idx']['show'] = false;
} else
$this->_sections['idx']['total'] = 0;
if ($this->_sections['idx']['show']):
for ($this->_sections['idx']['index'] = $this->_sections['idx']['start'], $this->_sections['idx']['iteration'] = 1;
$this->_sections['idx']['iteration'] <= $this->_sections['idx']['total'];
$this->_sections['idx']['index'] += $this->_sections['idx']['step'], $this->_sections['idx']['iteration']++):
$this->_sections['idx']['rownum'] = $this->_sections['idx']['iteration'];
$this->_sections['idx']['index_prev'] = $this->_sections['idx']['index'] - $this->_sections['idx']['step'];
$this->_sections['idx']['index_next'] = $this->_sections['idx']['index'] + $this->_sections['idx']['step'];
$this->_sections['idx']['first'] = ($this->_sections['idx']['iteration'] == 1);
$this->_sections['idx']['last'] = ($this->_sections['idx']['iteration'] == $this->_sections['idx']['total']);
?>
<?PHP echo smarty_function_math(array('equation' => "x + 1",'x' => $this->_tpl_vars['lineCnt'],'assign' => 'lineCnt'), $this);?>
<tr>
<!-- 第1階層 -->
<?PHP if ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][10] != ""): ?>
<th class="ZISMst1Td" align="left" <?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][17]; ?>
>
<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][10]; ?>
<input type="hidden" name="rowspan[]" value="<?PHP echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][17])) ? $this->_run_mod_handler('replace', true, $_tmp, "rowspan=", "") : smarty_modifier_replace($_tmp, "rowspan=", "")))) ? $this->_run_mod_handler('replace', true, $_tmp, "\"", "") : smarty_modifier_replace($_tmp, "\"", "")); ?>
">
<input type="hidden" name="startrow[]" value="<?PHP echo $this->_sections['idx']['iteration']; ?>
">
<hr width="90%" />
<span style="font-weight:400;font-size:small;">小計</span>
<input class="txtCalcReadonly" type="text" name="calc_result[]" id="calc<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][11]; ?>
_<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][12]; ?>
_<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][13]; ?>
_<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][14]; ?>
" value="" readonly>
</th>
<?PHP endif; ?>
<!-- 第2階層 -->
<?PHP if ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][20] != ""): ?>
<th class="ZISMst1Td" align="left" <?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][27]; ?>
>
<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][20]; ?>
<input type="hidden" name="rowspan[]" value="<?PHP echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][27])) ? $this->_run_mod_handler('replace', true, $_tmp, "rowspan=", "") : smarty_modifier_replace($_tmp, "rowspan=", "")))) ? $this->_run_mod_handler('replace', true, $_tmp, "\"", "") : smarty_modifier_replace($_tmp, "\"", "")); ?>
">
<input type="hidden" name="startrow[]" value="<?PHP echo $this->_sections['idx']['iteration']; ?>
">
<hr width="90%" />
<span style="font-weight:400;font-size:small;">小計</span>
<input class="txtCalcReadonly" type="text" name="calc_result[]" id="calc<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][21]; ?>
_<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][22]; ?>
_<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][23]; ?>
_<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][24]; ?>
" value="" readonly>
</th>
<?PHP elseif ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][27] == 'row'): ?>
<th class="ZISMst1Td" align="left"></th>
<?PHP endif; ?>
<!-- 第3階層 -->
<?PHP if ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][30] != ""): ?>
<th class="ZISMst1Td" align="left" <?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][37]; ?>
>
<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][30]; ?>
<input type="hidden" name="rowspan[]" value="<?PHP echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][37])) ? $this->_run_mod_handler('replace', true, $_tmp, "rowspan=", "") : smarty_modifier_replace($_tmp, "rowspan=", "")))) ? $this->_run_mod_handler('replace', true, $_tmp, "\"", "") : smarty_modifier_replace($_tmp, "\"", "")); ?>
">
<input type="hidden" name="startrow[]" value="<?PHP echo $this->_sections['idx']['iteration']; ?>
">
<hr width="90%" />
<?PHP if (substr ( $this->_tpl_vars['Kanjyo_Money'][$this->_sections['idx']['index']][3] , -10 , 10 ) == ",8,1,4,1,0"): ?>
<span style="font-weight:400;font-size:small;">入力値から計算<br /></span>
<input class="txtCalcReadonly" type="text" name="calc_result[]" id="calc<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][31]; ?>
_<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][32]; ?>
_<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][33]; ?>
_<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][34]; ?>
" value="" readonly>
<?PHP else: ?>
<span style="font-weight:400;font-size:small;">小計</span>
<input class="txtCalcReadonly" type="text" name="calc_result[]" id="calc<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][31]; ?>
_<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][32]; ?>
_<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][33]; ?>
_<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][34]; ?>
" value="" readonly>
<?PHP endif; ?>
</th>
<?PHP elseif ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][37] == 'row'): ?>
<th class="ZISMst1Td" align="left"></th>
<?PHP endif; ?>
<!-- 第4階層 -->
<?PHP if ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][40] != ""): ?>
<td class="<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][46]; ?>
" align="left" <?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][47]; ?>
>
<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][40]; ?>
</td>
<?PHP if ($this->_tpl_vars['dispStart'] == 1): ?>
<td class="<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][46]; ?>
" align="center" <?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][47]; ?>
>
<input type="text" name="inputInitData[]" style="text-align:right;" size="20" maxlength="15" value="<?PHP echo $this->_tpl_vars['Kanjyo_Money'][$this->_sections['idx']['index']][2]; ?>
">
</td>
<?PHP endif; ?>
<td class="<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][46]; ?>
" align="center" <?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][47]; ?>
><?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][49]; ?>
</td>
<td class="<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][46]; ?>
" align="center" <?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][47]; ?>
>
<?PHP if (substr ( $this->_tpl_vars['Kanjyo_Money'][$this->_sections['idx']['index']][3] , -10 , 10 ) == ",8,1,4,1,0"): ?>
<input type="text" class="txtInput" name="inputData[]" style="text-align:right;" size="20" maxlength="15" value="<?PHP echo $this->_tpl_vars['Kanjyo_Money'][$this->_sections['idx']['index']][1]; ?>
" onchange="calc_soneki();">
<input type="hidden" name="inputSeq[]" value="<?PHP echo $this->_tpl_vars['Kanjyo_Money'][$this->_sections['idx']['index']][3]; ?>
">
<?PHP else: ?>
<input type="text" class="txtInput" name="inputData[]" style="text-align:right;" size="20" maxlength="15" value="<?PHP echo $this->_tpl_vars['Kanjyo_Money'][$this->_sections['idx']['index']][1]; ?>
" onchange="calc_shokei();">
<input type="hidden" name="inputSeq[]" value="<?PHP echo $this->_tpl_vars['Kanjyo_Money'][$this->_sections['idx']['index']][3]; ?>
">
<?PHP endif; ?>
<?PHP if ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][49] == "貸方"): ?>
<input type="hidden" name="inputMode[]" value="1">
<?PHP else: ?>
<input type="hidden" name="inputMode[]" value="-1">
<?PHP endif; ?>
</td>
<?PHP elseif ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][47] == 'row'): ?>
<td class="<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][46]; ?>
" align="left"></td>
<?PHP if ($this->_tpl_vars['dispStart'] == 1): ?>
<td class="<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][46]; ?>
" align="center"></td>
<?PHP endif; ?>
<td class="<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][46]; ?>
" align="center"></td>
<td class="<?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][46]; ?>
" align="center"></td>
<?PHP endif; ?>
</tr>
<!-- <tr><td class="ConfKubunTd" align="left" colspan="16"><div id="input_<?PHP echo $this->_tpl_vars['lineCnt']; ?>
"></div></td></tr> -->
<?PHP endfor; endif; ?>
</table>
<input name="div_count" type="hidden" value="<?PHP echo $this->_tpl_vars['lineCnt']; ?>
">
<input name="pMode" type="hidden" value="">
<input name="pRank" type="hidden" value="">
<input name="pkseq1" type="hidden" value="">
<input name="pkseq2" type="hidden" value="">
<input name="pkseq3" type="hidden" value="">
<input name="pkseq4" type="hidden" value="">
<input name="pkseq5" type="hidden" value="">
<input name="dispStart" type="hidden" value="<?PHP echo $this->_tpl_vars['dispStart']; ?>
">
<input name="zis_unit" type="hidden" value="<?PHP echo $this->_tpl_vars['zis_unit']; ?>
">
<input name="dsp_y" type="hidden" value="">
<input name="dsp_m" type="hidden" value="">
<input name="zis_unit" type="hidden" value="<?PHP echo $this->_tpl_vars['zis_unit']; ?>
">
</TD>
</TR>
<tr>
<TD align="center">
<table class="printhidden" width="80%">
<tr>
<td align="right" width="400">
<input type="button" value="小計の再計算" onclick="calc_shokei();">
</td>
<td align="right" width="250">
<input type="button" value="印刷" onclick="show_print();">
</td>
<td align="right">
<input type="button" value="データ更新" onclick="up_data('<?PHP echo $this->_tpl_vars['dispStart']; ?>
');">
</td>
</tr>
<?PHP if ($this->_tpl_vars['dispStart'] == 1): ?>
<tr>
<td colspan="3" align="left"><font color="red">※決算翌月です。初期繰越金もご入力ください。</font></td>
</tr>
<?PHP endif; ?>
</table>
</td>
</tr>
</table>
<br>
<br>
</div>