%%7A^7A0^7A054F32%%ZIS0500.tpl.php 16.3 KB
<?PHP  /* Smarty version 2.6.22, created on 2010-07-02 21:01:48
         compiled from ZIS0500.tpl */ ?>
<?PHP  require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'ZIS0500.tpl', 51, false),array('modifier', 'replace', 'ZIS0500.tpl', 129, false),)), $this); ?>
<div class="SimMiddle">
	<small><br></small>
	<div class="SimTitle">
		<span id="titletxt">資金収支実績表</span>
	</div>
	<div class="SimMain">
			<br>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<?PHP  echo $this->_tpl_vars['first_dsp_y']; ?>
年〜<?PHP  echo $this->_tpl_vars['last_dsp_y']; ?>

				&nbsp;&nbsp;&nbsp;&nbsp;
				金額単位(<?PHP  if ($this->_tpl_vars['strUnit'] == "円"): ?><?PHP  echo $this->_tpl_vars['strUnit']; ?>
<?PHP  else: ?><?PHP  echo $this->_tpl_vars['strUnit']; ?>
<?PHP  endif; ?>)
				&nbsp;&nbsp;&nbsp;&nbsp;
<!--
				表示切替<select name="dispmode" onchange="location.href='ZIS0400.php'">
					<option value="0" selected="selected">年単位</option>
					<option value="1">月単位</option>
				</select>
-->
		<span class="printhidden">
				&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="button" value="<<前5年" onclick="move_navi(1);">
				<input type="button" value="<前" onclick="move_navi(3);">
				<input type="button" value="過去5年" onclick="move_navi(0);">
				<input type="button" value="次>" onclick="move_navi(4);">
				<input type="button" value="次5年>>" onclick="move_navi(2);">
				
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="button" value="Excelから印刷" onclick="show_excel();">
				&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="button" value="印刷" onclick="show_print();">
				
						<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font size="small" color="red">※毎年決算月を表示します。</font>
					</span>
		<hr>
		
			<table class="printtable" style="margin-left:20px;" width="90%">
				<tr>
					<td align="left">

						<table class="ZIS_Table" width="100%"> 
							<tr>
								<th align="center" nowrap>
									
								</th>
<?PHP  unset($this->_sections['idx']);
$this->_sections['idx']['name'] = 'idx';
$this->_sections['idx']['loop'] = is_array($_loop=$this->_tpl_vars['strYTitle']) ? 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']);
?>
								<th width="10%" align="center" nowrap>
									<?PHP  echo $this->_tpl_vars['strYTitle'][$this->_sections['idx']['index']]; ?>

								</th>
	<?PHP  if ($this->_sections['idx']['iteration'] < count($this->_tpl_vars['strYTitle'])): ?>
								<th width="8%" align="center" nowrap>
									増減
								</th>
	<?PHP  endif; ?>
<?PHP  endfor; endif; ?>
							</tr>
<?PHP  unset($this->_sections['idx']);
$this->_sections['idx']['name'] = 'idx';
$this->_sections['idx']['loop'] = is_array($_loop=$this->_tpl_vars['strData']) ? 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']);
?>

							<tr>
								<td style="<?PHP  if ($this->_sections['idx']['iteration'] == 1 || $this->_sections['idx']['iteration'] == 5 || $this->_sections['idx']['iteration'] == 9 || $this->_sections['idx']['iteration'] == 15 || $this->_sections['idx']['iteration'] == 19 || $this->_sections['idx']['iteration'] == 23 || $this->_sections['idx']['iteration'] == 24): ?>background-color:#CFFFBF;<?PHP  elseif ($this->_sections['idx']['iteration'] == 26): ?>background-color:#DFDFDF;<?PHP  endif; ?>text-align:center;" align="center" nowrap>
									<?PHP  echo $this->_tpl_vars['strData'][$this->_sections['idx']['index']][3]; ?>

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

            for ($this->_sections['idx2']['index'] = $this->_sections['idx2']['start'], $this->_sections['idx2']['iteration'] = 1;
                 $this->_sections['idx2']['iteration'] <= $this->_sections['idx2']['total'];
                 $this->_sections['idx2']['index'] += $this->_sections['idx2']['step'], $this->_sections['idx2']['iteration']++):
$this->_sections['idx2']['rownum'] = $this->_sections['idx2']['iteration'];
$this->_sections['idx2']['index_prev'] = $this->_sections['idx2']['index'] - $this->_sections['idx2']['step'];
$this->_sections['idx2']['index_next'] = $this->_sections['idx2']['index'] + $this->_sections['idx2']['step'];
$this->_sections['idx2']['first']      = ($this->_sections['idx2']['iteration'] == 1);
$this->_sections['idx2']['last']       = ($this->_sections['idx2']['iteration'] == $this->_sections['idx2']['total']);
?>
								<td <?PHP  if ($this->_sections['idx']['iteration'] == 1 || $this->_sections['idx']['iteration'] == 5 || $this->_sections['idx']['iteration'] == 9 || $this->_sections['idx']['iteration'] == 15 || $this->_sections['idx']['iteration'] == 19 || $this->_sections['idx']['iteration'] == 23 || $this->_sections['idx']['iteration'] == 24): ?>style="background-color:#CFFFBF;" align="right">
									<?PHP  echo $this->_tpl_vars['strDataY'][$this->_sections['idx2']['index']][$this->_sections['idx']['index']]; ?>

									<?PHP  elseif ($this->_sections['idx']['iteration'] == 26): ?>style="background-color:#DFDFDF;" align="right">
									<?PHP  echo $this->_tpl_vars['strDataY'][$this->_sections['idx2']['index']][$this->_sections['idx']['index']]; ?>

									<?PHP  else: ?>style="background-color:#FFF8BF;" align="right">
									<?PHP  echo $this->_tpl_vars['strDataY'][$this->_sections['idx2']['index']][$this->_sections['idx']['index']]; ?>

									<?PHP  endif; ?>
								</td>
			<?PHP  if ($this->_sections['idx2']['iteration'] < count($this->_tpl_vars['strDataY'])): ?>
								<td <?PHP  if ($this->_sections['idx']['iteration'] == 1 || $this->_sections['idx']['iteration'] == 5 || $this->_sections['idx']['iteration'] == 9 || $this->_sections['idx']['iteration'] == 15 || $this->_sections['idx']['iteration'] == 19 || $this->_sections['idx']['iteration'] == 23 || $this->_sections['idx']['iteration'] == 24): ?>style="background-color:#CFFFBF;"<?PHP  elseif ($this->_sections['idx']['iteration'] == 26): ?>style="background-color:#DFDFDF;"<?PHP  endif; ?> align="center" nowrap>
									<?PHP  if ($this->_tpl_vars['strCompY'][$this->_sections['idx2']['iteration']][$this->_sections['idx']['index']] != 0): ?>
										<span style="color:#303080;"><?PHP  echo $this->_tpl_vars['strCompY'][$this->_sections['idx2']['iteration']][$this->_sections['idx']['index']]; ?>
</span>
									<?PHP  endif; ?>
								</td>
			<?PHP  endif; ?>
		<?PHP  endfor; endif; ?>
							</tr>
		<?PHP  if ($this->_sections['idx']['iteration'] == 15 || $this->_sections['idx']['iteration'] == 19 || $this->_sections['idx']['iteration'] == 23): ?>
							<tr><td>&nbsp;</td><td colspan="9" nowrap>&nbsp;</td></tr>
		<?PHP  endif; ?>
<?PHP  endfor; endif; ?>
						</table> 

					</td>
				</tr>
				<tr>
					<td align="left">
						<table class="ZIS_Table" width="100%">
<?PHP  unset($this->_sections['idx']);
$this->_sections['idx']['name'] = 'idx';
$this->_sections['idx']['loop'] = is_array($_loop=$this->_tpl_vars['strDataSagaku']) ? 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']);
?>
							<tr>
<!--
								<td style="<?PHP  if ($this->_sections['idx']['iteration'] == 1 || $this->_sections['idx']['iteration'] == 3): ?>background-color:#FFFFFF;<?PHP  else: ?>background-color:#CFFFBF;<?PHP  endif; ?>text-align:center;" nowrap>
-->
								<td style="background-color:#CFFFBF;text-align:center;" nowrap>
									<?PHP  echo $this->_tpl_vars['strDataSagaku'][$this->_sections['idx']['index']][3]; ?>

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

            for ($this->_sections['idx2']['index'] = $this->_sections['idx2']['start'], $this->_sections['idx2']['iteration'] = 1;
                 $this->_sections['idx2']['iteration'] <= $this->_sections['idx2']['total'];
                 $this->_sections['idx2']['index'] += $this->_sections['idx2']['step'], $this->_sections['idx2']['iteration']++):
$this->_sections['idx2']['rownum'] = $this->_sections['idx2']['iteration'];
$this->_sections['idx2']['index_prev'] = $this->_sections['idx2']['index'] - $this->_sections['idx2']['step'];
$this->_sections['idx2']['index_next'] = $this->_sections['idx2']['index'] + $this->_sections['idx2']['step'];
$this->_sections['idx2']['first']      = ($this->_sections['idx2']['iteration'] == 1);
$this->_sections['idx2']['last']       = ($this->_sections['idx2']['iteration'] == $this->_sections['idx2']['total']);
?>
<!--
								<td style="<?PHP  if ($this->_sections['idx']['iteration'] == 1 || $this->_sections['idx']['iteration'] == 3): ?>background-color:#FFFFFF;<?PHP  else: ?>background-color:#CFFFBF;<?PHP  endif; ?>text-align:right;" width="10%" nowrap>
											<input type="text" style="width:70px; text-align:right;" name="txtUriage" value="" onchange="uriage_calc();">
											<input type="hidden" name="hdnUriage" value="<?PHP  echo ((is_array($_tmp=$this->_tpl_vars['strDataSagakuY'][$this->_sections['idx2']['index']][$this->_sections['idx']['index']])) ? $this->_run_mod_handler('replace', true, $_tmp, ",", "") : smarty_modifier_replace($_tmp, ",", "")); ?>
" >
									<input type="text" class="txtCalcReadonly" name="txtUriageRes" value="" readonly>
											<input type="text" style="width:70px; text-align:right;" name="txtGenka" value="" onchange="genka_calc();">
											<input type="hidden" name="hdnGenka" value="<?PHP  echo ((is_array($_tmp=$this->_tpl_vars['strDataSagakuY'][$this->_sections['idx2']['index']][$this->_sections['idx']['index']])) ? $this->_run_mod_handler('replace', true, $_tmp, ",", "") : smarty_modifier_replace($_tmp, ",", "")); ?>
" >
									<input type="text" class="txtCalcReadonly" name="txtGenkaRes" value="" readonly>
											<?PHP  echo $this->_tpl_vars['strDataSagakuY'][$this->_sections['idx2']['index']][$this->_sections['idx']['index']]; ?>

		-->
								<td style="background-color:#CFFFBF;text-align:right;" width="10%" nowrap>
									<?PHP  echo $this->_tpl_vars['strDataSagakuY'][$this->_sections['idx2']['index']][$this->_sections['idx']['index']]; ?>

								</td>
		<?PHP  if ($this->_sections['idx2']['iteration'] < count($this->_tpl_vars['strDataSagakuY'])): ?>
<!--
								<td style="<?PHP  if ($this->_sections['idx']['iteration'] == 1 || $this->_sections['idx']['iteration'] == 3): ?>background-color:#FFFFFF;<?PHP  else: ?>background-color:#CFFFBF;<?PHP  endif; ?>text-align:right;" width="8%" nowrap>
-->
								<td style="background-color:#CFFFBF;text-align:right;" width="8%" nowrap>
									&nbsp;
								</td>
		<?PHP  endif; ?>
	<?PHP  endfor; endif; ?>
							</tr>
<?PHP  endfor; endif; ?>
						</table>
					</td>
				</tr>
			</table>
			<br>
	</div>
	<br>
</div>
<input type="hidden" name="dispStart" value="<?PHP  echo $this->_tpl_vars['dispStart']; ?>
">

<input type="hidden" name="start_y" value="<?PHP  echo $this->_tpl_vars['start_y']; ?>
">
<input type="hidden" name="start_m" value="<?PHP  echo $this->_tpl_vars['start_m']; ?>
">
<input type="hidden" name="end_y" value="<?PHP  echo $this->_tpl_vars['end_y']; ?>
">
<input type="hidden" name="end_m" value="<?PHP  echo $this->_tpl_vars['end_m']; ?>
">