SIM0500.tpl 13.4 KB
	<div class="SimMiddle">
<!--{if $PHP_USER_SHIKIN > 0}-->
		&nbsp;<br />
		<div class="SimTitle">
			<div style="width:5px; height:5px;">&nbsp;</div>
			<font id="titletxt">資金繰り表</font>
		</div>
		<div class="SimMain">

<table>
	<tr>
		<td>

			<table class="SimSelectTab" style="float:left;">
				<tr>
					<th> 表示切替 </th>
					<td>
						  
						<select name="SIM_cboYaer" onchange="chk_up();">
							{$lstY}
						</select>年
						<select name="SIM_cboMon" onchange="chk_up();">
							{$lstM}
						</select>月から
						<select name="SIM_cboKikan" onchange="chk_up();">
							{$lstK}
						</select>間
						  
					</td>
				</tr>
			</table>

		</td>
		<td>

			<div style="float:left;clear:right;">
				  <span class="SimComment">(単位:{$sUnitName})</span>
				    <input type="button" class="btnTemp" value=" 印刷 " onclick="show_print();">
				 <input type="button" class="btnGo2" value="CSVファイル出力" onclick="csv_dl();">
			</div><br>

		</td>
	</tr>
	<tr>
		<td colspan="2">
			<div class="SimCommentBox" style="height:20px;width:700px; margin-top:5px; float:left;text-align: left;color:#0000FF;padding-top:5px;">
				 ■各項目名、入金欄、出金襴をクリックすると、それぞれの入力画面を表示することができます。
			</div>
		</td>
	</tr>
</table>
<!--	
			<span class="clearboth">&nbsp;</span>
-->
		<div class="Main_tbl">
			<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}-->

				<!--{if $cntrows[item] > 0 }-->
				<tr>
					<th class="SimShikinSide" nowrap rowspan="{$cntrows[item]}">{$bData[item][1]}</th>
				<!--{/if}-->

					<!--{if $dspcol_nyu[item] > 0 }-->
						<!--{if $nyuAuth == 1}-->
							<th class="SimKeihiTd" width="80" height="12" colspan="1"><a href="javascript:lnk_uriage(1, {$bData[item][0]},1);">売上金</a></th>
						<!--{else}-->
							<th class="SimKeihiTd" width="80" height="12" colspan="1">売上金</th>
						<!--{/if}-->
						<!--{section name=ymCnt loop=$dataYM}-->
						<!--{if $nyuAuth == 1}-->
							<td id="Td1_{$smarty.section.item.index}{$smarty.section.ymCnt.index}" class="SimKeihiTd" nowrap  onmouseover="MoverStyle('1_{$smarty.section.item.index}{$smarty.section.ymCnt.index}');" onmouseout="MoutStyle2('1_{$smarty.section.item.index}{$smarty.section.ymCnt.index}');" onclick="lnk_uriage(1, {$bData[item][0]},1);"><!--{if $dspnyuNyukin[item][ymCnt] > 0}-->{$dspnyuNyukin[item][ymCnt]}<!--{/if}--></td>
						<!--{else}-->
							<td id="Td1_{$smarty.section.item.index}{$smarty.section.ymCnt.index}" class="SimKeihiTd" nowrap ><!--{if $dspnyuNyukin[item][ymCnt] > 0}-->{$dspnyuNyukin[item][ymCnt]}<!--{/if}--></td>
						<!--{/if}-->
							<td class="SimKeihiTd" nowrap></td>
						<!--{if intval($dspkuri[3][ymCnt]) >= 0}-->
							<td class="SimKeihiTd" nowrap></td>
						<!--{else}-->
							<td class="SimKeihiTd" nowrap></td>
						<!--{/if}-->
						<!--{/section}-->
						</tr>
					<!--{/if}-->

					<!--{if $dspcol_shu[item] > 0 }-->
						<!--{if $nyuAuth == 1}-->
							<th class="SimKeihiTd" width="80" height="12" colspan="1"><a href="javascript:lnk_uriage(1, {$bData[item][0]},2);">外注費</a></th>
						<!--{else}-->
							<th class="SimKeihiTd" width="80" height="12" colspan="1">外注費</th>
						<!--{/if}-->
						<!--{section name=ymCnt loop=$dataYM}-->
							<td class="SimKeihiTd" nowrap></td>

						<!--{if $nyuAuth == 1}-->
							<td id="Td4_{$smarty.section.item.index}{$smarty.section.ymCnt.index}" class="SimKeihiTd" nowrap  onmouseover="MoverStyle('4_{$smarty.section.item.index}{$smarty.section.ymCnt.index}');" onmouseout="MoutStyle2('4_{$smarty.section.item.index}{$smarty.section.ymCnt.index}');" onclick="lnk_uriage(1, {$bData[item][0]},2);"><!--{if $dspnyuShukin[item][ymCnt] > 0}-->{$dspnyuShukin[item][ymCnt]}<!--{/if}--></td>
						<!--{else}-->
							<td id="Td4_{$smarty.section.item.index}{$smarty.section.ymCnt.index}" class="SimKeihiTd" nowrap ><!--{if $dspnyuShukin[item][ymCnt] > 0}-->{$dspnyuShukin[item][ymCnt]}<!--{/if}--></td>
						<!--{/if}-->
						<!--{if intval($dspkuri[3][ymCnt]) >= 0}-->
							<td class="SimKeihiTd" nowrap></td>
						<!--{else}-->
							<td class="SimKeihiTd" nowrap></td>
						<!--{/if}-->
						<!--{/section}-->
						</tr>
					<!--{/if}-->

					<!--{if $dspcol_kar[item] > 0 }-->
						<!--{if $dspcol_nyu[item] > 0 }-->
						<tr>
						<!--{/if}-->
						<!--{if $karAuth == 1}-->
							<th class="SimKeihiTd" width="80" height="12" colspan="1"><a href="javascript:lnk_kariire(0,{$kikanSt[item]},{$kikanEd[item]});">借入金</a></td>
						<!--{else}-->
							<th class="SimKeihiTd" width="80" height="12" colspan="1">借入金</td>
						<!--{/if}-->
						<!--{section name=ymCnt loop=$dataYM}-->
							<!--{if $karAuth == 1}-->
							<td id="Td2_{$smarty.section.item.index}{$smarty.section.ymCnt.index}" class="SimKeihiTd" nowrap  onmouseover="MoverStyle('2_{$smarty.section.item.index}{$smarty.section.ymCnt.index}');" onmouseout="MoutStyle2('2_{$smarty.section.item.index}{$smarty.section.ymCnt.index}');" onclick="lnk_kariire(1, {$kikanSt[item]},{$kikanEd[item]});"><!--{if $dspkariirekin[item][ymCnt] > 0}-->{$dspkariirekin[item][ymCnt]}<!--{/if}--></td>
							<td id="Td3_{$smarty.section.item.index}{$smarty.section.ymCnt.index}" class="SimKeihiTd" nowrap  onmouseover="MoverStyle('3_{$smarty.section.item.index}{$smarty.section.ymCnt.index}');" onmouseout="MoutStyle2('3_{$smarty.section.item.index}{$smarty.section.ymCnt.index}');" onclick="lnk_kariire(0, {$kikanSt[item]},{$kikanEd[item]});"><!--{if $dsphensaikin[item][ymCnt] > 0}-->{$dsphensaikin[item][ymCnt]}<!--{/if}--></td>
							<!--{else}-->
							<td id="Td2_{$smarty.section.item.index}{$smarty.section.ymCnt.index}" class="SimKeihiTd" nowrap ><!--{if $dspkariirekin[item][ymCnt] > 0}-->{$dspkariirekin[item][ymCnt]}<!--{/if}--></td>
							<td id="Td3_{$smarty.section.item.index}{$smarty.section.ymCnt.index}" class="SimKeihiTd" nowrap ><!--{if $dsphensaikin[item][ymCnt] > 0}-->{$dsphensaikin[item][ymCnt]}<!--{/if}--></td>
							<!--{/if}-->
							<!--{if intval($dspkuri[3][ymCnt]) >= 0}-->
							<td class="SimKeihiTd" nowrap></td>
							<!--{else}-->
							<td class="SimKeihiTd" nowrap></td>
							<!--{/if}-->

						<!--{/section}-->
						</tr>
					<!--{/if}-->
				<!--{section name=item2 loop=$dData[item]}-->
					<!-- 集計金額表示 -->
					<!--{if $smarty.section.item2.index <> 0}-->
						<!--{if $dData|@count <> 0}-->
						<tr>
						<!--{/if}-->
					<!--{/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></th>
					<!--{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 style="background-color:#E0E0E0;">&nbsp;</td>
					<!--{/section}-->
				</tr>
				<!--{/section}-->

				<!--{if $cntrows[item] > 0 }-->
				<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>
				<!--{/if}-->
			<!--{/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"><input type="button" class="btnGo" value="予実算差額調整" onclick="chk_up();"></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>

		</div>

			<div class="SimCommentBox" style="width:340px; margin-top:5px; float:left;">
				※ご注意<br>
				  予実算差額調整は金額を入力し、<br>
				  「予実算差額調整」をクリックしてください。
			</div>
			<div style="float:left;">
				   <span class="SimComment">(単位:{$sUnitName})</span>
				    
				 <input type="button" class="btnTemp" value=" 印刷 " onclick="show_print();">
				 <input type="button" class="btnGo2" value="CSVファイル出力" onclick="csv_dl();">
			</div>
			<div class="clearboth">&nbsp;</div>
		</div>
		<br>
<!--{else}-->
		資金繰表のアクセス権がありません
<!--{/if}-->
	</div>

<input type="hidden" name="kmode" value="">
<input type="hidden" name="hensai_sd" value="">
<input type="hidden" name="hensai_ed" value="">

<input type="hidden" name="cboMode" value="">
<input type="hidden" name="cboBunrui" value="">

<input type="hidden" name="hidKaishi" value="{$hidKaishi}">
<input type="hidden" name="btn_sim" value="">
<input type="hidden" name="btn_lst" value="">

<input type="hidden" name="sMode" value="">
<input type="hidden" name="bSeq" value="">
<input type="hidden" name="dSeq" value="">
<input type="hidden" name="uriageMode" value="">
<input type="hidden" name="bkurl" value="SIM0500">