ZIS0100.tpl 8.99 KB
</form>
<div class="SimMiddle">
	<small><br></small>
	<div class="SimTitle"><font size="5px">資金収支データ入力</font></div>
		<br>
		<table class="printhiddenborder" width="99%">
			<tr>
				<TD class="printhiddenborder" align="center">
					<form name="frmfile" enctype="multipart/form-data" method="post">
						<table class="printhidden" width="80%">
							<tr>
								<td align="left">
								</td>
								<td align="right">一括入力はこちらから ⇒ 
									<input class="printhidden" type="button" value="CSV雛形ダウンロード" onclick="location.href='./ZIS0110.php?disp_y={$disp_y}&disp_m={$disp_m}';">
									<input class="printhidden" type="file" name="fileup" onchange="setFilePath(this);">
									<input class="printhidden" type="button" name="csvupload" value="CSVアップロード" onclick="checkFilePath();" disabled>
								</td>
							</tr>
							<tr>
								<td colspan="2"><hr></td>
							</tr>
						</table>
					</form>
					<form name="frmval">
					<table class="printhidden" width="80%" onload="calc_shokei();" >
						<tr>
							<td align="left">
									<select name="ZIS_cboY" onchange="date_chg();">
										{$lstY}
									</select>年
									<select name="ZIS_cboM" onchange="date_chg();">
										{$lstM}
									</select>月
									&nbsp;&nbsp;&nbsp;&nbsp;
									<input type="button" value="<前月" onclick="move_navi(1);">
									<input type="button" value="今月" onclick="move_navi(0);">
									<input type="button" value="翌月>" onclick="move_navi(2);">
									&nbsp;&nbsp;&nbsp;&nbsp;
									<input type="button" value="小計の再計算" onclick="calc_shokei();">
							</td>
							<td align="right">
								<input type="button" value="印刷" onclick="show_print();">
							</td>
							<td align="right">
								<input type="button" value="データ更新" onclick="up_data('{$dispStart}');">
							</td>
						</tr>
					{if $dispStart == 1}
						<tr>
							<td colspan="3" align="left"><font color="red">※決算翌月です。初期繰越金もご入力ください。</font></td>
						</tr>
					{/if}
					</table>
				</td>
			</tr>
			<TR>
				<TD align="center">
					<table class="printtable" width="80%" border="0" cellpadding="1" cellspacing="1" bgcolor="#000000">
						<tr>
							<th align="center" class="ConfKubunTh">大区分</th>
							<th align="center" class="ConfKubunTh">中区分</th>
							<th align="center" class="ConfKubunTh">小区分</th>
							<th align="center" class="ConfKubunTh">科目</th>
						{if $dispStart == 1}
							<th align="center" class="ConfKubunTh">初期繰越金額({$strUnit}{if $strUnit!=="円"}円{/if})</th>
						{/if}
							<th align="center" class="ConfKubunTh">区分</th>
							<th align="center" class="ConfKubunTh">入 力 欄({$strUnit}{if $strUnit!=="円"}円{/if})</th>
						</tr>
						{assign var="lineCnt" value=0}
						{section name=idx loop=$Kanjyo_Data}
							{math equation="x + 1" x=$lineCnt assign=lineCnt}
							<tr>
								<!-- 第1階層 -->
								{if $Kanjyo_Data[idx][10] != ""}
										<th class="ZISMst1Td" align="left" {$Kanjyo_Data[idx][17]} >
											{$Kanjyo_Data[idx][10]}
											<input type="hidden" name="rowspan[]" value="{$Kanjyo_Data[idx][17]|replace:"rowspan=":""|replace:"\"":""}">
											<input type="hidden" name="startrow[]" value="{$smarty.section.idx.iteration}">
											<hr width="90%" />
											<span style="font-weight:400;font-size:small;">小計</span>
											<input class="txtCalcReadonly" type="text" name="calc_result[]" id="calc{$Kanjyo_Data[idx][11]}_{$Kanjyo_Data[idx][12]}_{$Kanjyo_Data[idx][13]}_{$Kanjyo_Data[idx][14]}" value="" readonly> 
										</th>
								{/if}

								<!-- 第2階層 -->
								{if $Kanjyo_Data[idx][20] != ""}
										<th class="ZISMst1Td" align="left" {$Kanjyo_Data[idx][27]} >
											{$Kanjyo_Data[idx][20]}
											<input type="hidden" name="rowspan[]" value="{$Kanjyo_Data[idx][27]|replace:"rowspan=":""|replace:"\"":""}">
											<input type="hidden" name="startrow[]" value="{$smarty.section.idx.iteration}">
											<hr width="90%" />
											<span style="font-weight:400;font-size:small;">小計</span>
											<input class="txtCalcReadonly" type="text" name="calc_result[]" id="calc{$Kanjyo_Data[idx][21]}_{$Kanjyo_Data[idx][22]}_{$Kanjyo_Data[idx][23]}_{$Kanjyo_Data[idx][24]}" value="" readonly> 
										</th>
								{elseif $Kanjyo_Data[idx][27] == "row"}
										<th class="ZISMst1Td" align="left"></th>
								{/if}

								<!-- 第3階層 -->
								{if $Kanjyo_Data[idx][30] != ""}
										<th class="ZISMst1Td" align="left" {$Kanjyo_Data[idx][37]} >
											{$Kanjyo_Data[idx][30]}
											<input type="hidden" name="rowspan[]" value="{$Kanjyo_Data[idx][37]|replace:"rowspan=":""|replace:"\"":""}">
											<input type="hidden" name="startrow[]" value="{$smarty.section.idx.iteration}">
											<hr width="90%" />
									{if substr($Kanjyo_Money[idx][3], -10, 10) == ",8,1,4,1,0" }
											<span style="font-weight:400;font-size:small;">入力値から計算<br /></span>
											&nbsp;&nbsp;&nbsp;&nbsp;<input class="txtCalcReadonly" type="text" name="calc_result[]" id="calc{$Kanjyo_Data[idx][31]}_{$Kanjyo_Data[idx][32]}_{$Kanjyo_Data[idx][33]}_{$Kanjyo_Data[idx][34]}" value="" readonly> 
									{else}
											<span style="font-weight:400;font-size:small;">小計</span>
											<input class="txtCalcReadonly" type="text" name="calc_result[]" id="calc{$Kanjyo_Data[idx][31]}_{$Kanjyo_Data[idx][32]}_{$Kanjyo_Data[idx][33]}_{$Kanjyo_Data[idx][34]}" value="" readonly> 
									{/if}
										</th>
								{elseif $Kanjyo_Data[idx][37] == "row"}
										<th class="ZISMst1Td" align="left"></th>
								{/if}

								<!-- 第4階層 -->
								{if $Kanjyo_Data[idx][40] != ""}
										<td class="{$Kanjyo_Data[idx][46]}" align="left" {$Kanjyo_Data[idx][47]} >
											{$Kanjyo_Data[idx][40]}
										</td>
									{if $dispStart == 1}
										<td class="{$Kanjyo_Data[idx][46]}" align="center" {$Kanjyo_Data[idx][47]} >
											<input type="text" name="inputInitData[]" style="text-align:right;" size="20" maxlength="15" value="{$Kanjyo_Money[idx][2]}">
										</td>
									{/if}
										<td class="{$Kanjyo_Data[idx][46]}" align="center" {$Kanjyo_Data[idx][47]} >{$Kanjyo_Data[idx][49]}</td>
										<td class="{$Kanjyo_Data[idx][46]}" align="center" {$Kanjyo_Data[idx][47]} >

									{if substr($Kanjyo_Money[idx][3], -10, 10) == ",8,1,4,1,0" }
											<input type="text" class="txtInput" name="inputData[]" style="text-align:right;" size="20" maxlength="15" value="{$Kanjyo_Money[idx][1]}" onchange="calc_soneki();">
											<input type="hidden" name="inputSeq[]" value="{$Kanjyo_Money[idx][3]}">
									{else}
											<input type="text" class="txtInput" name="inputData[]" style="text-align:right;" size="20" maxlength="15" value="{$Kanjyo_Money[idx][1]}" onchange="calc_shokei();">
											<input type="hidden" name="inputSeq[]" value="{$Kanjyo_Money[idx][3]}">
									{/if}
									
									{if $Kanjyo_Data[idx][49]=="貸方"}
										<input type="hidden" name="inputMode[]" value="1">
									{else}
										<input type="hidden" name="inputMode[]" value="-1">
									{/if}
										</td>
								{elseif $Kanjyo_Data[idx][47] == "row"}
										<td class="{$Kanjyo_Data[idx][46]}" align="left"></td>
									{if $dispStart == 1}
										<td class="{$Kanjyo_Data[idx][46]}" align="center"></td>
									{/if}
										<td class="{$Kanjyo_Data[idx][46]}" align="center"></td>
										<td class="{$Kanjyo_Data[idx][46]}" align="center"></td>
								{/if}
							</tr>

							<!-- <tr><td class="ConfKubunTd" align="left" colspan="16"><div id="input_{$lineCnt}"></div></td></tr> -->
						{/section}
					</table>
					<input name="div_count" type="hidden" value="{$lineCnt}">
					<input name="pMode"     type="hidden" value="">
					<input name="pRank"     type="hidden" value="">
					<input name="pkseq1"    type="hidden" value="">
					<input name="pkseq2"    type="hidden" value="">
					<input name="pkseq3"    type="hidden" value="">
					<input name="pkseq4"    type="hidden" value="">
					<input name="pkseq5"    type="hidden" value="">
					<input name="dispStart" type="hidden" value="{$dispStart}">
					<input name="zis_unit"  type="hidden" value="{$zis_unit}">
					<input name="dsp_y"     type="hidden" value="">
					<input name="dsp_m"     type="hidden" value="">
					<input name="zis_unit"  type="hidden" value="{$zis_unit}">
					
				</TD>
			</TR>
			<tr>
				<TD align="center">
					<table class="printhidden" width="80%">
						<tr>
							<td align="right" width="400">
								<input type="button" value="小計の再計算" onclick="calc_shokei();">
							</td>
							<td align="right" width="250">
								<input type="button" value="印刷" onclick="show_print();">
							</td>
							<td align="right">
								<input type="button" value="データ更新" onclick="up_data('{$dispStart}');">
							</td>
						</tr>
					{if $dispStart == 1}
						<tr>
							<td colspan="3" align="left"><font color="red">※決算翌月です。初期繰越金もご入力ください。</font></td>
						</tr>
					{/if}
					</table>
				</td>
			</tr>
		</table>
		<br>
	<br>
</div>