%%8E^8E4^8E4A6B21%%ZIS0100.tpl.php 15.8 KB
<?PHP  /* Smarty version 2.6.22, created on 2010-07-02 10:23:22
         compiled from ZIS0100.tpl */ ?>
<?PHP  require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'math', 'ZIS0100.tpl', 73, false),array('modifier', 'replace', 'ZIS0100.tpl', 79, false),)), $this); ?>
</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=<?PHP  echo $this->_tpl_vars['disp_y']; ?>
&disp_m=<?PHP  echo $this->_tpl_vars['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();">
										<?PHP  echo $this->_tpl_vars['lstY']; ?>

									</select>
									<select name="ZIS_cboM" onchange="date_chg();">
										<?PHP  echo $this->_tpl_vars['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('<?PHP  echo $this->_tpl_vars['dispStart']; ?>
');">
							</td>
						</tr>
					<?PHP  if ($this->_tpl_vars['dispStart'] == 1): ?>
						<tr>
							<td colspan="3" align="left"><font color="red">※決算翌月です。初期繰越金もご入力ください。</font></td>
						</tr>
					<?PHP  endif; ?>
					</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>
						<?PHP  if ($this->_tpl_vars['dispStart'] == 1): ?>
							<th align="center" class="ConfKubunTh">初期繰越金額(<?PHP  echo $this->_tpl_vars['strUnit']; ?>
<?PHP  if ($this->_tpl_vars['strUnit'] !== "円"): ?><?PHP  endif; ?>)</th>
						<?PHP  endif; ?>
							<th align="center" class="ConfKubunTh">区分</th>
							<th align="center" class="ConfKubunTh">入 力 欄(<?PHP  echo $this->_tpl_vars['strUnit']; ?>
<?PHP  if ($this->_tpl_vars['strUnit'] !== "円"): ?><?PHP  endif; ?>)</th>
						</tr>
						<?PHP  $this->assign('lineCnt', 0); ?>
						<?PHP  unset($this->_sections['idx']);
$this->_sections['idx']['name'] = 'idx';
$this->_sections['idx']['loop'] = is_array($_loop=$this->_tpl_vars['Kanjyo_Data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['idx']['show'] = true;
$this->_sections['idx']['max'] = $this->_sections['idx']['loop'];
$this->_sections['idx']['step'] = 1;
$this->_sections['idx']['start'] = $this->_sections['idx']['step'] > 0 ? 0 : $this->_sections['idx']['loop']-1;
if ($this->_sections['idx']['show']) {
    $this->_sections['idx']['total'] = $this->_sections['idx']['loop'];
    if ($this->_sections['idx']['total'] == 0)
        $this->_sections['idx']['show'] = false;
} else
    $this->_sections['idx']['total'] = 0;
if ($this->_sections['idx']['show']):

            for ($this->_sections['idx']['index'] = $this->_sections['idx']['start'], $this->_sections['idx']['iteration'] = 1;
                 $this->_sections['idx']['iteration'] <= $this->_sections['idx']['total'];
                 $this->_sections['idx']['index'] += $this->_sections['idx']['step'], $this->_sections['idx']['iteration']++):
$this->_sections['idx']['rownum'] = $this->_sections['idx']['iteration'];
$this->_sections['idx']['index_prev'] = $this->_sections['idx']['index'] - $this->_sections['idx']['step'];
$this->_sections['idx']['index_next'] = $this->_sections['idx']['index'] + $this->_sections['idx']['step'];
$this->_sections['idx']['first']      = ($this->_sections['idx']['iteration'] == 1);
$this->_sections['idx']['last']       = ($this->_sections['idx']['iteration'] == $this->_sections['idx']['total']);
?>
							<?PHP  echo smarty_function_math(array('equation' => "x + 1",'x' => $this->_tpl_vars['lineCnt'],'assign' => 'lineCnt'), $this);?>

							<tr>
								<!-- 第1階層 -->
								<?PHP  if ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][10] != ""): ?>
										<th class="ZISMst1Td" align="left" <?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][17]; ?>
 >
											<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][10]; ?>

											<input type="hidden" name="rowspan[]" value="<?PHP  echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][17])) ? $this->_run_mod_handler('replace', true, $_tmp, "rowspan=", "") : smarty_modifier_replace($_tmp, "rowspan=", "")))) ? $this->_run_mod_handler('replace', true, $_tmp, "\"", "") : smarty_modifier_replace($_tmp, "\"", "")); ?>
">
											<input type="hidden" name="startrow[]" value="<?PHP  echo $this->_sections['idx']['iteration']; ?>
">
											<hr width="90%" />
											<span style="font-weight:400;font-size:small;">小計</span>
											<input class="txtCalcReadonly" type="text" name="calc_result[]" id="calc<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][11]; ?>
_<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][12]; ?>
_<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][13]; ?>
_<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][14]; ?>
" value="" readonly> 
										</th>
								<?PHP  endif; ?>

								<!-- 第2階層 -->
								<?PHP  if ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][20] != ""): ?>
										<th class="ZISMst1Td" align="left" <?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][27]; ?>
 >
											<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][20]; ?>

											<input type="hidden" name="rowspan[]" value="<?PHP  echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][27])) ? $this->_run_mod_handler('replace', true, $_tmp, "rowspan=", "") : smarty_modifier_replace($_tmp, "rowspan=", "")))) ? $this->_run_mod_handler('replace', true, $_tmp, "\"", "") : smarty_modifier_replace($_tmp, "\"", "")); ?>
">
											<input type="hidden" name="startrow[]" value="<?PHP  echo $this->_sections['idx']['iteration']; ?>
">
											<hr width="90%" />
											<span style="font-weight:400;font-size:small;">小計</span>
											<input class="txtCalcReadonly" type="text" name="calc_result[]" id="calc<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][21]; ?>
_<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][22]; ?>
_<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][23]; ?>
_<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][24]; ?>
" value="" readonly> 
										</th>
								<?PHP  elseif ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][27] == 'row'): ?>
										<th class="ZISMst1Td" align="left"></th>
								<?PHP  endif; ?>

								<!-- 第3階層 -->
								<?PHP  if ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][30] != ""): ?>
										<th class="ZISMst1Td" align="left" <?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][37]; ?>
 >
											<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][30]; ?>

											<input type="hidden" name="rowspan[]" value="<?PHP  echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][37])) ? $this->_run_mod_handler('replace', true, $_tmp, "rowspan=", "") : smarty_modifier_replace($_tmp, "rowspan=", "")))) ? $this->_run_mod_handler('replace', true, $_tmp, "\"", "") : smarty_modifier_replace($_tmp, "\"", "")); ?>
">
											<input type="hidden" name="startrow[]" value="<?PHP  echo $this->_sections['idx']['iteration']; ?>
">
											<hr width="90%" />
									<?PHP  if (substr ( $this->_tpl_vars['Kanjyo_Money'][$this->_sections['idx']['index']][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<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][31]; ?>
_<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][32]; ?>
_<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][33]; ?>
_<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][34]; ?>
" value="" readonly> 
									<?PHP  else: ?>
											<span style="font-weight:400;font-size:small;">小計</span>
											<input class="txtCalcReadonly" type="text" name="calc_result[]" id="calc<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][31]; ?>
_<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][32]; ?>
_<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][33]; ?>
_<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][34]; ?>
" value="" readonly> 
									<?PHP  endif; ?>
										</th>
								<?PHP  elseif ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][37] == 'row'): ?>
										<th class="ZISMst1Td" align="left"></th>
								<?PHP  endif; ?>

								<!-- 第4階層 -->
								<?PHP  if ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][40] != ""): ?>
										<td class="<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][46]; ?>
" align="left" <?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][47]; ?>
 >
											<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][40]; ?>

										</td>
									<?PHP  if ($this->_tpl_vars['dispStart'] == 1): ?>
										<td class="<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][46]; ?>
" align="center" <?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][47]; ?>
 >
											<input type="text" name="inputInitData[]" style="text-align:right;" size="20" maxlength="15" value="<?PHP  echo $this->_tpl_vars['Kanjyo_Money'][$this->_sections['idx']['index']][2]; ?>
">
										</td>
									<?PHP  endif; ?>
										<td class="<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][46]; ?>
" align="center" <?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][47]; ?>
 ><?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][49]; ?>
</td>
										<td class="<?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][46]; ?>
" align="center" <?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][47]; ?>
 >

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

							<!-- <tr><td class="ConfKubunTd" align="left" colspan="16"><div id="input_<?PHP  echo $this->_tpl_vars['lineCnt']; ?>
"></div></td></tr> -->
						<?PHP  endfor; endif; ?>
					</table>
					<input name="div_count" type="hidden" value="<?PHP  echo $this->_tpl_vars['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="<?PHP  echo $this->_tpl_vars['dispStart']; ?>
">
					<input name="zis_unit"  type="hidden" value="<?PHP  echo $this->_tpl_vars['zis_unit']; ?>
">
					<input name="dsp_y"     type="hidden" value="">
					<input name="dsp_m"     type="hidden" value="">
					<input name="zis_unit"  type="hidden" value="<?PHP  echo $this->_tpl_vars['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('<?PHP  echo $this->_tpl_vars['dispStart']; ?>
');">
							</td>
						</tr>
					<?PHP  if ($this->_tpl_vars['dispStart'] == 1): ?>
						<tr>
							<td colspan="3" align="left"><font color="red">※決算翌月です。初期繰越金もご入力ください。</font></td>
						</tr>
					<?PHP  endif; ?>
					</table>
				</td>
			</tr>
		</table>
		<br>
	<br>
</div>