<%@ page language="C#" autoeventwireup="true" inherits="admin_email_sendemailitem, localhost_deploy" %>
<%@ Register Src='../../common/formitem.ascx' TagName='formitem' TagPrefix='uc1' %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>群发邮件编辑页</title>
<link href='/admin/common/client.css' rel='stylesheet' type='text/css' />
</head>
<body>
<br />
<%
	Formitem.Table="Sys_SendEmail";
	Formitem.Head="邮件发送设置";
	Formitem.Action="";
	Formitem.AddItem("@@Csharp.SetInputText('邮件名称','S_Name','##Table[\"Sys_SendEmail\"].S_Name##','35','true','"+GetTip("6-1")+"')@@");
	
	if(Formitem["S_ID"]=="")
	{
		Formitem.AddItem("<tr><td class='tright'>EML文件：</td><td class='tleft'><input type=\"file\" name=\"file\" id=\"file\" class=\"inputbox\" style=\"width:300px;\" /><span class=\"red\" id=\"spn_file\"></span><script type=\"text/javascript\" >ExistVerify(\"file\",\"文件不能为空。\")</script>"+GetTip("6-2")+"</td></tr>");
	}	
	else
	{
		Formitem.AddOther("@@Csharp.SetInputHidden('S_EML','##Table[\"Sys_SendEmail\"].S_EML##')@@");
		Formitem.AddItem("@@Csharp.SetShowText('发送日期','##Table[\"Sys_SendEmail\"].S_Date##','')@@");
		
		Formitem.AddItem("@@Csharp.SetShowText('EML文件','<a href=\"/upload/file/##Table[\"Sys_SendEmail\"].S_EML##\" target=\"_blank\">##Table[\"Sys_SendEmail\"].S_EML##</a>','')@@");
	}
	
%>	
<uc1:formitem ID='Formitem' runat='server' />
<script type='text/javascript'>
$('frmitem').encoding ="multipart/form-data";
</script>
</body>
</html>   
