%%08^08D^08DE198F%%ZIS0130.tpl.php 12.6 KB
<?PHP  /* Smarty version 2.6.22, created on 2010-06-28 10:27:24
         compiled from ZIS0130.tpl */ ?>
<?PHP  require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'math', 'ZIS0130.tpl', 26, false),array('modifier', 'number_format', 'ZIS0130.tpl', 51, false),array('modifier', 'replace', 'ZIS0130.tpl', 54, false),)), $this); ?>
	<div width="95%"><font size="5px">資金収支実績表</font></div>
	<div width="95%"><font size="5px">  (<?PHP  echo $this->_tpl_vars['years_lst'][0]; ?>
.<?PHP  echo $this->_tpl_vars['months_lst'][0]; ?>
<?PHP  echo $this->_tpl_vars['years_lst'][11]; ?>
.<?PHP  echo $this->_tpl_vars['months_lst'][11]; ?>
</font></div>
		<table class="needless">
			<tr><td>
			<input type="button" class="btnTemp" value="印刷" onclick="printer();">
			 <input type="button" class="btnCancel" value="キャンセル" onclick="winClose();">
			</td></tr>
		</table>
		<div style="font-size:0.9em; width:90%; text-align:right;">(単位:<?PHP  echo $this->_tpl_vars['strUnit']; ?>
<?PHP  if ($this->_tpl_vars['strUnit'] !== "円"): ?><?PHP  endif; ?>)</div>
		<table width="95%" style="font-size:9pt; border-collapse:collapse;" border="1" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" >
			<tr>
				<th align="center" style="border:1px #000 solid;">大区分</th>
				<th align="center" style="border:1px #000 solid;">中区分</th>
				<th align="center" style="border:1px #000 solid;">小区分</th>
				<th align="center" style="border:1px #000 solid;">科目</th>

				<th align="center" style="border:1px #000 solid;">繰越金</th>

				<th align="center" style="border:1px #000 solid;">区分</th>
				<?PHP  unset($this->_sections['mon']);
$this->_sections['mon']['name'] = 'mon';
$this->_sections['mon']['loop'] = is_array($_loop=$this->_tpl_vars['months_lst']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['mon']['show'] = true;
$this->_sections['mon']['max'] = $this->_sections['mon']['loop'];
$this->_sections['mon']['step'] = 1;
$this->_sections['mon']['start'] = $this->_sections['mon']['step'] > 0 ? 0 : $this->_sections['mon']['loop']-1;
if ($this->_sections['mon']['show']) {
    $this->_sections['mon']['total'] = $this->_sections['mon']['loop'];
    if ($this->_sections['mon']['total'] == 0)
        $this->_sections['mon']['show'] = false;
} else
    $this->_sections['mon']['total'] = 0;
if ($this->_sections['mon']['show']):

            for ($this->_sections['mon']['index'] = $this->_sections['mon']['start'], $this->_sections['mon']['iteration'] = 1;
                 $this->_sections['mon']['iteration'] <= $this->_sections['mon']['total'];
                 $this->_sections['mon']['index'] += $this->_sections['mon']['step'], $this->_sections['mon']['iteration']++):
$this->_sections['mon']['rownum'] = $this->_sections['mon']['iteration'];
$this->_sections['mon']['index_prev'] = $this->_sections['mon']['index'] - $this->_sections['mon']['step'];
$this->_sections['mon']['index_next'] = $this->_sections['mon']['index'] + $this->_sections['mon']['step'];
$this->_sections['mon']['first']      = ($this->_sections['mon']['iteration'] == 1);
$this->_sections['mon']['last']       = ($this->_sections['mon']['iteration'] == $this->_sections['mon']['total']);
?>
				<th align="center" style="border:1px #000 solid;"><?PHP  echo $this->_tpl_vars['months_lst'][$this->_sections['mon']['index']]; ?>
</th>
				<?PHP  endfor; endif; ?>
			</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 width="8%" style="border:1px #000 solid;" border="1" 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]; ?>
</th>
					<?PHP  endif; ?>
					<!-- 第2階層 -->
					<?PHP  if ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][20] != ""): ?>
						<th width="8%" style="border:1px #000 solid;" border="1" 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]; ?>
</th>
					<?PHP  elseif ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][27] == 'row'): ?>
						<th width="8%" style="border:1px #000 solid;" border="1" align="left"></td>
					<?PHP  endif; ?>
					<!-- 第3階層 -->
					<?PHP  if ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][30] != ""): ?>
						<th width="13%" style="border:1px #000 solid;" border="1" 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]; ?>
</th>
					<?PHP  elseif ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][37] == 'row'): ?>
						<th width="13%" style="border:1px #000 solid;" border="1" align="left"></td>
					<?PHP  endif; ?>
					<!-- 第4階層 -->
					<?PHP  if ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][40] != ""): ?>
							<td width="13%" style="border:1px #000 solid;" border="1" 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>

							<td border="1" style="border:1px #000 solid;" align="center" <?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][47]; ?>
 >
								<?PHP  echo ((is_array($_tmp=$this->_tpl_vars['Kanjyo_Money'][0][$this->_sections['idx']['index']][2])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>

							</td>

							<td border="1" style="border:1px #000 solid;" align="center" <?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][47]; ?>
 ><?PHP  echo ((is_array($_tmp=$this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][49])) ? $this->_run_mod_handler('replace', true, $_tmp, "方", "") : smarty_modifier_replace($_tmp, "方", "")); ?>
</td>

						<?PHP  unset($this->_sections['mon']);
$this->_sections['mon']['name'] = 'mon';
$this->_sections['mon']['loop'] = is_array($_loop=$this->_tpl_vars['months_lst']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['mon']['show'] = true;
$this->_sections['mon']['max'] = $this->_sections['mon']['loop'];
$this->_sections['mon']['step'] = 1;
$this->_sections['mon']['start'] = $this->_sections['mon']['step'] > 0 ? 0 : $this->_sections['mon']['loop']-1;
if ($this->_sections['mon']['show']) {
    $this->_sections['mon']['total'] = $this->_sections['mon']['loop'];
    if ($this->_sections['mon']['total'] == 0)
        $this->_sections['mon']['show'] = false;
} else
    $this->_sections['mon']['total'] = 0;
if ($this->_sections['mon']['show']):

            for ($this->_sections['mon']['index'] = $this->_sections['mon']['start'], $this->_sections['mon']['iteration'] = 1;
                 $this->_sections['mon']['iteration'] <= $this->_sections['mon']['total'];
                 $this->_sections['mon']['index'] += $this->_sections['mon']['step'], $this->_sections['mon']['iteration']++):
$this->_sections['mon']['rownum'] = $this->_sections['mon']['iteration'];
$this->_sections['mon']['index_prev'] = $this->_sections['mon']['index'] - $this->_sections['mon']['step'];
$this->_sections['mon']['index_next'] = $this->_sections['mon']['index'] + $this->_sections['mon']['step'];
$this->_sections['mon']['first']      = ($this->_sections['mon']['iteration'] == 1);
$this->_sections['mon']['last']       = ($this->_sections['mon']['iteration'] == $this->_sections['mon']['total']);
?>
							<td width="4%" style="border:1px #000 solid;" border="1" align="center" <?PHP  echo $this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][47]; ?>
 >
								<?PHP  echo ((is_array($_tmp=$this->_tpl_vars['Kanjyo_Money'][$this->_sections['mon']['index']][$this->_sections['idx']['index']][1])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>

							</td>
						<?PHP  endfor; endif; ?>
					<?PHP  elseif ($this->_tpl_vars['Kanjyo_Data'][$this->_sections['idx']['index']][47] == 'row'): ?>
							<td width="13%" style="border:1px #000 solid;" border="1" align="left"></td>

							<td style="border:1px #000 solid;" border="1" align="center"></td>

							<td style="border:1px #000 solid;" border="1" align="center"></td>
						<?PHP  unset($this->_sections['mon']);
$this->_sections['mon']['name'] = 'mon';
$this->_sections['mon']['loop'] = is_array($_loop=$this->_tpl_vars['months_lst']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['mon']['show'] = true;
$this->_sections['mon']['max'] = $this->_sections['mon']['loop'];
$this->_sections['mon']['step'] = 1;
$this->_sections['mon']['start'] = $this->_sections['mon']['step'] > 0 ? 0 : $this->_sections['mon']['loop']-1;
if ($this->_sections['mon']['show']) {
    $this->_sections['mon']['total'] = $this->_sections['mon']['loop'];
    if ($this->_sections['mon']['total'] == 0)
        $this->_sections['mon']['show'] = false;
} else
    $this->_sections['mon']['total'] = 0;
if ($this->_sections['mon']['show']):

            for ($this->_sections['mon']['index'] = $this->_sections['mon']['start'], $this->_sections['mon']['iteration'] = 1;
                 $this->_sections['mon']['iteration'] <= $this->_sections['mon']['total'];
                 $this->_sections['mon']['index'] += $this->_sections['mon']['step'], $this->_sections['mon']['iteration']++):
$this->_sections['mon']['rownum'] = $this->_sections['mon']['iteration'];
$this->_sections['mon']['index_prev'] = $this->_sections['mon']['index'] - $this->_sections['mon']['step'];
$this->_sections['mon']['index_next'] = $this->_sections['mon']['index'] + $this->_sections['mon']['step'];
$this->_sections['mon']['first']      = ($this->_sections['mon']['iteration'] == 1);
$this->_sections['mon']['last']       = ($this->_sections['mon']['iteration'] == $this->_sections['mon']['total']);
?>
							<td width="4%" style="border:1px #000 solid;" border="1" align="center"></td>
						<?PHP  endfor; endif; ?>
					<?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']; ?>
">