<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AnnList.aspx.cs" Inherits="MTCUN.Admin.AnnList"
    Title="公告管理-系统" %>

<%@ Import Namespace="MTCUN" %>
<!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">
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div class="tool_Search">
            <label class="lab_button">
                <asp:Button ID="btnAdd" runat="server" PostBackUrl="AnnPost.aspx" Text="发布公告" />
            </label>
        </div>
        <div class="both">
        </div>
        <div class="divpanel">
            <asp:GridView ID="GridView1" runat="server" CssClass="gridview" AutoGenerateColumns="False"
                DataKeyNames="AnnID" OnRowDeleting="GridView1_RowDeleting" OnRowDataBound="GridView1_RowDataBound">
                <Columns>
                    <asp:BoundField DataField="AnnID" ReadOnly="True" HeaderText="编号" />
                    <asp:TemplateField HeaderText="主题">
                        <ItemTemplate>
                            <div class="ann_ico" style="float: left">
                            </div>
                            <div style="float: left">
                                <asp:HyperLink ID="hlkSubject" runat="server" Text='<%# swq.Tools.HtmlEncode(Eval("Subject")) %>'
                                    NavigateUrl='<%# swq.JScript.OpenWin(string.Format("../User/AnnShow.aspx?AnnID={0}",Eval("AnnID")),850,500,true) %>'></asp:HyperLink>
                            </div>
                            <div style="clear: both">
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="BrowseNum" HeaderText="阅读数" />
                    <asp:BoundField DataField="TrueName" HeaderText="发布者" />
                    <asp:BoundField DataField="DateAndTime" HeaderText="时间" />
                    <asp:TemplateField HeaderText="编辑">
                        <ItemTemplate>
                            <div class="lab_button_sub" id="divEdit" runat="server">
                                <asp:HyperLink runat="server" ID="hlkEdit" Text="编辑" NavigateUrl='<%# string.Format("AnnPost.aspx?AnnID={0}&GetUrl={1}",Eval("AnnID"),swq.Web.PathAndQuery()) %>'></asp:HyperLink>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="删除">
                        <ItemTemplate>
                            <div class="lab_button_sub" id="divDelete" runat="server">
                                <asp:LinkButton ID="lbnDelete" runat="server" Text="删除" CommandName="Delete" OnClientClick="<%# Rs.Messages.确定删除%>"></asp:LinkButton>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <div class="divpanel">
            <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
        </div>
        <div class="tool_Search" style="text-align: right">
            <div class="lab_button">
                <asp:Button ID="btnClear" runat="server" Text="清空" OnClientClick="<%# Rs.Messages.确定删除%>" OnClick="btnClear_Click"></asp:Button>
            </div>
        </div>
    </form>
</body>
</html>
