<%@ page language="C#" autoeventwireup="true" inherits="GroupFlyProduce_ProduceAdmin_ProduceEmail_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">
                邮件管理</div>
            <div class="query">
                <table width="100%">
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeTitle" runat="server" Text="邮件标题："></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxTitle" runat="server" CssClass="allinput1"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxTitle" runat="server"
                                ControlToValidate="TextBoxTitle" Display="Dynamic" ErrorMessage="最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                        </td>
                        <td align="right">
                            <asp:Localize ID="LocalizeTypeName" runat="server" Text="邮件类别："></asp:Localize>
                        </td>
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListTypeName" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:Button ID="ButtonSearch" runat="server" Text="查询" CssClass="bnt1" OnClick="ButtonSearch_Click" />
                        </td>
                    </tr>
                </table>
            </div>
            <cc1:GroupFlyGridView ID="GroupFlyGridViewDataGridView" runat="server" Width="100%"
                AddSequenceColumn="False" AllowMultiColumnSorting="False" AutoGenerateColumns="False"
                BorderColor="#CCDDEF" CellPadding="0" Del="False" DeletePromptText="确实要删除指定的记录吗？"
                Edit="False" FixHeader="False" GridViewSortDirection="Ascending" PagingStyle="None"
                TableName="" AllowSorting="True" DataSourceID="ObjectDataSourceDate" CellSpacing="1"
                GridLines="None" 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 DataField="Title" HeaderText="邮件标题" />
                    <asp:BoundField HeaderText="分类名称" DataField="TypeName" />
                    <asp:BoundField DataField="Description" HeaderText="邮件描述" />
                </Columns>
            </cc1:GroupFlyGridView>
        </div>
    </div>
    <div class="vote">
        <asp:Button ID="ButtonAdd" runat="server" Text="添加" OnClientClick="return GetCheckedBoxValues()"
            CssClass="bnt1 cancel" OnClick="ButtonAdd_Click" />
        <asp:Button ID="ButtonReply" runat="server" Text="编辑" OnClientClick="return EditButton()" CssClass="bnt1 cancel"
                OnClick="ButtonEdit_Click" /><asp:Button ID="ButtonDelete" runat="server" Text="删除"
                    OnClientClick="return DeleteButton()" CssClass="bnt1 cancel" OnClick="ButtonDelete_Click" />
        <China315:MessageShow ID="MessageShow" Visible="false" runat="server" />
    </div>
    <asp:ObjectDataSource ID="ObjectDataSourceDate" runat="server" SelectMethod="Search"
        TypeName="GroupFly.ProduceBusinessLogic.GroupFlyProduce_Email_Action" OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:ControlParameter ControlID="TextBoxTitle" Name="title" PropertyName="Text" Type="String"
                DefaultValue="" />
            <asp:ControlParameter ControlID="DropDownListTypeName" Name="typename" PropertyName="SelectedValue"
                Type="String" DefaultValue="-1" />
            <asp:Parameter DefaultValue="0" Name="isDeleted" Type="Int32" />
            <asp:ControlParameter ControlID="ProduceMemLoginID" DefaultValue="" 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>
