%%ED^EDA^EDA27422%%ADM2040.tpl.php
6.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?PHP /* Smarty version 2.6.22, created on 2010-01-06 10:58:20
compiled from ADM2040.tpl */ ?>
<?PHP require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'ADM2040.tpl', 62, 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="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">
<tr>
<th class="ConfKubunTh" width="30%">部門名称</th>
<th class="ConfKubunTh" width="30%">業務名称</th>
<th class="ConfKubunTh" width="10%">受注額</th>
<th class="ConfKubunTh" width="20%">期間</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">
<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 $this->_tpl_vars['gyoumu_money'][$this->_sections['item']['index']]; ?>
<?PHP echo $this->_tpl_vars['Money_Tani']; ?>
<?PHP 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; ?>
</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>