LIST1720.tpl
6.04 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
<!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/jkl-calendar.js" charset="Shift_JIS"></script>
<SCRIPT LANGUAGE="JavaScript">
{literal}
function ichiranBack(){
document.Frm.action="LIST1000.php";
document.Frm.submit();
}
function del_chk(intFlg){
if (confirm("再配信設定を解除します。\nよろしいですか?")){
document.Frm.A_FLG.value=intFlg;
document.Frm.action="LIST1722.php";
document.Frm.submit();
}
}
function input_chk(){
if(isNaN(document.Frm.Resend_Year.value)){
window.alert("年は数値で入力してください。");
document.Frm.Resend_Year.focus();
return false;
}else if(!document.Frm.Resend_Year.value){
window.alert("年を入力してください。");
document.Frm.Resend_Year.focus();
return false;
}else if(document.Frm.Resend_Month.value==""){
window.alert("月を選択して下さい");
document.Frm.Resend_Month.focus();
return false;
}else if(document.Frm.Resend_Date.value==""){
window.alert("日を選択して下さい");
document.Frm.Resend_Date.focus();
return false;
}else if(document.Frm.Resend_Hour.value==""){
window.alert("時を選択して下さい");
document.Frm.Resend_Hour.focus();
return false;
}else if(document.Frm.Resend_Minute.value==""){
window.alert("分を選択して下さい");
document.Frm.Resend_Minute.focus();
return false;
}
if (document.Frm.kidok.checked==false && document.Frm.midok.checked==false) {
alert("【既読者へ】【未読者へ】のどちらかにチェックをつけてください");
return false;
}
if (confirm("この日時にメール再配信します。\nよろしいですか?")){
document.Frm.action="LIST1721.php";
document.Frm.submit();
}
}
function DayMax(DATE_YYYY,DATE_MM,DAY_MAX,cnt){
DATE_MM=eval(DATE_MM);
if(DATE_MM==1 || DATE_MM==3 || DATE_MM==5 || DATE_MM==7 || DATE_MM==8 || DATE_MM==10 || DATE_MM==12){
DAY_MAX=31;
}else if(DATE_MM==4 || DATE_MM==6 || DATE_MM==9 || DATE_MM==11){
DAY_MAX=30;
}else if(DATE_MM==2){
if((DATE_YYYY%4)==0){
DAY_MAX=29;
}else{
DAY_MAX=28;
}
}
document.Frm.Resend_Date.options[cnt].text = "--";
document.Frm.Resend_Date.options[cnt].value = "";
for(intCount = 0; intCount < DAY_MAX; intCount++){
cnt++;
document.Frm.Resend_Date.length = cnt+1;
if(cnt>=10){
document.Frm.Resend_Date.options[cnt].text = cnt;
document.Frm.Resend_Date.options[cnt].value = cnt;
}else{
document.Frm.Resend_Date.options[cnt].text = "0"+cnt;
document.Frm.Resend_Date.options[cnt].value = "0"+cnt;
}
}
}
function POP_Calendar(frm,yyyy,mm,dd,sele_year,sele_mon,sele_date) {
window.open("../include/calendar.php?frm="+frm+"&yyyy="+yyyy+"&mm="+mm+"&dd="+dd+"&main_year="+sele_year+"&main_mon="+sele_mon+"&strMainDate="+sele_date,"カレンダー",'width=350,height=230');
}
//カレンダー表示
function cal_get(strDate, divid){
arrYMD = strDate.split("/");
if(divid == "calid1"){
objY = document.Frm.Resend_Year;
objM = document.Frm.Resend_Month;
objD = document.Frm.Resend_Date;
}
//年
objY.value=arrYMD[0];
//月
for(i=0;i<objM.options.length;i++){
if(objM.options[i].value == arrYMD[1]){
objM.selectedIndex = i;
break;
}
}
//日
for(i=0;i<objD.options.length;i++){
if(objD.options[i].value == arrYMD[2]){
objD.selectedIndex = i;
break;
}
}
cal1 = new JKL.Calendar("calid1","Frm","colname1");
}
{/literal}
</SCRIPT>
<script>
{literal}
var cal1 = new JKL.Calendar("calid1","Frm","colname1");
{/literal}
</script>
</HEAD>
<BODY bgcolor="White">
<FORM METHOD="POST" name="Frm">
<!-- ヘッダー表示 -->
{include file='header.tpl'}
<!-- メニュー表示 -->
{include file='menu.tpl'}
<!-- 一覧表示 -->
<TABLE width="100%" border="0">
<TR>
<TH><B><FONT color="blue" size="5">メール再配信設定</FONT></B></TH>
</TR>
</TABLE>
<HR/>
<BR>
<CENTER>
<TABLE border=1 bordercolor="#008080" width="700">
<TR>
<TD bgcolor="#FFCC99">
<B><FONT size="2">再配信日時</FONT></B>
</TD>
<TD>
<TABLE border=0>
<TR>
<TD>
<INPUT size="5" maxlength="4" type="text" name="Resend_Year" Value="{$Kidok_YEAR}"><FONT size="2">年</FONT>
<SELECT name="Resend_Month" onchange="JavaScript:DayMax(Resend_Year.value,Resend_Month.value,0,0);">
{$opt_date_mm}
</SELECT><FONT size="2">月</FONT>
<SELECT name="Resend_Date">
{$opt_date_dd}
</SELECT><FONT size="2">日</FONT>
<SELECT name="Resend_Hour">
{$opt_time_hh}
</SELECT><FONT size="2">時</FONT>
<SELECT name="Resend_Minute">
{$opt_time_mm}
</SELECT><FONT size="2">分 </FONT>
</TD>
<TD>
<!--カレンダー表示-->
<A HREF="javascript:cal1.write();">
<img id="dateLink1" src="./include/cl001.gif" alt="日付選択" border="0" style="vertical-align:middle;margin:5px"/>
</A>
<INPUT type="hidden" name="colname1" value="{$calYMD1}">
<DIV id="calid1"></DIV>
</TD>
<TD>
<INPUT type="checkbox" name="kidok" {if $Kidoku_Flg==1} CHECKED{/if}><FONT size=2><B>既読者へ</B></FONT>
<INPUT type="checkbox" name="midok" {if $Midoku_Flg==1} CHECKED{/if}><FONT size=2><B>未読者へ</B></FONT>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<BR>
<TABLE border="0" width="544">
<TR>
<TD>
<CENTER>
<FONT SIZE=2>
配信日時を設定する場合はこのボタンを押してください⇒
</FONT>
<INPUT type="button" value=" 設 定 " onClick="return input_chk();">
<BR><BR>
<FONT SIZE=2>
配信日時を解除する場合はこのボタンを押してください⇒
</FONT>
<INPUT type="button" value=" 解 除 " onClick="return del_chk(3);">
</CENTER>
</TD>
</TR>
</TABLE>
<BR>
<INPUT type="button" name="back" value="戻 る" onClick="JavaScript:ichiranBack();">
</CENTER>
<BR>
<!-- フッター表示 -->
{include file='footer.tpl'}
<INPUT type="hidden" name="A_FLG" value="">
<INPUT type="hidden" name="mail_id" value="{$mail_id}">
</FORM>
</BODY>
</HTML>