<%@ Page Language="C#" AutoEventWireup="true" debug="true"  Inherits="WinLibClass.Form.Admin.EmailSend.Schedule" %>




<link type="text/css" rel="stylesheet" media="screen" href="/admin/images/dlgbox.css" />	
<script>

function SaveSub()
{
	var queryString = jQuery('#form_add').serialize();
	jQuery.ajax({
		type: "POST",
		url: "/Admin/EmailSend/Update.aspx?IsAdd=21",
		data:queryString,
		cache: false,
		success: function(msg){
						if(msg=='1'){ 
							Common.ShowTipSuccess(false,'<%=(DataInfo.ID>0)?"修改":"添加" %>成功!',1);
							Common.EditDialgClose("EmailSendUpdate");
							var urlParam = "";
						//	document.location.replace(document.location.href);
						}else{
							if(msg.indexOf("您的权限不足")<0){msg = "<%=(DataInfo.ID>0)?"修改":"添加" %>失败,请检查各项输入是否正确或网络连接状态.";	}
							Common.ShowTipError('',msg,2);
						}
		}
	});

}

</script>

<form id="form_add">

<div class="PageWidthMsgBox">
<input type="hidden" id="ID" name="ID" value="<%=DataInfo.ID%>" class="input" />
<input type="hidden" id="GameType" name="GameType" value="<%=DataInfo.GameType%>" class="input" />

<input type="hidden" id="VendueId" name="VendueId" value="<%=DataInfo.VendueId%>" class="input" />
<input type="hidden" id="ProductId" name="ProductId" value="<%=DataInfo.ProductId%>" class="input" />
<input type="hidden" id="ProductName" name="ProductName" value="<%=DataInfo.ProductName%>" class="input" />
<input type="hidden" id="LastTime" name="LastTime" value="<%=DataInfo.LastTime.ToString("yyyy-MM-dd HH:mm:ss")%>" class="input" />

当前竞拍：第【<%=DataInfo.VendueId%>】期拍品“<%=DataInfo.ProductName%>”
</div>

<div class="PageWidthMsgBox">


	<div class="LineDiv">
	邮件标题：<input type="text" id="EmailTitle" name="EmailTitle" value="<%=DataInfo.EmailTitle%>" class="input InputTitle" />	</div>

	<div class="LineDiv">邮件内容：<br />
<textarea id="Content" name="Content"  class="textarea"><%=DataInfo.Content%></textarea >

<span style="font-size:12px;margin-left:73px;">注：“&lt;!--UserNickName--&gt;”属规则格式，请原样保留。</span>
<br />
	</div>
	<div class="LineDiv">样例：<br />	
<textarea id="Content_simple" name="Content_simple" class="textarea" readonly>亲爱的<!--UserNickName-->会员，您好，第5期竞拍将与<%=DateTime.Now.AddDays(5).ToString("yyyy年MM月dd日 HH时mm分")%>在秒杀频道第*期开拍，欢迎您参与。
天天拍卖网事业部
<%=DateTime.Now.ToString("yyyy-MM-dd")%></textarea >
	</div>
	<div class="LineDiv" style="display:none">是否立即发送：
	<select id="State" name="State">
	<option value="-1" <%=DataInfo.State==-1?"selected":""%> >暂不启动[默认]</option>
	<option value="0" <%=DataInfo.State==0?"selected":""%> >立即发送</option>
	<option value="1" <%=DataInfo.State==1?"selected":""%> >已添加发送队列</option>
	<option value="2" <%=DataInfo.State==2?"selected":""%> >发送完毕</option>
	</select>
	</div>



</div>
<div class="PageWidthMsgBox">


<div class="LineDiv">邮件总量：
<input type="text" id="SendCount" name="SendCount" value="<%=DataInfo.SendCount%>" class="input" readonly1 /> 成功量：
<input type="text" id="SendSuccessCount" name="SendSuccessCount" value="<%=DataInfo.SendSuccessCount%>" class="input" /></div>
<div class="LineDiv">　失败量：
<input type="text" id="SendFailCount" name="SendFailCount" value="<%=DataInfo.SendFailCount%>" readonly1 class="input" /> 退信量：
<input type="text" id="SendBackCount" name="SendBackCount" value="<%=DataInfo.SendBackCount%>" class="input" />

</div>
</div>

</form>
