<%@ Page Language="C#" MasterPageFile="../Admin.Master" AutoEventWireup="true" ValidateRequest="false"
    CodeBehind="Announce.aspx.cs" Inherits="ETongJin.YM.Web.Admin.Announce" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="tableBorder" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <th colspan="3" class="ym12_bti">
                网站公告管理
            </th>
        </tr>
        <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
            <HeaderTemplate>
                <tr style="text-align: center;">
                    <td width="200" class="td2">
                        公告标题
                    </td>
                    <td width="300" class="td2">
                        公告内容
                    </td>
                    <td class="td2" style="text-align: left">
                        相关操作
                    </td>
                </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr style="text-align: center;">
                    <td class="td1">
                       <a href="../../announce.aspx?i=<%#Eval("id")%>" target="_blank"><span style="color:<%#Eval("color") %>;"> <%#Eval("title") %></span></a>
                        <input id="Hidden1" type="hidden" runat="server" value='<%#Eval("ID") %>' />
                    </td>
                    <td class="td1">
                        <%#Eval("content")%>
                    </td>
                    <td class="td1" style="text-align: left">
                        <asp:HyperLink ID="HyperLink1" NavigateUrl='<%#"AnnounceEdit.aspx?i="+Eval("id")%>'
                            runat="server">修改</asp:HyperLink>
                        &nbsp;
                        <asp:LinkButton ID="LinkButton2" CommandArgument="1" runat="server" CausesValidation="false"
                            OnClientClick="return confirm('您将删除这个公告!!?删除后不可恢复');">删除</asp:LinkButton>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" class="td1" style="padding-left: 100px;">
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <tr style="text-align: center;">
                    <td colspan="3" class="td1" style="text-align: right; padding-left: 10px;">
                        <asp:HyperLink runat="server" Font-Bold="true" NavigateUrl="announceEdit.aspx">添加网站公告</asp:HyperLink>
                    </td>
                </tr>
            </FooterTemplate>
        </asp:Repeater>
    </table>
</asp:Content>
