<%@ Page language="c#" Inherits="norke.admin.messageList" CodeFile="messageList.aspx.cs"  MasterPageFile="~/viste/MasterPage.master"%>
<%@ Register TagPrefix="cc1" Namespace="DevCenter" Assembly="WebPager" %>
<asp:Content ID="Content2" ContentPlaceHolderID="Content2" runat="server">
            <table align='center' width='100%' cellpadding='4' cellspacing='1' border='1' class='grid fixed'>
                <tr>
                    <td width='140' class='category'><asp:Label ID="lblState" Runat="server"></asp:Label></td>
                    <td class='category'><asp:Label Font-Bold="True" ForeColor="#ff9900" ID="lblNum" Runat="server">0</asp:Label>
                        条</td>
                </tr>
            </table>
            <br>
            <asp:DataGrid id="messageDataGrid" runat="server" AutoGenerateColumns="False" width="100%" cellpadding='4'
                cellspacing='1' CssClass='grid fixed'>
                <HeaderStyle HorizontalAlign="Center" CssClass="category"></HeaderStyle>
                <Columns>
                    <asp:BoundColumn DataField="MID" HeaderText="编号" Visible="false">
                        <HeaderStyle ForeColor="#0F83EC"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="UEmail" HeaderText="E-mail">
                        <HeaderStyle ForeColor="#0F83EC" Width="150px"></HeaderStyle>
                        <ItemStyle HorizontalAlign="left"></ItemStyle>
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="MTitle" HeaderText="标题">
                        <HeaderStyle ForeColor="#0F83EC" Width="250px"></HeaderStyle>
                        <ItemStyle HorizontalAlign="left"></ItemStyle>
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="Pubdate" HeaderText="时间">
                        <HeaderStyle ForeColor="#0F83EC" Width="150px"></HeaderStyle>
                        <ItemStyle HorizontalAlign="left"></ItemStyle>
                    </asp:BoundColumn>
                    <asp:TemplateColumn>
                        <HeaderStyle Width="150px"></HeaderStyle>
                        <ItemStyle HorizontalAlign="left"></ItemStyle>
                        <ItemTemplate>
                            <a target=_blank href='messageDetail.aspx?id=<%#DataBinder.Eval(Container.DataItem,"MID")%>'>
                                详细信息</a>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:ButtonColumn Text="删除" CommandName="Delete">
                        <HeaderStyle></HeaderStyle>
                        <ItemStyle HorizontalAlign="left"></ItemStyle>
                    </asp:ButtonColumn>
                </Columns>
            </asp:DataGrid>
            <cc1:SqlPager id="SqlPager1" runat="server" PagingMode="Cached" PagerStyle="NextPrev" CacheDuration="0"></cc1:SqlPager>
</asp:Content>