<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    Inherits="PowerEasy.SiteFactory.WebSite.Admin.Accessories.MailSubscribes" Title="邮件订阅列表" ValidateRequest="false" Codebehind="MailSubscribes.aspx.cs" %>
    
<asp:Content ID="Content1" ContentPlaceHolderID="CphNavigation" runat="server">
    <pe:ExtendedSiteMapPath ID="SmpNavigator" runat="server" SiteMapProvider="AdminMapProvider"></pe:ExtendedSiteMapPath>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
        <fieldset style="margin:10px 0;">
            <legend>订阅项列表</legend>
            <asp:CheckBoxList ID="cblSubscriptionItems" runat="server" DataTextField="Name" 
                DataValueField="Id" RepeatDirection="Horizontal" RepeatLayout="Flow" 
                AutoPostBack="True" DataTextFormatString="{0} " 
                onselectedindexchanged="cblSubscriptionItems_SelectedIndexChanged">
            </asp:CheckBoxList>
        </fieldset>
        <pe:ExtendedGridView ID="EgvMailSubscribes" AutoGenerateColumns="false"
            runat="server" AutoGenerateCheckBoxColumn="true" DataKeyNames="ID" Width="100%" PageSize="15">
            <Columns>
                 <asp:TemplateField HeaderText="邮件地址" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                       <asp:Label ID="LblEmail" Text='<%#Eval("MailList") %>' runat="server"></asp:Label>
                    </ItemTemplate>
                 </asp:TemplateField>
            </Columns>
        </pe:ExtendedGridView>
        <div style="text-align:center;">
        <pe:AspNetPager ID="anpMailList" runat="server" PageSize="20" 
        onpagechanged="anpMailList_PageChanged" ></pe:AspNetPager></div>
        <br />
        <pe:ExtendedButton ID="btnDelete" runat="server" Text="删除选中的记录" OperateCode="OutOfStockLogManage" OnClientClick="return batchconfirm('是否要删除选中的邮件订阅信息？');" OnClick="btnDelete_Click"  />
        
         <pe:ExtendedButton ID="btnSendMail" runat="server" Text="发送邮件订阅" OnClick="btnSendMail_Click"  />
</asp:Content>
