MST1423.tpl
3.94 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
<!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 LANGUAGE="JavaScript">
{literal}
//********** 一覧へ戻る **********
function ichiranBack(){
if (confirm("入力内容は破棄して回答パターン一覧画面に戻ります\nよろしいですか?")){
document.Frm.action="./MST1410.php";
document.Frm.submit();
}
}
//********** 入力チェック **********
function input_chk(flg){
if(document.Frm.pattern_nm.value == ""){
window.alert("回答パターン名称を入力してください。");
document.Frm.pattern_nm.focus();
return false;
}
if (confirm("この内容で登録します。\nよろしいですか?")){
if (flg == 1){
document.Frm.action="MST1422.php";
document.Frm.submit();
}else{
document.Frm.action="MST1421.php";
document.Frm.submit();
}
}
}
//********** 解答欄変更 **********
function num_change(){
document.Frm.action="MST1420.php";
document.Frm.submit();
}
{/literal}
</SCRIPT>
</HEAD>
<BODY bgcolor="White">
<form name="Frm" method="POST">
<!-- ヘッダー表示 -->
{include file='header.tpl'}
<!-- メニュー表示 -->
{include file='menu.tpl'}
<!-- 一覧表示 -->
<CENTER>
<table width="100%" border="0">
<tr>
<th><B><FONT color=blue size=5>回答パターン登録</FONT></B></th>
</tr>
</table>
<hr/>
<br>
<TABLE border=0 WIDTH="700">
<TR>
<TD>
<CENTER>
<INPUT type="button" name="back" value="一覧に戻る" onClick="JavaScript:ichiranBack();">
</CENTER>
</TD>
</TR>
<TR>
<TD>
<B><FONT size="2" color=#FF0000>*</FONT></B><FONT size="2">は入力必須項目です</FONT>
</TD>
</TR>
<TR>
<TD>
<TABLE border=1 bordercolor="#008080" >
<TR>
<TD bgcolor="#FFCC99" WIDTH="150">
<B><FONT size="2">回答パターン名称</FONT><FONT size="2" color=#FF0000>*</FONT></B>
</TD>
<TD>
<INPUT maxlength="30" size="50" type="text" name="pattern_nm" value="{$pattern_nm}">
<B><FONT size="2">(英数字:最大30文字)</FONT></B>
</TD>
</TR>
<TR>
<TD bgcolor="#FFCC99"><B><FONT size="2">選択数</FONT></B></TD>
<TD>
<select name="select_nm" onChange="num_change();">
{section name=cnt start=0 loop=$max_num}
<option value="{$smarty.section.cnt.index}"
{if $select_nm == $smarty.section.cnt.index }
selected
{/if}
>{$smarty.section.cnt.index}
{/section}
</select>
<BR>
<FONT size=2><B>選択数0個の送信は、既読確認のみで回答を入力することはできません。</B></FONT>
</TD>
</TR>
{section name=cnt start=1 loop=$select_nm+1}
<TR>
<TD bgcolor="#FFCC99">
<B><FONT size="2">回答パターン{$smarty.section.cnt.index}</FONT></B>
</TD>
<TD>
{if $name_nm[cnt] =="" }
<B><FONT size="2" color="#FF0000">※入力されていません。</FONT></B><br>
{/if}
<INPUT maxlength="20" size="30" type="text" name="name_nm[{$smarty.section.cnt.index}]" value="{$name_nm[cnt]}">
<B><FONT size="2">(英数字:最大30文字)</FONT></B>
<input type="hidden" name="name{$smarty.section.cnt.index}_id" value="{$smarty.section.cnt.index}">
</TD>
</TR>
{/section}
</TABLE>
</TD>
</TR>
</TABLE>
<TABLE border=0 WIDTH="700">
<TR>
<td align="center">
<input type="button" value="{$btn_value}" onClick="return input_chk({$exeflg});">
</TD>
</TR>
</TABLE>
</CENTER>
<input type="hidden" name="pattern_id" value="{$pattern_id}">
<input type="hidden" name="default_flg" value="{$default_flg}">
<input type="hidden" name="del_flg" value="{$del_flg}">
<input type="hidden" name="exeflg" value="{$exeflg}">
<input type="hidden" name="e" value="{$exeflg}">
<input type="hidden" name="p" value="{$pattern_id}">
<input type="hidden" name="scrflg" value="1">
<!-- フッター表示 -->
{include file='footer.tpl'}
</FORM>
</BODY>
</HTML>