SIM0501.tpl 11.5 KB
<body class="PrintBody">


{assign var='widx' value=$dataYM|@count}
{assign var='widx' value=$widx-1}
{assign var='endYY' value=$dataYM[$widx][0]}
{assign var='endMM' value=$dataYM[$widx][1]}

<H2>資金繰表  ({$dataYM[0][0]}.{$dataYM[0][1]}〜{$endYY}.{$endMM})</H2>
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0" class="needless">
	<TR>
		<TD align="left">
			<input type="button" value="印刷" onclick="printer();">
			 <input type="button" value="閉じる" onclick="winClose();">
		</TD>
	</TR>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="680" border="0">
	<TR>
		<td align="right">
			<span class="SimComment">(単位:{$sUnitName})</span>
		</td>
	</TR>
</TABLE>
<div>
<table class="PrintTab">
	<tr>
		<th nowrap rowspan="2" colspan="2">{$dataYM[0][0]}年&nbsp;</td>
<!--{section name=ymCnt1 loop=$dataYM start=0 step=1 max=3}-->
		<th nowrap colspan="3">{$dataYM[ymCnt1][1]}月</td>
<!--{/section}-->
	</tr>
	<tr>
<!--{section name=ymCnt1 loop=$dataYM start=0 step=1 max=3}-->
		<th nowrap>{$DEFARR[9]}</td>
		<th nowrap>{$DEFARR[8]}</td>
		<th nowrap>残高</td>
<!--{/section}-->
	</tr>
	<tr>
		<th nowrap colspan="2">前月繰越</td>
<!--{section name=ymCnt1 loop=$dataYM start=0 step=1 max=3}-->
		<td nowrap align="right">{$dspkuri[1][ymCnt1]}</td>
		<td nowrap align="right">{$dspkuri[2][ymCnt1]}</td>
		<td nowrap align="right">{$dspkuri[3][ymCnt1]}</td>
<!--{/section}-->
	</tr>

<!--{section name=item1 loop=$bData}-->
	<!--{section name=subitem1 loop=$dData[item1]}-->

	<tr>
		<!--{if $smarty.section.subitem1.index == 0}-->
		<th nowrap rowspan="{$dData[item1]|@count}">{$bData[item1][1]}</td>
		<!--{/if}-->
		<th nowrap>{$dData[item1][subitem1][1]}</td>
		<!--{section name=ymCnt1 loop=$dataYM start=0 step=1 max=3}-->
			<td nowrap align="right">&nbsp;{$dspData[item1][subitem1][3][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspData[item1][subitem1][4][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;</td>
		<!--{/section}-->
	</tr>

	<!--{/section}-->
	<tr>
		<th nowrap colspan="2">{$bData[item1][1]}小計</td>
		<!--{section name=ymCnt1 loop=$dataYM start=0 step=1 max=3}-->
			<td nowrap align="right">&nbsp;{$dspminiTotal[item1][1][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspminiTotal[item1][2][ymCnt1]}</td>
			<!--{if intval($dspminiTotal[item1][3][ymCnt1]) > 0}-->
				<td nowrap align="right">&nbsp;{$dspminiTotal[item1][3][ymCnt1]}</td>
			<!--{else}-->
				<td class="PrintRed" nowrap>&nbsp;{$dspminiTotal[item1][3][ymCnt1]}</td>
			<!--{/if}-->
		<!--{/section}-->
	</tr>
<!--{/section}-->
	<tr>
		<th nowrap colspan="2">入出金計</td>
		<!--{section name=ymCnt1 loop=$dataYM start=0 step=1 max=3}-->
			<td nowrap align="right">&nbsp;{$dspkeihi[1][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspkeihi[2][ymCnt1]}</td>
			<!--{if intval($dspkeihi[3][ymCnt1]) > 0}-->
				<td nowrap align="right">&nbsp;{$dspkeihi[3][ymCnt1]}</td>
			<!--{else}-->
				<td class="PrintRed" nowrap>&nbsp;{$dspkeihi[3][ymCnt1]}</td>
			<!--{/if}-->

		<!--{/section}-->
	</tr>
	<tr>
		<th nowrap colspan="2">予実算差額調整</td>
		<!--{section name=ymCnt1 loop=$dataYM start=0 step=1 max=3}-->
			<td nowrap align="right">&nbsp;{$dspshikin[1][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspshikin[2][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspshikin[3][ymCnt1]}</td>
		<!--{/section}-->
	</tr>
</table>
</div>
<br>

<!--{if $DISP_CNT == "6" || $DISP_CNT == "12"}-->
<div class="PrintBreak"><span class="PrintHidden">-</span></div>
<table class="PrintTab">
	<tr>
		<th nowrap rowspan="2" colspan="2">{$dataYM[0][0]}年&nbsp;</td>
<!--{section name=ymCnt1 loop=$dataYM start=3 step=1 max=3}-->
		<th nowrap colspan="3">{$dataYM[ymCnt1][1]}月</td>
<!--{/section}-->
	</tr>
	<tr>
<!--{section name=ymCnt1 loop=$dataYM start=3 step=1 max=3}-->
		<th nowrap>{$DEFARR[9]}</td>
		<th nowrap>{$DEFARR[8]}</td>
		<th nowrap>残高</td>
<!--{/section}-->
	</tr>
	<tr>
		<th nowrap colspan="2">前月繰越</td>
<!--{section name=ymCnt1 loop=$dataYM start=3 step=1 max=3}-->
		<td nowrap align="right">{$dspkuri[1][ymCnt1]}</td>
		<td nowrap align="right">{$dspkuri[2][ymCnt1]}</td>
		<td nowrap align="right">{$dspkuri[3][ymCnt1]}</td>
<!--{/section}-->
	</tr>

<!--{section name=item1 loop=$bData}-->
	<!--{section name=subitem1 loop=$dData[item1]}-->
	<tr>
		<!--{if $smarty.section.subitem1.index == 0}-->
		<th nowrap rowspan="{$dData[item1]|@count}">{$bData[item1][1]}</td>
		<!--{/if}-->
		<th nowrap>{$dData[item1][subitem1][1]}</td>
		<!--{section name=ymCnt1 loop=$dataYM start=3 step=1 max=3}-->
			<td nowrap align="right">&nbsp;{$dspData[item1][subitem1][3][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspData[item1][subitem1][4][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;</td>
		<!--{/section}-->
	</tr>

	<!--{/section}-->
	<tr>
		<th nowrap colspan="2">{$bData[item1][1]}小計</td>
		<!--{section name=ymCnt1 loop=$dataYM start=3 step=1 max=3}-->
			<td nowrap align="right">&nbsp;{$dspminiTotal[item1][1][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspminiTotal[item1][2][ymCnt1]}</td>
			<!--{if intval($dspminiTotal[item1][3][ymCnt1]) > 0}-->
				<td nowrap align="right">&nbsp;{$dspminiTotal[item1][3][ymCnt1]}</td>
			<!--{else}-->
				<td class="PrintRed" nowrap>&nbsp;{$dspminiTotal[item1][3][ymCnt1]}</td>
			<!--{/if}-->
		<!--{/section}-->
	</tr>
<!--{/section}-->
	<tr>
		<th nowrap colspan="2">入出金計</td>
		<!--{section name=ymCnt1 loop=$dataYM start=3 step=1 max=3}-->
			<td nowrap align="right">&nbsp;{$dspkeihi[1][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspkeihi[2][ymCnt1]}</td>
			<!--{if intval($dspkeihi[3][ymCnt1]) > 0}-->
				<td nowrap align="right">&nbsp;{$dspkeihi[3][ymCnt1]}</td>
			<!--{else}-->
				<td class="PrintRed" nowrap>&nbsp;{$dspkeihi[3][ymCnt1]}</td>
			<!--{/if}-->

		<!--{/section}-->
	</tr>
	<tr>
		<th nowrap colspan="2">予実算差額調整</td>
		<!--{section name=ymCnt1 loop=$dataYM start=3 step=1 max=3}-->
			<td nowrap align="right">&nbsp;{$dspshikin[1][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspshikin[2][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspshikin[3][ymCnt1]}</td>
		<!--{/section}-->
	</tr>
</table>
<br>
<!--{/if}-->

<!--{if $DISP_CNT == "12"}-->
<div class="PrintBreak"><span class="PrintHidden">-</span></div>
<table class="PrintTab">
	<tr>
		<th nowrap rowspan="2" colspan="2">{$dataYM[0][0]}年&nbsp;</td>
<!--{section name=ymCnt1 loop=$dataYM start=6 step=1 max=3}-->
		<th nowrap colspan="3">{$dataYM[ymCnt1][1]}月</td>
<!--{/section}-->
	</tr>
	<tr>
<!--{section name=ymCnt1 loop=$dataYM start=6 step=1 max=3}-->
		<th nowrap>{$DEFARR[9]}</td>
		<th nowrap>{$DEFARR[8]}</td>
		<th nowrap>残高</td>
<!--{/section}-->
	</tr>
	<tr>
		<th nowrap colspan="2">前月繰越</td>
<!--{section name=ymCnt1 loop=$dataYM start=6 step=1 max=3}-->
		<td nowrap align="right">{$dspkuri[1][ymCnt1]}</td>
		<td nowrap align="right">{$dspkuri[2][ymCnt1]}</td>
		<td nowrap align="right">{$dspkuri[3][ymCnt1]}</td>
<!--{/section}-->
	</tr>

<!--{section name=item1 loop=$bData}-->
	<!--{section name=subitem1 loop=$dData[item1]}-->

	<tr>
		<!--{if $smarty.section.subitem1.index == 0}-->
		<th nowrap rowspan="{$dData[item1]|@count}">{$bData[item1][1]}</td>
		<!--{/if}-->
		<th nowrap>{$dData[item1][subitem1][1]}</td>
		<!--{section name=ymCnt1 loop=$dataYM start=6 step=1 max=3}-->
			<td nowrap align="right">&nbsp;{$dspData[item1][subitem1][3][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspData[item1][subitem1][4][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;</td>
		<!--{/section}-->
	</tr>

	<!--{/section}-->
	<tr>
		<th nowrap colspan="2">{$bData[item1][1]}小計</td>
		<!--{section name=ymCnt1 loop=$dataYM start=6 step=1 max=3}-->
			<td nowrap align="right">&nbsp;{$dspminiTotal[item1][1][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspminiTotal[item1][2][ymCnt1]}</td>
			<!--{if intval($dspminiTotal[item1][3][ymCnt1]) > 0}-->
				<td nowrap align="right">&nbsp;{$dspminiTotal[item1][3][ymCnt1]}</td>
			<!--{else}-->
				<td class="PrintRed" nowrap>&nbsp;{$dspminiTotal[item1][3][ymCnt1]}</td>
			<!--{/if}-->
		<!--{/section}-->
	</tr>
<!--{/section}-->
	<tr>
		<th nowrap colspan="2">入出金計</td>
		<!--{section name=ymCnt1 loop=$dataYM start=6 step=1 max=3}-->
			<td nowrap align="right">&nbsp;{$dspkeihi[1][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspkeihi[2][ymCnt1]}</td>
			<!--{if intval($dspkeihi[3][ymCnt1]) > 0}-->
				<td nowrap align="right">&nbsp;{$dspkeihi[3][ymCnt1]}</td>
			<!--{else}-->
				<td class="PrintRed" nowrap>&nbsp;{$dspkeihi[3][ymCnt1]}</td>
			<!--{/if}-->

		<!--{/section}-->
	</tr>
	<tr>
		<th nowrap colspan="2">予実算差額調整</td>
		<!--{section name=ymCnt1 loop=$dataYM start=6 step=1 max=3}-->
			<td nowrap align="right">&nbsp;{$dspshikin[1][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspshikin[2][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspshikin[3][ymCnt1]}</td>
		<!--{/section}-->
	</tr>
</table>
<br>

<div class="PrintBreak"><span class="PrintHidden">-</span></div>
<table class="PrintTab">
	<tr>
		<th nowrap rowspan="2" colspan="2">{$dataYM[0][0]}年&nbsp;</td>
<!--{section name=ymCnt1 loop=$dataYM start=9 step=1 max=3}-->
		<th nowrap colspan="3">{$dataYM[ymCnt1][1]}月</td>
<!--{/section}-->
	</tr>
	<tr>
<!--{section name=ymCnt1 loop=$dataYM start=9 step=1 max=3}-->
		<th nowrap>{$DEFARR[9]}</td>
		<th nowrap>{$DEFARR[8]}</td>
		<th nowrap>残高</td>
<!--{/section}-->
	</tr>
	<tr>
		<th nowrap colspan="2">前月繰越</td>
<!--{section name=ymCnt1 loop=$dataYM start=9 step=1 max=3}-->
		<td nowrap align="right">{$dspkuri[1][ymCnt1]}</td>
		<td nowrap align="right">{$dspkuri[2][ymCnt1]}</td>
		<td nowrap align="right">{$dspkuri[3][ymCnt1]}</td>
<!--{/section}-->
	</tr>

<!--{section name=item1 loop=$bData}-->
	<!--{section name=subitem1 loop=$dData[item1]}-->

	<tr>
		<!--{if $smarty.section.subitem1.index == 0}-->
		<th nowrap rowspan="{$dData[item1]|@count}">{$bData[item1][1]}</td>
		<!--{/if}-->
		<th nowrap>{$dData[item1][subitem1][1]}</td>
		<!--{section name=ymCnt1 loop=$dataYM start=9 step=1 max=3}-->
			<td nowrap align="right">&nbsp;{$dspData[item1][subitem1][3][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspData[item1][subitem1][4][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;</td>
		<!--{/section}-->
	</tr>

	<!--{/section}-->
	<tr>
		<th nowrap colspan="2">{$bData[item1][1]}小計</td>
		<!--{section name=ymCnt1 loop=$dataYM start=9 step=1 max=3}-->
			<td nowrap align="right">&nbsp;{$dspminiTotal[item1][1][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspminiTotal[item1][2][ymCnt1]}</td>
			<!--{if intval($dspminiTotal[item1][3][ymCnt1]) > 0}-->
				<td nowrap align="right">&nbsp;{$dspminiTotal[item1][3][ymCnt1]}</td>
			<!--{else}-->
				<td class="PrintRed" nowrap>&nbsp;{$dspminiTotal[item1][3][ymCnt1]}</td>
			<!--{/if}-->
		<!--{/section}-->
	</tr>
<!--{/section}-->
	<tr>
		<th nowrap colspan="2">入出金計</td>
		<!--{section name=ymCnt1 loop=$dataYM start=9 step=1 max=3}-->
			<td nowrap align="right">&nbsp;{$dspkeihi[1][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspkeihi[2][ymCnt1]}</td>
			<!--{if intval($dspkeihi[3][ymCnt1]) > 0}-->
				<td nowrap align="right">&nbsp;{$dspkeihi[3][ymCnt1]}</td>
			<!--{else}-->
				<td class="PrintRed" nowrap>&nbsp;{$dspkeihi[3][ymCnt1]}</td>
			<!--{/if}-->

		<!--{/section}-->
	</tr>
	<tr>
		<th nowrap colspan="2">予実算差額調整</td>
		<!--{section name=ymCnt1 loop=$dataYM start=9 step=1 max=3}-->
			<td nowrap align="right">&nbsp;{$dspshikin[1][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspshikin[2][ymCnt1]}</td>
			<td nowrap align="right">&nbsp;{$dspshikin[3][ymCnt1]}</td>
		<!--{/section}-->
	</tr>
</table>
<br>
<!--{/if}-->

</body>
</html>