%%74^74B^74B3613D%%SIM0960.tpl.php
6.55 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<?PHP /* Smarty version 2.6.22, created on 2009-06-10 10:46:14
compiled from SIM0960.tpl */ ?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; cahrset=euc-jp">
<meta http-equiv="content-style-type" content="text/css">
<meta name="robots" content="noindex, nofollow">
<?PHP echo '
<script language="javascript">
<!--
function syain_chk(){
if ( (document.frm.lstBumon.selectedIndex == -1) || (document.frm.lstBumon.value == "") ) {
return false;
}
}
var SFlg = false; //サブミットフラグを定義
function DoubleSubmit(){ //ダブルサブミットチェック関数
if (SFlg){ //ダブルサブミットの場合
alert("応答中です"); //メッセージを出力
return false;
}
SFlg = true; //サブミットフラグを設定
return true; //戻り値を設定
}
function sinki(){
if (DoubleSubmit()) {
document.frm.mode.value="add";
document.frm.action = "SIM0961.php";
document.frm.method = "POST";
document.frm.submit();
}
}
function edit(){
var selno = 0;
if (syain_chk() == false) {
document.frm.lstBumon.focus();
return false;
}
if (DoubleSubmit()) {
//seq取得
document.frm.bseq.value = document.frm.lstBumon.value;
//名前取得
selno = document.frm.lstBumon.options.selectedIndex;
document.frm.bname.value = document.frm.lstBumon.options[selno].text;
document.frm.mode.value="edt";
document.frm.action = "SIM0961.php";
document.frm.method="POST";
document.frm.submit();
}
}
function del_chk(){
var selno = 0;
//ユーザの選択チェック
if (syain_chk() == false) {
document.frm.lstBumon.focus();
return false;
}
if (DoubleSubmit()) {
//seq取得
document.frm.bseq.value = document.frm.lstBumon.value;
//名前取得
selno = document.frm.lstBumon.options.selectedIndex;
document.frm.bname.value = document.frm.lstBumon.options[selno].text;
//ユーザの削除確認
if(confirm(document.frm.bname.value+\'を削除します\')){
document.frm.mode.value="del";
document.frm.action = "SIM0962.php";
document.frm.method = "POST";
document.frm.submit();
}else{
return false;
}
}
}
function up(){
var selno = 0;
if (document.frm.lstBumon.options.selectedIndex != 0){
if (syain_chk() == false) {
document.frm.lstBumon.focus();
return false;
}
if (DoubleSubmit()) {
document.frm.bseq.value = document.frm.lstBumon.value;
selno = document.frm.lstBumon.options.selectedIndex;
document.frm.bname.value = document.frm.lstBumon.options[selno].text;
document.frm.mode.value="up";
document.frm.idx.value = eval(document.frm.idx.value) -1;
document.frm.action = "SIM0962.php";
document.frm.method = "POST";
document.frm.submit();
}
}
}
function down(){
var selno = 0;
if ( document.frm.lstBumon.options.length-1
> document.frm.lstBumon.options.selectedIndex){
if (syain_chk() == false) {
document.frm.lstBumon.focus();
return false;
}
if (DoubleSubmit()) {
document.frm.bseq.value = document.frm.lstBumon.value;
selno = document.frm.lstBumon.options.selectedIndex;
document.frm.bname.value = document.frm.lstBumon.options[selno].text;
document.frm.mode.value = "down";
document.frm.idx.value = eval(document.frm.idx.value) +1;
document.frm.action = "SIM0962.php";
document.frm.method = "POST";
document.frm.submit();
}
}
}
function backmenu(){
location.href = "SIM0100.php";
}
function getindex(){
document.frm.idx.value = document.frm.lstBumon.options.selectedIndex;
}
-->
</script>
'; ?>
<title><?PHP echo $this->_tpl_vars['PHP_SYSNAME']; ?>
</title>
<link rel="stylesheet" href="./templates/SIM.css" type="text/css" />
</head>
<body>
<form name="frm">
<div class="LoginBody">
<div class="LoginHeader">
<img src="./templates/img/logo.gif" alt="<?PHP echo $this->_tpl_vars['PHP_SYSNAME']; ?>
" border="0">
</div>
<div class="MenuUserinfo">
<span class="NameText"><?PHP echo $this->_tpl_vars['PHP_GROUP_NAME']; ?>
/ <?PHP echo $this->_tpl_vars['PHP_BUMON_NAME']; ?>
/ <?PHP echo $this->_tpl_vars['PHP_USER_NAME']; ?>
</span>
<span class="LinkText">
<a href = "./help/HELP0960.html" target="_blank">ヘルプ</a> /
<a href = "SIM9999.php">ログアウト</a>
</span>
</div>
<div class="ConfOutline">
<div class="ConfTitle">
<?PHP echo $this->_tpl_vars['DEFARR'][11]; ?>
設定画面
</div>
<div class="ConfMain">
<!--<?PHP if ($this->_tpl_vars['PHP_USER_ADMIN'] == 1 || $this->_tpl_vars['PHP_USER_ADMIN'] == 99): ?>-->
<table class="NoLineTab">
<tr>
<td>
<input type="button" class="SimOkButton" onclick="sinki();" value="<?PHP echo $this->_tpl_vars['DEFARR'][11]; ?>
新規作成">
<input type="button" class="SimCancelButton" value="メニューへ" onclick="location.href='SIM0100.php'">
</td>
</TR>
</table>
<br>
<table class="NoLineTab">
<tr>
<td>現在の<?PHP echo $this->_tpl_vars['DEFARR'][11]; ?>
数</td>
<td align="center">
<?PHP echo $this->_tpl_vars['ibCnt']; ?>
</td>
</TR>
</table>
<br>
<table class="NoLineTab">
<tr>
<TD>
<SELECT size="10" name="lstBumon" onchange="getindex();">
<?PHP echo $this->_tpl_vars['bItem']; ?>
</SELECT>
</TD>
<TD>
<input type="button" class="SimCancelButton" onclick="up();" value="表示順位を上へ移動">
<br><br><br><br>
<input type="button" class="SimCancelButton" onclick="down();" value="表示順位を下へ移動">
</TD>
</tr>
</table>
<br>
<table class="NoLineTab">
<TR>
<TD align="center">
<input type="button" class="SimOkButton" onclick="edit();" value="<?PHP echo $this->_tpl_vars['DEFARR'][11]; ?>
名・アクセス権修正">
<input type="button" class="SimOkButton" onclick="del_chk();" value=" 削除 ">
<INPUT type="button" class="SimCancelButton" onclick="backmenu();" value=" 戻る ">
</TD>
</TR>
</table>
<input type="hidden" name="mode" value="">
<input type="hidden" name="bseq" value="">
<input type="hidden" name="bname" value="">
<input type="hidden" name="idx" value="<?PHP echo $this->_tpl_vars['idx']; ?>
">
<!--<?PHP else: ?>-->
<a href="SIM0100.php"><span class="Normalfont">マスタ変更権限がありません</span></a>
<!--<?PHP endif; ?>-->
</div>
</div>
<div class="MenuUserinfo">
<span class="NameText"></span>
<span class="LinkText">
<a href = "<?PHP echo $this->_tpl_vars['DEFARR'][1]; ?>
" target="_blank">ホームページへ</a>
</span>
</div>
<div class="LoginFooter">
<a href="<?PHP echo $this->_tpl_vars['DEFARR'][3]; ?>
" target="_blank" title="メディアテック(株)ホームページへ">© Copyright2006-2009 All rights reserved by Mediatech. Co., Ltd.</a>
</div>
</div>
</form>
</body>
</html>