SIM0500.tpl 15.8 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>
			 <font size="2" color="#FFFFFF">{$upString}</font>
		</div>
		<div class="SimMain">

<table>
	<tr>
		<td>
			<table class="printhidden" 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 class="printhidden" style="float:left;clear:right;">
				    <input type="button" class="btnTemp" value="Excelから印刷" onclick="excel_print();">
				 <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 class="printhidden" colspan="2">
			<div class="SimCommentBox" style="height:30px; width:600px; margin-top:5px; float:left;text-align: left;color:#0000FF; padding-top:5px;">
				 ■各項目名、入金欄、出金襴をクリックすると、それぞれの入力画面を表示することができます。<br />
				 ■入出金にコメントが記載されている場合は<span style="background-color:#FFFF99">黄色背景</span>で表示します。
			</div>
			<div style="float:left;clear:right; height:30px;width:290px; margin-left:40px;">
			{if $dataYM|@count > 3}
				<span style="font-weight:700; font-size:1em; color:red; ">下部のスクロールバーを操作してください⇒</span>
			{/if}
				  <span class="SimComment">(単位:{$sUnitName})</span>
			</div>
		</td>
	</tr>
</table>

		<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" style="background-color:#E0E0E0;" nowrap>&nbsp;</td>
					<td class="SimShikin_s" style="background-color:#E0E0E0;" nowrap>&nbsp;</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,'{$dataYM[ymCnt][0]}','{$dataYM[ymCnt][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>
							<td class="SimKeihiTd" style="background-color:#E0E0E0;" nowrap></td>
						<!--{/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,'{$dataYM[ymCnt][0]}','{$dataYM[ymCnt][1]}');"><!--{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}-->
							<td class="SimKeihiTd" style="background-color:#E0E0E0;" nowrap></td>
						<!--{/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}-->
							<td class="SimKeihiTd" style="background-color:#E0E0E0;" nowrap></td>
						<!--{/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>
						<!--{if $dData[item][item2][8] === "0"}-->
								{$dData[item][item2][1]}
						<!--{elseif $dData[item][item2][8] == 1}-->
								<a href="javascript:lnk_input({$PHP_USER_NYUKIN}, '1',{$bData[item][0]}, {$dData[item][item2][0]}, '999');">{$dData[item][item2][1]}</a>
						<!--{else}-->
								<a href="javascript:lnk_input({$PHP_USER_NYUKIN}, '2',{$bData[item][0]}, {$dData[item][item2][0]}, '999');">{$dData[item][item2][1]}</a>
						<!--{/if}-->
							</th>
					<!--{section name=ymCnt loop=$dataYM}-->
						<!--{if $dData[item][item2][8] == 1 || $dData[item][item2][8] == 3 || $dData[item][item2][8] === null}-->
								{if $comData[item][item2][1][ymCnt] == 1}
									<td id="Td1_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}" class="Sim_kaku_s" nowrap onMouseOver="MoverStyle('1_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}');" onMouseOut="MoutStyle3('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');">
								{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}
						<!--{else}-->
							<td id="Td1_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}" class="SimShikinTd" nowrap style="background-color:#E0E0E0;" >
						<!--{/if}-->
								&nbsp;{$dspData[item][item2][3][ymCnt]}
							</td>
						<!--{if $dData[item][item2][8] == 2 || $dData[item][item2][8] == 3 || $dData[item][item2][8] === null}-->
								{if $comData[item][item2][2][ymCnt] == 1}
									<td id="Td2_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}" class="Sim_kaku_s" nowrap onMouseOver="MoverStyle('2_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}');" onMouseOut="MoutStyle3('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');">
								{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}
						<!--{else}-->
							<td id="Td2_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}" class="SimShikinTd" nowrap style="background-color:#E0E0E0;" >
						<!--{/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="SimShikinSide" nowrap colspan="2">{$bData[item][1]}小計</td>
					<!--{section name=ymCnt loop=$dataYM}-->
						<td class="SimShikinSide" nowrap>&nbsp;{$dspminiTotal[item][1][ymCnt]}</td>
						<td class="SimShikinSide" nowrap>&nbsp;{$dspminiTotal[item][2][ymCnt]}</td>
					<!--{if intval($dspminiTotal[item][3][ymCnt]) >= 0}-->
						<td class="SimShikinSide" 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();">
						<br /><span id="updmsg" style="line-height:100%;">↑クリックで<br />確定します</span>
					</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]}" onchange="dspUpdmsg();"></td>
						<td class="SimChoseTd" nowrap><input name="shikin[2][]" type="text" size="8" style="text-align:right;" value="{$shikin[2][ymCnt]}" onchange="dspUpdmsg();"></td>
						<td class="SimChoseTd" nowrap>&nbsp;{$dspshikin[3][ymCnt]}<input type="hidden" name="shikin[4][]" value="{$dataYM[ymCnt][0]}/{$dataYM[ymCnt][1]}" onchange="dspUpdmsg();"></td>
					<!--{/section}-->
				</tr>
				<tr>
					<th class="SimShikin_s" nowrap colspan="2">差額調整後合計</td>
					<!--{section name=ymCnt loop=$dataYM}-->
						<td class="SimShikin_s" nowrap>&nbsp;{$dspsagaku[1][ymCnt]}</td>
						<td class="SimShikin_s" nowrap>&nbsp;{$dspsagaku[2][ymCnt]}</td>
					<!--{if intval($dspsagaku[3][ymCnt]) >= 0}-->
						<td class="SimShikin_s" nowrap>&nbsp;{$dspsagaku[3][ymCnt]}</td>
					<!--{else}-->
						<td class="SimRedBoldTd" nowrap>&nbsp;{$dspsagaku[3][ymCnt]}</td>
					<!--{/if}-->
					<!--{/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>
			<table>
				<tr><td colspan="2"><hr></td></tr>
				<tr>
					<td align="left"><b>メモ</b></td>
					<td align="right"><span class="SimComment">最終更新:{$update_date} {$update_user}</span></td>
				</tr>
				<tr>
					<td colspan="2">
						<textarea name="memo_txt" cols="130" rows="8">{$memo_txt}</textarea>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<input type="button" class="btnGo" value="メモ更新" onclick="memo_update();">
					</td>
				</tr>
			</table>
			<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="Disp_Y" value="">
<input type="hidden" name="Disp_M" 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">

<input type="hidden" name="memo_flg" value="">