<%@ Page Language="C#" MasterPageFile="Admin.Master" AutoEventWireup="true" CodeBehind="Dingyueemail.aspx.cs" Inherits="Mvcb2b.admin.Dingyueemail" Title="订阅添加" ValidateRequest="false" Async="true" %>
<%@ MasterType VirtualPath="Admin.Master" %>
<%@ Register src="controls/tinyMCE.ascx" tagname="tinyMCE" tagprefix="uc1" %>
<%@ Register src="controls/Upallfiles.ascx" tagname="Upallfiles" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script type="text/javascript">
function checkform()
{
    if (typeof (Page_ClientValidate) == 'function') {
        if (Page_ClientValidate('Haosubmit'))    //(Page_ClientValidate())
           {

               //var contentvalue = GetTinyMceContent("<%--=content_txt.Haoid --%>");
              // var contentvalue = GetTinyMceContent("<%--=content_txt.Haoid --%>");
               //if (contentvalue == "" || contentvalue == null) {
              //     alert("-内容不能为空！");
              ////     return false;
              // } 
           } 
    }
   }
   function pdfprocess(flag) {
       try {
           if (flag == true) {
               $("#wrapshow").show();
               fileupstate = window.setInterval("getpagestate()", 2000); 
           }
           else
               $("#wrapshow").hide();
       }
       catch (err) { }
   }
</script>
<script type="text/javascript">
    function Win_open(link) {
        window.open(link, '', 'top=120,left=200,width=650,height=450,scrollbars=no');
    }
</script>
<div class="path">当前位置： 系统管理 >>  写邮件</div>
<h3><asp:Literal  ID="Literal1" runat="server"></asp:Literal></h3>

<div class="menu2"><a href="Dingyueemail.aspx">写邮件</a> <a href="Dingyueemailmanage.aspx">发送邮件管理</a> <a href="Dingyuesetup.aspx">SMTP发送设置</a>  <a href="Dingyuemanage.aspx">返回订阅管理</a></div>

<table width="92%" border="0" class="editor"   style="background-color:#f5f5f5;margin-left:auto;margin-right:auto;" cellpadding="3" cellspacing="1">     
 <tr><td align="right" style="width:120px;">收件人：</td>
 <td><asp:TextBox ID="toemail_txt" Width="490px" runat="server"></asp:TextBox>  
 <br /><span style="color:Gray;">多个邮件请用英文逗号","分隔</span></td></tr>
 <tr><td align="right" >主题：</td>
 <td><asp:TextBox ID="title_txt" runat="server" Text=""  Width="490px"></asp:TextBox></td>
 </tr>
 <tr><td align="right" >发件人：</td>
 <td><asp:TextBox ID="fromemail_txt" ReadOnly="true" runat="server" Text=""  Width="250px"></asp:TextBox></td>
 </tr>
 <tr><td align="right" >发件人称呼：</td>
 <td><asp:TextBox ID="fromchen_txt" runat="server" Text=""  Width="250px"></asp:TextBox></td>
 </tr>
 <tr><td align="right" >内容：</td>
 <td><uc1:tinyMCE ID="bodystr_txt"  runat="server" /></td>
 </tr>
 <tr>
  <td align="right">HTML标准：</td>
  <td>
      <input name="htmltype_txt" type="radio" value="0" checked="checked" /> 文本内容
      <input name="htmltype_txt" type="radio" value="1" /> HTML4.0 
      <input name="htmltype_txt" type="radio" value="2"  /> XHTML 1.0（W3C)      
      <input name="htmltype_txt" type="radio" value="3" /> HTML5 
      <br />
      <span style="color:Gray;">此处只对撰写正文内容有效.</span>
  </td>
</tr>
<tr>
  <td align="right">邮件编码：</td>
  <td><input name="bodycode_txt" type="radio" value="utf-8"  checked="checked" /> utf-8(国际编码） 
      <input name="bodycode_txt" type="radio" value="gb2312" /> gb2312（中文）  <span style="color:Gray;">如果是用附件文件作为文件内容，所选编码要与文件内容编码一致. </span></td>
</tr>
 <tr><td align="right" >导入文本：</td>
 <td><input name="istxt" type="checkbox" value="1" /> 是否以导入的文本内容代替邮件内容</td>
 </tr>  
<tr>
  <td align="right">HTML文本：</td>
  <td><uc2:Upallfiles ID="addfile_txt" runat="server" />  <span style="color:Gray;">此处上传文件内容将代替撰写的正文内容</span></td>
</tr>

<tr><td colspan="2" align="center"><asp:HiddenField ID="action_txt" runat="server" />
<asp:HiddenField ID="id_txt" runat="server" />
<asp:HiddenField ID="fromrefer" runat="server" />

<!--服务器信息-->
<asp:HiddenField ID="smtpemail_txt" runat="server" />
<asp:HiddenField ID="smtppass_txt" runat="server" />
<asp:HiddenField ID="smtpserver_txt" runat="server" />

<asp:Button ID="Save" runat="server" Text="保存" Width="58px"  ValidationGroup="Haosubmit" onclick="Save_Click" />&nbsp;
<asp:Button ID="SaveandSend" runat="server" Text="保存并发送" Width="80px"  ValidationGroup="Haosubmit" onclick="Edit_Click" />&nbsp;
<asp:Button ID="Sendto" runat="server" Text="立即发送" Width="72px"  ValidationGroup="Haosubmit" onclick="Send_Click" />
&nbsp;
<asp:validationsummary id="ValidationSummary1"  runat="server" ShowMessageBox="True" ShowSummary="False"  ValidationGroup="Haosubmit"></asp:validationsummary> <input type="button" value="返回" name="go" style="width:58px;" onclick="javascript:window.location.href='Dingyuemanage.aspx';"  /></td></tr>
</table>



<div class="help">
        <h4>? 帮助</h4>
        <ul>        
        <li>1. 附件文件包括邮件的全部内容，不受所选HTML标准限制.</li>
        <li>2. 尽量用utf-8国际编码，国外用户接收时就不会有乱码情况.</li>
        <li>3. 点击立即发送按钮时，邮件将不会保存.</li>
        </ul>
   </div>
</asp:Content>
