%%08^08D^08DE198F%%ZIS0130.tpl.php
12.6 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
<?PHP /* Smarty version 2.6.22, created on 2010-06-28 10:27:24
compiled from ZIS0130.tpl */ ?>
<?PHP require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'math', 'ZIS0130.tpl', 26, false),array('modifier', 'number_format', 'ZIS0130.tpl', 51, false),array('modifier', 'replace', 'ZIS0130.tpl', 54, false),)), $this); ?>
<div width="95%"><font size="5px">資金収支実績表</font></div>
<div width="95%"><font size="5px"> (<?PHP echo $this->_tpl_vars['years_lst'][0]; ?>
.<?PHP echo $this->_tpl_vars['months_lst'][0]; ?>
〜 <?PHP echo $this->_tpl_vars['years_lst'][11]; ?>
.<?PHP echo $this->_tpl_vars['months_lst'][11]; ?>
)</font></div>
<table class="needless">
<tr><td>
<input type="button" class="btnTemp" value="印刷" onclick="printer();">
<input type="button" class="btnCancel" value="キャンセル" onclick="winClose();">
</td></tr>
</table>
<div style="font-size:0.9em; width:90%; text-align:right;">(単位:<?PHP echo $this->_tpl_vars['strUnit']; ?>
<?PHP if ($this->_tpl_vars['strUnit'] !== "円"): ?>円<?PHP endif; ?>)</div>
<table width="95%" style="font-size:9pt; border-collapse:collapse;" border="1" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" >
<tr>
<th align="center" style="border:1px #000 solid;">大区分</th>
<th align="center" style="border:1px #000 solid;">中区分</th>
<th align="center" style="border:1px #000 solid;">小区分</th>
<th align="center" style="border:1px #000 solid;">科目</th>
<th align="center" style="border:1px #000 solid;">繰越金</th>
<th align="center" style="border:1px #000 solid;">区分</th>
<?PHP unset($this->_sections['mon']);
$this->_sections['mon']['name'] = 'mon';
$this->_sections['mon']['loop'] = is_array($_loop=$this->_tpl_vars['months_lst']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['mon']['show'] = true;
$this->_sections['mon']['max'] = $this->_sections['mon']['loop'];
$this->_sections['mon']['step'] = 1;
$this->_sections['mon']['start'] = $this->_sections['mon']['step'] > 0 ? 0 : $this->_sections['mon']['loop']-1;
if ($this->_sections['mon']['show']) {
$this->_sections['mon']['total'] = $this->_sections['mon']['loop'];
if ($this->_sections['mon']['total'] == 0)
$this->_sections['mon']['show'] = false;
} else
$this->_sections['mon']['total'] = 0;
if ($this->_sections['mon']['show']):
for ($this->_sections['mon']['index'] = $this->_sections['mon']['start'], $this->_sections['mon']['iteration'] = 1;
$this->_sections['mon']['iteration'] <= $this->_sections['mon']['total'];
$this->_sections['mon']['index'] += $this->_sections['mon']['step'], $this->_sections['mon']['iteration']++):
$this->_sections['mon']['rownum'] = $this->_sections['mon']['iteration'];
$this->_sections['mon']['index_prev'] = $this->_sections['mon']['index'] - $this->_sections['mon']['step'];
$this->_sections['mon']['index_next'] = $this->_sections['mon']['index'] + $this->_sections['mon']['step'];
$this->_sections['mon']['first'] = ($this->_sections['mon']['iteration'] == 1);
$this->_sections['mon']['last'] = ($this->_sections['mon']['iteration'] == $this->_sections['mon']['total']);
?>
<th align="center" style="border:1px #000 solid;"><?PHP echo $this->_tpl_vars['months_lst'][$this->_sections['mon']['index']]; ?>
月</th>
<?PHP endfor; endif; ?>
</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 width="8%" style="border:1px #000 solid;" border="1" 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]; ?>
</th>
<?PHP endif; ?>
<!-- 第2階層 -->
<?PHP if ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][20] != ""): ?>
<th width="8%" style="border:1px #000 solid;" border="1" 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]; ?>
</th>
<?PHP elseif ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][27] == 'row'): ?>
<th width="8%" style="border:1px #000 solid;" border="1" align="left"></td>
<?PHP endif; ?>
<!-- 第3階層 -->
<?PHP if ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][30] != ""): ?>
<th width="13%" style="border:1px #000 solid;" border="1" 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]; ?>
</th>
<?PHP elseif ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][37] == 'row'): ?>
<th width="13%" style="border:1px #000 solid;" border="1" align="left"></td>
<?PHP endif; ?>
<!-- 第4階層 -->
<?PHP if ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][40] != ""): ?>
<td width="13%" style="border:1px #000 solid;" border="1" 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>
<td border="1" style="border:1px #000 solid;" align="center" <?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][47]; ?>
>
<?PHP echo ((is_array($_tmp=$this->_tpl_vars['Kanjyo_Money'][0][$this->_sections['idx']['index']][2])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
</td>
<td border="1" style="border:1px #000 solid;" align="center" <?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][47]; ?>
><?PHP echo ((is_array($_tmp=$this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][49])) ? $this->_run_mod_handler('replace', true, $_tmp, "方", "") : smarty_modifier_replace($_tmp, "方", "")); ?>
</td>
<?PHP unset($this->_sections['mon']);
$this->_sections['mon']['name'] = 'mon';
$this->_sections['mon']['loop'] = is_array($_loop=$this->_tpl_vars['months_lst']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['mon']['show'] = true;
$this->_sections['mon']['max'] = $this->_sections['mon']['loop'];
$this->_sections['mon']['step'] = 1;
$this->_sections['mon']['start'] = $this->_sections['mon']['step'] > 0 ? 0 : $this->_sections['mon']['loop']-1;
if ($this->_sections['mon']['show']) {
$this->_sections['mon']['total'] = $this->_sections['mon']['loop'];
if ($this->_sections['mon']['total'] == 0)
$this->_sections['mon']['show'] = false;
} else
$this->_sections['mon']['total'] = 0;
if ($this->_sections['mon']['show']):
for ($this->_sections['mon']['index'] = $this->_sections['mon']['start'], $this->_sections['mon']['iteration'] = 1;
$this->_sections['mon']['iteration'] <= $this->_sections['mon']['total'];
$this->_sections['mon']['index'] += $this->_sections['mon']['step'], $this->_sections['mon']['iteration']++):
$this->_sections['mon']['rownum'] = $this->_sections['mon']['iteration'];
$this->_sections['mon']['index_prev'] = $this->_sections['mon']['index'] - $this->_sections['mon']['step'];
$this->_sections['mon']['index_next'] = $this->_sections['mon']['index'] + $this->_sections['mon']['step'];
$this->_sections['mon']['first'] = ($this->_sections['mon']['iteration'] == 1);
$this->_sections['mon']['last'] = ($this->_sections['mon']['iteration'] == $this->_sections['mon']['total']);
?>
<td width="4%" style="border:1px #000 solid;" border="1" align="center" <?PHP echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][47]; ?>
>
<?PHP echo ((is_array($_tmp=$this->_tpl_vars['Kanjyo_Money'][$this->_sections['mon']['index']][$this->_sections['idx']['index']][1])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
</td>
<?PHP endfor; endif; ?>
<?PHP elseif ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][47] == 'row'): ?>
<td width="13%" style="border:1px #000 solid;" border="1" align="left"></td>
<td style="border:1px #000 solid;" border="1" align="center"></td>
<td style="border:1px #000 solid;" border="1" align="center"></td>
<?PHP unset($this->_sections['mon']);
$this->_sections['mon']['name'] = 'mon';
$this->_sections['mon']['loop'] = is_array($_loop=$this->_tpl_vars['months_lst']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['mon']['show'] = true;
$this->_sections['mon']['max'] = $this->_sections['mon']['loop'];
$this->_sections['mon']['step'] = 1;
$this->_sections['mon']['start'] = $this->_sections['mon']['step'] > 0 ? 0 : $this->_sections['mon']['loop']-1;
if ($this->_sections['mon']['show']) {
$this->_sections['mon']['total'] = $this->_sections['mon']['loop'];
if ($this->_sections['mon']['total'] == 0)
$this->_sections['mon']['show'] = false;
} else
$this->_sections['mon']['total'] = 0;
if ($this->_sections['mon']['show']):
for ($this->_sections['mon']['index'] = $this->_sections['mon']['start'], $this->_sections['mon']['iteration'] = 1;
$this->_sections['mon']['iteration'] <= $this->_sections['mon']['total'];
$this->_sections['mon']['index'] += $this->_sections['mon']['step'], $this->_sections['mon']['iteration']++):
$this->_sections['mon']['rownum'] = $this->_sections['mon']['iteration'];
$this->_sections['mon']['index_prev'] = $this->_sections['mon']['index'] - $this->_sections['mon']['step'];
$this->_sections['mon']['index_next'] = $this->_sections['mon']['index'] + $this->_sections['mon']['step'];
$this->_sections['mon']['first'] = ($this->_sections['mon']['iteration'] == 1);
$this->_sections['mon']['last'] = ($this->_sections['mon']['iteration'] == $this->_sections['mon']['total']);
?>
<td width="4%" style="border:1px #000 solid;" border="1" align="center"></td>
<?PHP endfor; endif; ?>
<?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']; ?>
">