%%ED^EDA^EDA27422%%ADM2040.tpl.php 9.25 KB
<?PHP  /* Smarty version 2.6.22, created on 2014-03-19 17:26:21
         compiled from ADM2040.tpl */ ?>
<?PHP  require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'number_format', 'ADM2040.tpl', 49, false),array('modifier', 'count', 'ADM2040.tpl', 79, false),)), $this); ?>
	<div class="SimMiddle">
		<small><br></small>
		<div class="MenuTitle">
			<span id="titletxt">業務の追加・編集</span>
		</div>
	<div class="ConfMain">
		<?PHP  if ($this->_tpl_vars['PHP_USER_ADMIN'] == 1 || $this->_tpl_vars['PHP_USER_ADMIN'] == 99): ?>
			<br>
			<table class="TBL_ADM0010_1" width="60%">
				<TR>
					<th class="ConfKubunTh" width="20%">表示切替</th>
					<TD class="ConfKubunTd" align="left">
						 部門:<SELECT name="cboArea"  onChange="Chg_Disp()"><?PHP  echo $this->_tpl_vars['AreaData']; ?>
</SELECT>
						 期間:<SELECT name="cboKikan" onChange="Chg_Disp()"><?PHP  echo $this->_tpl_vars['KikanData']; ?>
</SELECT>
					</TD>
				</TR>
			</table>
			<table class="MemTable" width="90%">
				<TR>
					<TD align="left" width="50%">
						<input type="button" class="btnGo"  value="業務の追加" onclick="location.href='ADM2041.php?mode=add'">   
					</TD>
					<TD align="right" width="50%"><font color="#009900">※工番順に表示されます。</font></TD>
				</TR>
			</table>
			<br>
			<table class="TBL_ADM0010_1" width="95%">
				<tr>
					<th class="ConfKubunTh" width="13%">部門名称</th>
					<th class="ConfKubunTh" width="7%">工番</th>
					<th class="ConfKubunTh" width="19%">業務名称</th>
					<th class="ConfKubunTh" width="10%">受注額</th>
					<th class="ConfKubunTh" width="18%">取引先</th>
					<th class="ConfKubunTh" width="23%">期間</th>
					<th class="ConfKubunTh" width="10%">削除</th>
					<!--
					<th class="ConfKubunTh" width="10%">表示順</th>
					-->
				</tr>
				<?PHP  unset($this->_sections['item']);
$this->_sections['item']['name'] = 'item';
$this->_sections['item']['loop'] = is_array($_loop=$this->_tpl_vars['gyoumu_name']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['item']['show'] = true;
$this->_sections['item']['max'] = $this->_sections['item']['loop'];
$this->_sections['item']['step'] = 1;
$this->_sections['item']['start'] = $this->_sections['item']['step'] > 0 ? 0 : $this->_sections['item']['loop']-1;
if ($this->_sections['item']['show']) {
    $this->_sections['item']['total'] = $this->_sections['item']['loop'];
    if ($this->_sections['item']['total'] == 0)
        $this->_sections['item']['show'] = false;
} else
    $this->_sections['item']['total'] = 0;
if ($this->_sections['item']['show']):

            for ($this->_sections['item']['index'] = $this->_sections['item']['start'], $this->_sections['item']['iteration'] = 1;
                 $this->_sections['item']['iteration'] <= $this->_sections['item']['total'];
                 $this->_sections['item']['index'] += $this->_sections['item']['step'], $this->_sections['item']['iteration']++):
$this->_sections['item']['rownum'] = $this->_sections['item']['iteration'];
$this->_sections['item']['index_prev'] = $this->_sections['item']['index'] - $this->_sections['item']['step'];
$this->_sections['item']['index_next'] = $this->_sections['item']['index'] + $this->_sections['item']['step'];
$this->_sections['item']['first']      = ($this->_sections['item']['iteration'] == 1);
$this->_sections['item']['last']       = ($this->_sections['item']['iteration'] == $this->_sections['item']['total']);
?>
					<tr>
						<td class="ConfKubunTd"><?PHP  echo $this->_tpl_vars['bumon_name'][$this->_sections['item']['index']]; ?>
</td>
						<td class="ConfKubunTd"><?PHP  echo $this->_tpl_vars['gyoumu_koban'][$this->_sections['item']['index']]; ?>
</td>
						<td class="ConfKubunTd">
							<a href="ADM2041.php?mode=edt&seq=<?PHP  echo $this->_tpl_vars['gyoumu_id'][$this->_sections['item']['index']]; ?>
"><?PHP  echo $this->_tpl_vars['gyoumu_name'][$this->_sections['item']['index']]; ?>
</a>
						</td>
						<td class="ConfKubunTd" align="right">
							<?PHP  if ($this->_tpl_vars['gyoumu_money'][$this->_sections['item']['index']] != '0'): ?>
									<?PHP  echo ((is_array($_tmp=$this->_tpl_vars['gyoumu_money'][$this->_sections['item']['index']])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
<?PHP  echo $this->_tpl_vars['Money_Tani']; ?>

							<?PHP  endif; ?>
						</td>
						<td class="ConfKubunTd" align="right">
							<?PHP  unset($this->_sections['item2']);
$this->_sections['item2']['name'] = 'item2';
$this->_sections['item2']['loop'] = is_array($_loop=$this->_tpl_vars['gyousya_id'][$this->_sections['item']['index']]) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['item2']['show'] = true;
$this->_sections['item2']['max'] = $this->_sections['item2']['loop'];
$this->_sections['item2']['step'] = 1;
$this->_sections['item2']['start'] = $this->_sections['item2']['step'] > 0 ? 0 : $this->_sections['item2']['loop']-1;
if ($this->_sections['item2']['show']) {
    $this->_sections['item2']['total'] = $this->_sections['item2']['loop'];
    if ($this->_sections['item2']['total'] == 0)
        $this->_sections['item2']['show'] = false;
} else
    $this->_sections['item2']['total'] = 0;
if ($this->_sections['item2']['show']):

            for ($this->_sections['item2']['index'] = $this->_sections['item2']['start'], $this->_sections['item2']['iteration'] = 1;
                 $this->_sections['item2']['iteration'] <= $this->_sections['item2']['total'];
                 $this->_sections['item2']['index'] += $this->_sections['item2']['step'], $this->_sections['item2']['iteration']++):
$this->_sections['item2']['rownum'] = $this->_sections['item2']['iteration'];
$this->_sections['item2']['index_prev'] = $this->_sections['item2']['index'] - $this->_sections['item2']['step'];
$this->_sections['item2']['index_next'] = $this->_sections['item2']['index'] + $this->_sections['item2']['step'];
$this->_sections['item2']['first']      = ($this->_sections['item2']['iteration'] == 1);
$this->_sections['item2']['last']       = ($this->_sections['item2']['iteration'] == $this->_sections['item2']['total']);
?>
									<?PHP  echo $this->_tpl_vars['gyousya_name'][$this->_sections['item']['index']][$this->_sections['item2']['index']]; ?>
<br />
							<?PHP  endfor; endif; ?>
						</td>
						<td class="ConfKubunTd" align="center">
							<?PHP  if ($this->_tpl_vars['gyoumu_st_term'][$this->_sections['item']['index']] != "" && $this->_tpl_vars['gyoumu_ed_term'][$this->_sections['item']['index']] != ""): ?>
									<?PHP  echo $this->_tpl_vars['gyoumu_st_term'][$this->_sections['item']['index']]; ?>
<?PHP  echo $this->_tpl_vars['gyoumu_ed_term'][$this->_sections['item']['index']]; ?>

							<?PHP  elseif ($this->_tpl_vars['gyoumu_st_term'][$this->_sections['item']['index']] != "" && $this->_tpl_vars['gyoumu_ed_term'][$this->_sections['item']['index']] == ""): ?>
									<?PHP  echo $this->_tpl_vars['gyoumu_st_term'][$this->_sections['item']['index']]; ?>

							<?PHP  elseif ($this->_tpl_vars['gyoumu_st_term'][$this->_sections['item']['index']] == "" && $this->_tpl_vars['gyoumu_ed_term'][$this->_sections['item']['index']] != ""): ?>
<?PHP  echo $this->_tpl_vars['gyoumu_ed_term'][$this->_sections['item']['index']]; ?>

							<?PHP  endif; ?>
						</td>
						<td class="ConfKubunTd" align="center">
							<input type="button" class="btnDelete" value= " 削除 " onclick="del_chk(<?PHP  echo $this->_tpl_vars['gyoumu_id'][$this->_sections['item']['index']]; ?>
, '<?PHP  echo $this->_tpl_vars['gyoumu_name'][$this->_sections['item']['index']]; ?>
')">
						</td>
						<!--
							<td class="ConfKubunTd" align="center">
								<table>
									<tr>
										<td >
											<?PHP  if ($this->_sections['item']['index'] > 0): ?>
																<input type="button" class="btnTemp" value="↑" onclick="location.href='ADM2042.php?mode=up&seq=<?PHP  echo $this->_tpl_vars['gyoumu_id'][$this->_sections['item']['index']]; ?>
'">
											<?PHP  endif; ?>
										</td>
										<td >
											<?PHP  if ($this->_sections['item']['index'] < ( count($this->_tpl_vars['gyoumu_name']) - 1 )): ?>
													<input type="button" class="btnTemp" value="↓" onclick="location.href='ADM2042.php?mode=down&seq=<?PHP  echo $this->_tpl_vars['gyoumu_id'][$this->_sections['item']['index']]; ?>
'">
											<?PHP  endif; ?>
										</td>
									</tr>
								</table>
							</td>
						-->
					</tr>
				<?PHP  endfor; endif; ?>
				<tr><td colspan="7"></td></tr>
				<tr>
					<th class="ConfKubunTh" colspan="3">受注額計</th>
					<td class="ConfKubunTd" colspan="4"> <?PHP  echo ((is_array($_tmp=$this->_tpl_vars['sum_gyoumu_money'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
<?PHP  echo $this->_tpl_vars['Money_Tani']; ?>
</td>
				</tr>
			</table>
			<br>
			<table class="MemTable">
				<TR>
					<TD align="center">
						<input type="button" class="btnGo"  value="業務の追加" onclick="location.href='ADM2041.php?mode=add'">   
					</TD>
				</TR>
			</table>
			<br>
			<input name="mode"         type="hidden" value="">
			<input name="gyoumu_id"    type="hidden" value="">
			<input name="gyoumukbn_id" type="hidden" value="">
		<?PHP  else: ?>
			<a href="SIM0100.php"><span class="Normalfont">マスタ変更権限がありません</span></a>
		<?PHP  endif; ?>
	</div>
	<br>
</div>