LIST1720.tpl 6.04 KB
<!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>