SIM0500.tpl 8.52 KB

	<div class="SimMiddle">
		<br>
		<div class="SimTitle">
			<span id="titletxt">資金繰表</span>
		</div>
		<div class="SimMain">
			<table>
				<tr>
					<td class="SimMainHead" rowspan="2">
						<select name="yyyy">
							{$lstY}
						</select>年
						<select name="mon">
							{$lstM}
						</select>月から
						<select name="kikan">
							{$lstK}
						</select>間
						<br>
						<span> <img src="./templates/img/empty.gif" width="0" border="0"></span>
					</td>
					<td width="320">
						  <img src="./templates/img/empty.gif" width="0" border="0">  
					</td>
					<td>
						<input type="button" class="SimCancelButton" value=" メニューへ " onclick="location.href='SIM0100.php'">
					</td>
					<td colspan="2">
						  <input type="button" class="SimCancelButton" value=" 印刷画面へ " onclick="show_print();">
					</td>
				</tr>
				<tr>
					<td width="320">
						  <img src="./templates/img/empty.gif" width="0" border="0">  
					</td>
					<td>
						<input type="button" class="SimOkButton" value="資金繰表更新" onclick="chk_up();">
					</td>
					<td>
						  <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">&nbsp;</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" width="80" height="12" 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}-->
								&nbsp;{$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}-->
								&nbsp;{$dspData[item][item2][4][ymCnt]}
							</td>
						<td class="SimShikinTd" nowrap>&nbsp;</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>&nbsp;{$dspminiTotal[item][1][ymCnt]}</td>
						<td class="Sim_kaku_s" nowrap>&nbsp;{$dspminiTotal[item][2][ymCnt]}</td>
					<!--{if intval($dspminiTotal[item][3][ymCnt]) >= 0}-->
						<td class="Sim_kaku_s" nowrap>&nbsp;{$dspminiTotal[item][3][ymCnt]}</td>
					<!--{else}-->
						<td class="SimRedBoldTd" nowrap>&nbsp;{$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>&nbsp;{$dspkeihi[1][ymCnt]}</td>
						<td class="SimKeihiTd" nowrap>&nbsp;{$dspkeihi[2][ymCnt]}</td>
					<!--{if intval($dspkeihi[3][ymCnt]) >= 0}-->
						<td class="SimKeihiTd" nowrap>&nbsp;{$dspkeihi[3][ymCnt]}</td>
					<!--{else}-->
						<td class="SimRedBoldTd" nowrap>&nbsp;{$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>&nbsp;{$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">&nbsp;</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 rowspan="2">
						<div class="SimCommentBox" style="width:340px;">
						※ご注意<br>
						  予実算差額調整は直接入力し、<br>
						  「資金繰表更新」をクリックしてください。
						</div>
					</td>
					<td width="190">
						  <img src="./templates/img/empty.gif" width="0" border="0">  
					</td>
					<td>
						<input type="button" class="SimCancelButton" value=" メニューへ " onclick="location.href='SIM0100.php'">
					</td>
					<td>
						  <input type="button" class="SimCancelButton" value=" 印刷画面へ " onclick="show_print();">
					</td>
					<td>
						<span class="SimComment">(単位:{$sUnitName})</span>
					</td>
				</tr>
				<tr>
					<td width="190">
						  <img src="./templates/img/empty.gif" width="0" border="0">  
					</td>
					<td>
						<input type="button" class="SimOkButton" value="資金繰表更新" onclick="chk_up();">
					</td>
					<td>
						  <input type="button" class="SimOkButton" value="CSVファイル出力" onclick="csv_dl();">
					</td>
				</tr>
			</table>
		</div>
		<br>
	</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="">