<%@ Page Language="C#" AutoEventWireup="true" Inherits="TopWinCMS.WebUI.Admin.Admin_Member_Message"
    CodeBehind="Message.aspx.cs" %>

<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<%@ Register Assembly="TopWinCMS.WebControls" Namespace="TopWinCMS.WebControls" TagPrefix="cc1" %>
<!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>短消息管理</title>
    <meta http-equiv="Pragma" content="No-cach" />
    <link href="../Style.css" type="text/css" rel="stylesheet" />

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

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

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table border="0" cellpadding="0" cellspacing="0" width="98%" id="NavigationPath">
                <tr>
                    <td style="width: auto">
                        <img src='../../Images/arrow.gif' alt="" />
                        您现在的位置：&nbsp;
                        <asp:Literal ID="L_Path" runat="server"></asp:Literal>
                    </td>
                    <td style="width: auto">
                        <asp:DropDownList ID="DDL_Sort" runat="server">
                            <asp:ListItem Value="Sender">发信人</asp:ListItem>
                            <asp:ListItem Value="Incept">昵称</asp:ListItem>
                            <asp:ListItem Value="Title">标题</asp:ListItem>
                            <asp:ListItem Value="Content">内容</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;
                        <asp:TextBox ID="TB_KeyWord" runat="server"></asp:TextBox>&nbsp;
                        <asp:Button ID="BT_Search" runat="server" Text="搜索" Style="cursor: hand" EnableViewState="False"
                            OnClick="BT_Search_Click" CssClass="btn"></asp:Button>
                    </td>
                </tr>
            </table>
            <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                Width="99%" OnRowDataBound="GV_List_RowDataBound" OnRowCommand="GV_List_RowCommand"
                OnRowDeleting="GV_List_RowDeleting">
                <HeaderStyle CssClass="HeaderStyle" Font-Bold="True"></HeaderStyle>
                <Columns>
                    <asp:TemplateField HeaderText="选择">
                        <ItemTemplate>
                            <asp:CheckBox ID="CB_SelectID" runat="server" />
                        </ItemTemplate>
                        <ItemStyle Width="30px" HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="ID" HeaderText="ID">
                        <ItemStyle HorizontalAlign="Center" Width="40px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Sender" HeaderText="发信人">
                        <ItemStyle HorizontalAlign="Center" Width="80px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Incept" HeaderText="收信人">
                        <ItemStyle HorizontalAlign="Center" Width="80px" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="短信标题" DataField="Title" />
                    <asp:BoundField DataField="SendTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HeaderText="发信时间"
                        HtmlEncode="False">
                        <ItemStyle HorizontalAlign="Center" Width="120px" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="是否已读">
                        <ItemStyle HorizontalAlign="Center" Width="60px" />
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemTemplate>
                            <%# Convert.ToBoolean(Eval("isRead"))==true?"已读":"未读" %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:ButtonField CommandName="Delete" HeaderText="删除" Text="删除">
                        <ItemStyle HorizontalAlign="Center" />
                        <HeaderStyle Width="50px" />
                    </asp:ButtonField>
                </Columns>
            </asp:GridView>
            <div class="WorkArea">
                <table width="99%">
                    <tr>
                        <td align="left" style="width: 65px">
                            &nbsp;<input type="checkbox" name="chk_SelectAll" value="chk_SelectAll" onclick="javascript:SelectAll(this);"/>全选
                        </td>
                        <td>
                     
                            <asp:DropDownList ID="DDL_BatchToDo" runat="server">
                                <asp:ListItem Selected="True" Value="0">--请选择--</asp:ListItem>
                                <asp:ListItem Value="1">批量删除短信</asp:ListItem>
                                <asp:ListItem Value="2">删除选中用户所有短信</asp:ListItem>
                                <asp:ListItem Value="3">向被选中的会员发短信</asp:ListItem>
                            </asp:DropDownList>
                            &nbsp;
                            <asp:Button ID="BT_OK" runat="server" Text="确定" EnableViewState="False" OnClick="BT_OK_Click"
                                CssClass="btn" />
                            &nbsp;&nbsp;&nbsp;
                        </td>
                    </tr>
                </table>
            </div>
            <div class="pagefield">
                <cc1:PageNavigation ID="PageNavigation1" runat="server" OnPageChanging="PageNavigation1_PageChanging">
                </cc1:PageNavigation>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>