%%5A^5A9^5A9C15BA%%MST1110.tpl.php
13 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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
<?php /* Smarty version 2.6.26, created on 2017-06-01 23:10:59
compiled from MST1110.tpl */ ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META name="GENERATOR" content="Microsoft FrontPage 4.0">
<META http-equiv="Content-Type" content="text/html; charset=EUC-JP">
<META http-equiv="Content-Style-Type" content="text/css">
<link href="./css/style.css" rel="stylesheet" type="text/css">
<TITLE>め〜るNiポン!</TITLE>
<script type="text/javascript" src="./include/input_chk.js" charset="EUC-JP"></script>
<script>
<?php echo '
function Disp_List(){
if (confirm("入力内容は破棄してユーザー情報一覧画面に戻ります\\nよろしいですか?")){
document.frm.action="./MST1100.php";
document.frm.method="POST";
document.frm.submit();
return;
}
}
function Data_Delete(){
if (document.frm.Kanri_Flg.value == "1") {
alert("管理者は削除できません\\n\\n管理者変更後に削除してください。");
return false;
}
if (confirm("このユーザーを削除します\\nよろしいですか?")){
document.frm.pMode.value = "3";
document.frm.action = "MST1111.php";
document.frm.method = "POST";
document.frm.submit();
}
}
function Data_Touroku(pMode){
if (hissu_chk("氏名(姓)",document.frm.sei_kj.value)==false) {
document.frm.sei_kj.focus();
return false;
}
if (kana_chk("フリガナ姓",document.frm.sei_kn.value)==false) {
document.frm.sei_kn.focus();
return false;
}
if (kana_chk("フリガナ名",document.frm.mei_kn.value)==false) {
document.frm.mei_kn.focus();
return false;
}
chkCnt = 0;
if (document.frm.Group_Chk.length >= 2) {
for (i=0; i< document.frm.Group_Chk.length;i++){
if (document.frm.Group_Chk[i].checked) {
chkCnt++;
}
}
if (chkCnt==0) {
alert("所属部門は1つ以上チェックしてください");
return false;
}
}else{
if (document.frm.Group_Chk.checked==false) {
alert("所属部門は1つ以上チェックしてください");
return false;
}
}
if (mailadr_chk2(document.frm.email1.value)==false) {
document.frm.email1.focus();
return false;
}
if (document.frm.email2.value=="etc") {
if (mailadr_chk(document.frm.email1.value,document.frm.email2_2.value)==false) {
document.frm.email1.focus();
return false;
}
}
if (mailadr_chk(document.frm.pcemail1.value,document.frm.pcemail2.value)==false) {
document.frm.pcemail1.focus();
return false;
}
//if (yuubin_chk(document.frm.yubin_no1.value,document.frm.yubin_no2.value)==false) {
// document.frm.yubin_no1.focus();
// return false;
//}
//if (tel_chk("自宅電話番号",document.frm.telno1.value,document.frm.telno2.value,document.frm.telno3.value)==false) {
// document.frm.telno1.focus();
// return false;
//}
//if (tel_chk("携帯電話番号",document.frm.keitaiNo1.value,document.frm.keitaiNo2.value,document.frm.keitaiNo3.value)==false) {
// document.frm.keitaiNo1.focus();
// return false;
//}
if (script_chk("メモ",document.frm.biko.value)==false) {
document.frm.biko.focus();
return false;
}
if (document.frm.Kanri_Flg.value==1){
if (document.frm.email1.value=="") {
if (document.frm.pcemail1.value=="" && document.frm.pcemail2.value=="") {
window.alert("管理者はメールアドレスの入力が必須です。");
document.frm.pcemail1.focus();
return false;
}
}
}
var strGroup = "";
if (document.frm.Group_Chk.length >= 2) {
for (i=0; i< document.frm.Group_Chk.length;i++){
if (document.frm.Group_Chk[i].checked) {
strGroup=strGroup+document.frm.Group_Chk[i].value+"/";
}
}
}else{
if (document.frm.Group_Chk.checked) {
strGroup=strGroup+document.frm.Group_Chk.value+"/";
}
}
if (confirm("このユーザーを登録します\\nよろしいですか?")){
document.frm.Group_Data.value = strGroup;
document.frm.pMode.value = pMode;
document.frm.action = "MST1111.php";
document.frm.method = "POST";
document.frm.submit();
}
}
function txt_change(){
if(document.frm.email2.value=="etc"){
document.frm.email2_2.style.visibility="visible";
}else{
document.frm.email2_2.style.visibility="hidden";
document.frm.email2_2.value="";
}
}
'; ?>
</script>
</HEAD>
<BODY bgcolor="White" onload="txt_change()">
<FORM name="frm">
<!-- ヘッダー表示 -->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'header.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<!-- メニュー表示 -->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'menu.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<table width="100%" border="0">
<tr>
<th><B><font color=blue size=5>ユーザー情報登録</font></B></th>
</tr>
</table>
<hr />
<TABLE border=0 width="100%">
<TR>
<TD align="center">
<INPUT type="button" name="back" value="一覧に戻る" onClick="Disp_List();">
</TD>
</TR>
<TR>
<TD align="center">
<B><FONT size="2" color=#FF0000>*</FONT><B><FONT size="2">は入力必須項目です(氏名は姓のみ必須)</FONT>
</TD>
</TR>
<TR>
<TD align="center">
<TABLE border=1 bordercolor="#008080" width="544">
<TR>
<TD bgcolor="#FFCC99"><B><FONT size="2">氏名(漢字)</FONT></B><B><FONT size="2" color=#FF0000>*</B></FONT></TD>
<TD><B><FONT size="2">姓 </FONT></B><INPUT maxlength="50" size="50" type="text" name="sei_kj" Value="<?php echo $this->_tpl_vars['name_kj_sei']; ?>
"><br><B><FONT size="2">名 </FONT></B><INPUT maxlength="50" size="50" type="text" name="mei_kj" Value="<?php echo $this->_tpl_vars['name_kj_mei']; ?>
"></TD>
</TR>
<TR>
<TD bgcolor="#FFCC99"><B><FONT size="2">氏名(フリガナ)</FONT></B></TD>
<TD><B><FONT size="2">セイ </FONT></B><INPUT maxlength="100" size="50" type="text" name="sei_kn" Value="<?php echo $this->_tpl_vars['name_kn_sei']; ?>
"><br><B><FONT size="2">メイ </FONT></B><INPUT maxlength="100" size="50" type="text" name="mei_kn" Value="<?php echo $this->_tpl_vars['name_kn_mei']; ?>
"><B><FONT size="2">(全角カタカナ)</FONT></B></TD>
</TR>
<TR>
<TD bgcolor="#FFCC99"><B><FONT size="2">性別</FONT></B><B><FONT size="2" color=#FF0000>*</B></FONT></TD>
<TD>
<input type="radio" value="t" name="sex" <?php echo $this->_tpl_vars['sex'][0]; ?>
><B><FONT size="2">男</FONT></B>
<input type="radio" value="f" name="sex" <?php echo $this->_tpl_vars['sex'][1]; ?>
><B><FONT size="2">女</FONT></B>
</TD>
</TR>
<TR>
<TD bgcolor="#FFCC99"><B><FONT size="2">グループ</FONT></B><B><FONT size="2" color=#FF0000>*</B></FONT></TD>
<TD ALIGN="LEFT">
<?php unset($this->_sections['idx']);
$this->_sections['idx']['name'] = 'idx';
$this->_sections['idx']['loop'] = is_array($_loop=$this->_tpl_vars['Group_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']);
?>
<input type="checkbox" name="Group_Chk" value="<?php echo $this->_tpl_vars['Group_Data'][$this->_sections['idx']['index']][0]; ?>
" <?php echo $this->_tpl_vars['Group_Data'][$this->_sections['idx']['index']][2]; ?>
><FONT size=2><?php echo $this->_tpl_vars['Group_Data'][$this->_sections['idx']['index']][1]; ?>
</FONT><BR>
<?php endfor; endif; ?>
</TD>
</TR>
<tr bgcolor="#ffffff">
<td valign="top" bgcolor="#FFCC99" rowspan="5"><B><FONT size="2">住 所</FONT></B></TD>
<td>〒<input type="text" maxlength="7" size="10" value="<?php echo $this->_tpl_vars['yubin_no']; ?>
" name="yubin_no"></td>
</tr>
<tr bgcolor="#ffffff">
<td><select name="address1"><?php echo $this->_tpl_vars['Pref_Data']; ?>
</select></td>
</tr>
<tr bgcolor="#ffffff">
<td><input maxlength="10" size="23" value="<?php echo $this->_tpl_vars['addr_city']; ?>
" name="address2"><B><FONT size="2">(市区郡)</FONT></B></TD>
</tr>
<tr bgcolor="#ffffff">
<td><input maxlength="20" size="46" value="<?php echo $this->_tpl_vars['addr_banti']; ?>
" name="address3"><B><FONT size="2">(町名、番地)</FONT></B></TD>
</tr>
<tr bgcolor="#ffffff">
<td><input maxlength="20" size="46" value="<?php echo $this->_tpl_vars['addr_apart']; ?>
" name="address4"><B><FONT size="2">(マンション・アパート名)</FONT></B></TD>
</tr>
<tr bgcolor="#ffffff">
<td bgcolor="#FFCC99"><B><FONT size="2">自宅電話番号</FONT></B></td>
<td><input maxlength="12" size="20" value="<?php echo $this->_tpl_vars['tel_no']; ?>
" name="tel_no"></td>
</tr>
<tr bgcolor="#ffffff">
<td bgcolor="#FFCC99"><B><FONT size="2">携帯電話番号</FONT></B></TD>
<td><input maxlength="13" size="20" value="<?php echo $this->_tpl_vars['keitai_no']; ?>
" name="keitai_no"></td>
</tr>
<tr bgcolor="#ffffff">
<td bgcolor="#FFCC99"><B><FONT size="2">メモ</FONT></B></TD>
<td><TEXTAREA name=biko rows=5 cols=50 ><?php echo $this->_tpl_vars['biko']; ?>
</TEXTAREA></td>
</tr>
<tr bgcolor="#ffffff">
<td bgcolor="#FFCC99"><B><FONT size="2">会社名</FONT></B></TD>
<td><input maxlength="50" size="51" value="<?php echo $this->_tpl_vars['syamei']; ?>
" name="syamei"></TD>
</tr>
<tr bgcolor="#ffffff">
<td bgcolor="#FFCC99"><B><FONT size="2">携帯メールアドレス</FONT></B></TD>
<td>
<input maxlength="50" size="27" value="<?php echo $this->_tpl_vars['mb_mail'][0]; ?>
" name="email1">@
<select name="email2" onChange="txt_change();"><?php echo $this->_tpl_vars['Domain_Data']; ?>
</select>
<input maxlength="50" size="15" value="<?php echo $this->_tpl_vars['mb_mail'][1]; ?>
" name="email2_2">
</td>
</tr>
<tr bgcolor="#ffffff">
<td bgcolor="#FFCC99"><B><FONT size="2">PCメールアドレス</FONT></B></TD>
<td><input maxlength="50" size="27" value="<?php echo $this->_tpl_vars['pc_mail'][0]; ?>
" name="pcemail1">@<input maxlength="45" size="27" value="<?php echo $this->_tpl_vars['pc_mail'][1]; ?>
" name="pcemail2"></td>
</tr>
</TABLE>
<TABLE border="0" width="544">
<TR>
<TD width="544">
<FONT size="2" color=#FF0000><B>※携帯電話で「ドメイン指定受信機能」、「なりすましメール拒否機能」等を<BR> 設定している場合、メールはブロックされてしまう場合があります。<BR>
管理者のメールアドレスは、携帯電話側で受信可能ドメインとして指定して<BR> おくようにしてください。</B>
</FONT>
</TD>
</TR>
</TABLE>
<TABLE border="0">
<TR><TD colspan="2"></TD></TR>
<?php if ($this->_tpl_vars['syain_cd'] == ""): ?>
<TR>
<TD width="360"><FONT size="2"><B>情報を登録する場合はこのボタンを押してください→</B></FONT></TD>
<TD align="center"><INPUT type="button" name="btnSinki" onclick="return Data_Touroku('1');" value=" 登 録 " ></TD>
</TR>
<?php else: ?>
<TR>
<TD width="360"><FONT size="2"><B>情報を更新する場合はこのボタンを押してください→</B></FONT></TD>
<TD align="center"><INPUT type="button" name="btnUpdate" onclick="return Data_Touroku('2');" value=" 更 新 " ></TD>
</TR>
<TR>
<TD width="360"><FONT size="2"><B>情報を削除する場合はこのボタンを押してください→</B></FONT></TD>
<TD align="center"><INPUT type="button" name="btnDelete" onClick="Data_Delete();" value=" 削 除 "></TD>
</TR>
<?php endif; ?>
</TABLE>
<TD>
<TR>
</TABLE>
<input type="hidden" name="pMode" value="">
<INPUT TYPE="hidden" NAME="syain_cd" VALUE="<?php echo $this->_tpl_vars['syain_cd']; ?>
">
<input type="hidden" name="Group_Data" value="">
<input type="hidden" name="Kanri_Flg" value="<?php echo $this->_tpl_vars['Kanri_Flg']; ?>
">
<!-- フッター表示 -->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
</FORM>
</BODY>
</HTML>