<%@ Page Language="C#"  AutoEventWireup="true" CodeBehind="Dingyuesend.aspx.cs" Inherits="Mvcb2b.admin.Dingyuesend" Title="批量发送邮件" ValidateRequest="false" %>
<!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 id="Head1" runat="server">
<title>批量发送邮件</title>
<link href="css/filebrowse.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body{padding:6px;}
td{line-height:22px;padding:3px;font-size:12px; background-color:#FFFFFF;}
</style>
</head>
<body>
<form id="form1" runat="server">
<h3 style="text-align:center;padding-top:5px;padding-bottom:8px;"><asp:Literal  ID="Literal1" runat="server"></asp:Literal></h3>
<table width="98%" border="0" class="editor" align="center" style="background-color:#999999;" cellpadding="3" cellspacing="1">    

 <tr>
   <td align="right" style="width:80px;"><img  alt="" src="images/arrownext.gif"  />第一步: </td>
   <td>选择发送邮件：</td>
 </tr>
 <tr><td align="right" >&nbsp;</td>
 <td>
 <asp:DataGrid ID="DataGrid1" runat="server" PageSize="12" 
         AutoGenerateColumns="False" AllowPaging="True" CellPadding="4" 
         OnPageIndexChanged="haopage" DataKeyField="id" Font-Bold="False" 
         Font-Italic="False" Font-Overline="False" Font-Strikeout="False" 
         Font-Underline="False" GridLines="None" ForeColor="#333333"   >
                <AlternatingItemStyle BackColor="White" />
                <Columns>
                 <asp:TemplateColumn HeaderText="选择">
                     <ItemTemplate>
                     <input id="mainbody" type="radio"  name="mainbody" value="<%#DataBinder.Eval(Container.DataItem, "id")%>" /> <%#DataBinder.Eval(Container.DataItem, "id")%>            
                     </ItemTemplate>
                     <HeaderStyle Width="30px" />
                 </asp:TemplateColumn>
                 <asp:BoundColumn DataField="title" HeaderText="标题">
                   <HeaderStyle Width="180px" />
                    </asp:BoundColumn>
                 <asp:BoundColumn DataField="fromemail" HeaderText="发件人">
                     <HeaderStyle Width="150px" />
                 </asp:BoundColumn>
                 <asp:TemplateColumn HeaderText="状态" >
                     <ItemTemplate>
                   <%#nouse_BindGrid(DataBinder.Eval(Container.DataItem, "issend"))%>
                     </ItemTemplate>
                     <HeaderStyle Width="50px" />
                 </asp:TemplateColumn>
             </Columns>
             <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="#333333" 
                    Font-Italic="False" Font-Overline="False" Font-Strikeout="False" 
                    Font-Underline="False" />
                <EditItemStyle BorderColor="Gray" BackColor="#2461BF" />
             <FooterStyle BackColor="#507CD1" 
                    ForeColor="Gray" Font-Bold="True" Font-Italic="False" 
                    Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
             <SelectedItemStyle BackColor="#D1DDF1" BorderColor="Gray" Font-Bold="True" 
                    ForeColor="#333333" />
             <PagerStyle BackColor="#2461BF" ForeColor="Gray" HorizontalAlign="Center" NextPageText="下一页"
                 PrevPageText="上一页" Font-Bold="False" Font-Italic="False" 
                    Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
             <ItemStyle BackColor="#EFF3FB" BorderColor="Gray" />
             
         </asp:DataGrid>
         <p style="color:Gray;padding-left:30px;">此处列表邮件仅列出为您所写邮件中邮件状态为：<span style="color:Red;">"未发送"</span>状态的邮件，如果无邮件显示，请检查邮件状态.</p>

 </td></tr>
 <tr>
   <td align="right" ><img  alt="" src="images/arrownext.gif"  /> 第二步: </td>
   <td>是否续发邮件</td>
 </tr>
 <tr><td align="right" >&nbsp;</td>
 <td>
 <input id="Radio1" type="radio"  name="send"  value="0" checked="checked" /> 重新开始  &nbsp;
     <input id="Radio2" type="radio"  name="send"  value="1" /> 从上次继续</td></tr>
 <tr>
   <td align="right" ><img  alt="" src="images/arrownext.gif"  /> 第三步: </td>
   <td>选择订阅邮箱</td>
 </tr>
 <tr><td align="right" >&nbsp;</td>
 <td><%string c1="";
       string c2="checked=\"checked\"";
       if (isall == 1)
       {
           c1 = "checked=\"checked\"";
           c2 = "";
       }%>
 <input id="Radio3" type="radio"  name="mailselect"  value="1" <%=c1%> /> 所有邮件  &nbsp;
     <input id="Radio4" type="radio"  name="mailselect"  value="0" <%=c2%> /> 队列邮件</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="Add" runat="server" Text="开始发送" Width="80px"  ValidationGroup="Haosubmit" onclick="Edit_Click" />&nbsp;&nbsp;<asp:validationsummary id="ValidationSummary1"  runat="server" ShowMessageBox="True" ShowSummary="False"  ValidationGroup="Haosubmit"></asp:validationsummary> </td></tr>
</table>



<div class="help">
    <h4>? 帮助</h4>
        <ul>        
        <li>1. 当对多邮件群发时，可能会造成部分接收邮件服务器对此邮箱当垃圾邮件处理，故发送频率请适度掌握,一般1个月左右可批量发送一次.</li>
        <li>2. 使用本订阅系统发送邮件不能保证对方能100%接收.</li>
        <li>3. 服务器需要安装<span style="color:Red">Jmail4.4专业版</span>邮件发送组件或4.4以上专业版版本.</li>
        </ul>
   </div>
 </form>
</body>
</html>