<%@ page language="C#" autoeventwireup="true" inherits="GroupFlyProduce_ProduceAdmin_ProduceEmailBook_List, GroupTGWeb_deploy" %>

<%@ Register Assembly="GroupFly.Control" Namespace="GroupFly.Control" TagPrefix="cc1" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="China315" %>
<!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>Untitled Page</title>
    <link rel="stylesheet" type="text/css" href="style/index.css" />

    <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" language="javascript" src="../../js/CommonJS.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
        <div class="table1">
            <div class="title">
                <asp:Label ID="LabelTitle" runat="server" Text="邮件订阅管理"></asp:Label></div>
            <div class="query">
                <table width="100%">
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeEmailAddress" runat="server" Text="订阅人邮件地址："></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxEmailAddress" runat="server" CssClass="allinput1"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxEmailAddress"
                                runat="server" ControlToValidate="TextBoxEmailAddress" Display="Dynamic" ErrorMessage="最多50个字符"
                                ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                        </td>
                        <td align="right">
                            <asp:Localize ID="LocalizeBookType" runat="server" Text=" 订阅类型："></asp:Localize>
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListBookType" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeState" runat="server" Text="状态："></asp:Localize>
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListState" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td colspan="2" align="center">
                            <asp:Button ID="ButtonSearch" runat="server" Text="查询" CssClass="bnt1" OnClick="ButtonSearch_Click" />
                        </td>
                    </tr>
                </table>  </div>
                <cc1:GroupFlyGridView ID="GroupFlyGridViewShow" runat="server" AddSequenceColumn="False"
                    AllowMultiColumnSorting="False" AutoGenerateColumns="False" BorderColor="#CCDDEF"
                    CellPadding="0" Del="False" DeletePromptText="确实要删除指定的记录吗？" Edit="False" FixHeader="False"
                    GridViewSortDirection="Ascending" PagingStyle="None" TableName="" Width="100%"
                    AllowSorting="True" DataSourceID="ObjectDataSourceDate" GridLines="None" 
                    CellSpacing="1" style="margin-left: 0px;">
                    <HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF">
                    </HeaderStyle>
                    <PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" type="checkbox" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <input id="checkboxItem" value='<%# Eval("Guid") %>' type="checkbox" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="订阅类型" DataField="BookTypeName" />
                        <asp:BoundField HeaderText="邮箱地址" DataField="EmailAddress" />
                        <asp:TemplateField HeaderText="订阅状态">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# ChangeState(DataBinder.Eval(Container, "DataItem(State)","{0}")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </cc1:GroupFlyGridView>
          
        </div>
    </div>
    <div class="vote">
        <asp:Button ID="ButtonButtonAgree" runat="server" Text="同意订阅" CssClass="bnt1 cancel"
            OnClick="ButtonButtonAgree_Click" OnClientClick="return EditButton()" />
        <asp:Button ID="ButtonButtonRefuse" runat="server" Text="拒绝订阅" CssClass="bnt1 cancel"
            OnClick="ButtonButtonRefuse_Click" OnClientClick="return EditButton()" />
        <asp:Button ID="ButtonDelete" runat="server" Text="删除" CssClass="bnt1 cancel" OnClick="ButtonDelete_Click"
            OnClientClick="return DeleteButton()" />
        <China315:MessageShow ID="MessageShow" Visible="false" runat="server" />
    </div>
    <asp:ObjectDataSource ID="ObjectDataSourceDate" runat="server" SelectMethod="Search"
        TypeName="GroupFly.ProduceBusinessLogic.GroupFlyProduce_EmailBook_Action" 
        OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:ControlParameter ControlID="TextBoxEmailAddress" Name="emailaddress" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="DropDownListBookType" DefaultValue="" Name="booktypename"
                PropertyName="SelectedValue" Type="String" />
            <asp:ControlParameter ControlID="DropDownListState" DefaultValue="" Name="state"
                PropertyName="SelectedValue" Type="Int32" />
            <asp:Parameter DefaultValue="0" Name="isDeleted" Type="Int32" />
            <asp:ControlParameter ControlID="ProduceMemLoginID" Name="ProduceMemLoginID" 
                PropertyName="Value" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    <asp:HiddenField ID="ProduceMemLoginID" runat ="server" Value ="0" />
    </form>
</body>
</html>
