ZIS0500.tpl
6.67 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
<div class="SimMiddle">
<small><br></small>
<div class="SimTitle">
<span id="titletxt">資金収支実績表</span>
</div>
<div class="SimMain">
<br>
{$first_dsp_y}年〜{$last_dsp_y}年
金額単位({if $strUnit == "円" }{$strUnit}{else}{$strUnit}円{/if})
<!--
表示切替<select name="dispmode" onchange="location.href='ZIS0400.php'">
<option value="0" selected="selected">年単位</option>
<option value="1">月単位</option>
</select>
-->
<span class="printhidden">
<input type="button" value="<<前5年" onclick="move_navi(1);">
<input type="button" value="<前" onclick="move_navi(3);">
<input type="button" value="過去5年" onclick="move_navi(0);">
<input type="button" value="次>" onclick="move_navi(4);">
<input type="button" value="次5年>>" onclick="move_navi(2);">
<input type="button" value="Excelから印刷" onclick="show_excel();">
<input type="button" value="印刷" onclick="show_print();">
{*if $dispStart == 1*}
<br> <font size="small" color="red">※毎年決算月を表示します。</font>
{*/if*}
</span>
<hr>
<table class="printtable" style="margin-left:20px;" width="90%">
<tr>
<td align="left">
<table class="ZIS_Table" width="100%">
<tr>
<th align="center" nowrap>
</th>
{section name=idx loop=$strYTitle}
<th width="10%" align="center" nowrap>
{$strYTitle[idx]}
</th>
{if $smarty.section.idx.iteration < $strYTitle|@count }
<th width="8%" align="center" nowrap>
増減
</th>
{/if}
{/section}
</tr>
{section name=idx loop=$strData}
<tr>
<td style="{if $smarty.section.idx.iteration == 1
|| $smarty.section.idx.iteration == 5
|| $smarty.section.idx.iteration == 9
|| $smarty.section.idx.iteration == 15
|| $smarty.section.idx.iteration == 19
|| $smarty.section.idx.iteration == 23
|| $smarty.section.idx.iteration == 24
}background-color:#CFFFBF;{
elseif $smarty.section.idx.iteration == 26
}background-color:#DFDFDF;{/if}text-align:center;" align="center" nowrap>
{$strData[idx][3]}
</td>
{section name=idx2 loop=$strDataY}
<td {if $smarty.section.idx.iteration == 1
|| $smarty.section.idx.iteration == 5
|| $smarty.section.idx.iteration == 9
|| $smarty.section.idx.iteration == 15
|| $smarty.section.idx.iteration == 19
|| $smarty.section.idx.iteration == 23
|| $smarty.section.idx.iteration == 24
}style="background-color:#CFFFBF;" align="right">
{$strDataY[idx2][idx]}
{elseif $smarty.section.idx.iteration == 26
}style="background-color:#DFDFDF;" align="right">
{$strDataY[idx2][idx]}
{else
}style="background-color:#FFF8BF;" align="right">
{$strDataY[idx2][idx]}
{/if}
</td>
{if $smarty.section.idx2.iteration < $strDataY|@count }
<td {if $smarty.section.idx.iteration == 1
|| $smarty.section.idx.iteration == 5
|| $smarty.section.idx.iteration == 9
|| $smarty.section.idx.iteration == 15
|| $smarty.section.idx.iteration == 19
|| $smarty.section.idx.iteration == 23
|| $smarty.section.idx.iteration == 24
}style="background-color:#CFFFBF;"{
elseif $smarty.section.idx.iteration == 26
}style="background-color:#DFDFDF;"{/if} align="center" nowrap>
{if $strCompY[$smarty.section.idx2.iteration][idx] != 0}
<span style="color:#303080;">{$strCompY[$smarty.section.idx2.iteration][idx]}</span>
{/if}
</td>
{/if}
{/section}
</tr>
{if $smarty.section.idx.iteration == 15
|| $smarty.section.idx.iteration == 19
|| $smarty.section.idx.iteration == 23
}
<tr><td> </td><td colspan="9" nowrap> </td></tr>
{/if}
{/section}
</table>
</td>
</tr>
<tr>
<td align="left">
<table class="ZIS_Table" width="100%">
{section name=idx loop=$strDataSagaku}
<tr>
<!--
<td style="{if $smarty.section.idx.iteration == 1
|| $smarty.section.idx.iteration == 3
}background-color:#FFFFFF;{else}background-color:#CFFFBF;{/if}text-align:center;" nowrap>
-->
<td style="background-color:#CFFFBF;text-align:center;" nowrap>
{$strDataSagaku[idx][3]}
</td>
{section name=idx2 loop=$strDataSagakuY}
<!--
<td style="{if $smarty.section.idx.iteration == 1
|| $smarty.section.idx.iteration == 3
}background-color:#FFFFFF;{else}background-color:#CFFFBF;{/if}text-align:right;" width="10%" nowrap>
{*if $smarty.section.idx.iteration == 1*}
<input type="text" style="width:70px; text-align:right;" name="txtUriage" value="" onchange="uriage_calc();">
{*elseif $smarty.section.idx.iteration == 2*}
<input type="hidden" name="hdnUriage" value="{$strDataSagakuY[idx2][idx]|replace:",":""}" >
<input type="text" class="txtCalcReadonly" name="txtUriageRes" value="" readonly>
{*elseif $smarty.section.idx.iteration == 3*}
<input type="text" style="width:70px; text-align:right;" name="txtGenka" value="" onchange="genka_calc();">
{*elseif $smarty.section.idx.iteration == 4*}
<input type="hidden" name="hdnGenka" value="{$strDataSagakuY[idx2][idx]|replace:",":""}" >
<input type="text" class="txtCalcReadonly" name="txtGenkaRes" value="" readonly>
{*else*}
{$strDataSagakuY[idx2][idx]}
{*/if*}
-->
<td style="background-color:#CFFFBF;text-align:right;" width="10%" nowrap>
{$strDataSagakuY[idx2][idx]}
</td>
{if $smarty.section.idx2.iteration < $strDataSagakuY|@count }
<!--
<td style="{if $smarty.section.idx.iteration == 1
|| $smarty.section.idx.iteration == 3
}background-color:#FFFFFF;{else}background-color:#CFFFBF;{/if}text-align:right;" width="8%" nowrap>
-->
<td style="background-color:#CFFFBF;text-align:right;" width="8%" nowrap>
</td>
{/if}
{/section}
</tr>
{/section}
</table>
</td>
</tr>
</table>
<br>
</div>
<br>
</div>
<input type="hidden" name="dispStart" value="{$dispStart}">
<input type="hidden" name="start_y" value="{$start_y}">
<input type="hidden" name="start_m" value="{$start_m}">
<input type="hidden" name="end_y" value="{$end_y}">
<input type="hidden" name="end_m" value="{$end_m}">