<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AnnouncementManagement.aspx.cs"
    Inherits="ComResProSystem.AnnouncementManagement" %>

<!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>
    <style type="text/css">
        body
        {
            margin: 0px;
            padding: 0px;
            font-size: 12px;
        }
        .table
        {
            border-collapse: collapse;
            height: 24px;
            line-height: 24px;
            text-align: center;
        }
        .table tr
        {
            border-right: solid 1px #FFF;
            border-left: solid 1px #000000;
        }
        .table tr td
        {
            border: solid 1px #000000;
        }
        .classtd
        {
            background-image: url(Image/tab/tab_14.gif);
            height: 26px;
            background-repeat: repeat-x;
            text-align: center;
        }
    </style>
    <script src="My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div>
                <div style="background-image: url(Image/tab/tab_05.gif); height: 25px; background-repeat: repeat-x">
                    <img src="Image/tab/311.gif" alt="" /><span style="font-size: 12px; color: #1F4A65;
                        font-weight: bold;">公告管理</span>
                </div>
                <div>
                    <table>
                        <tr>
                            <td>
                                请选择查询条件:
                            </td>
                            <td>
                                发布人:
                                <asp:TextBox ID="Tb_Author" runat="server" Width="80px"></asp:TextBox>
                                <asp:ImageButton ID="Ibt_Check" runat="server" ImageUrl="~/Image/Bt_Check.gif" Height="17px"
                                    OnClick="Ibt_Check_Click" />
                            </td>
                            <td>
                                标题:<asp:TextBox ID="Tb_Title" runat="server" Width="100px"></asp:TextBox>
                            </td>
                            <td>
                                发布时间:<asp:TextBox ID="Tb_Begin" runat="server" Width="100px" onfocus="WdatePicker({isShowClear:false,readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})"></asp:TextBox>--
                                <asp:TextBox ID="Tb_End" runat="server" Width="100px" onfocus="WdatePicker({isShowClear:false,readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})"></asp:TextBox>
                            </td>
                            <td>
                                <asp:ImageButton ID="Ibt_select" runat="server" ImageUrl="~/Image/Bt_Select.gif"
                                    OnClick="Ibt_select_Click" />
                            </td>
                        </tr>
                    </table>
                </div>
                <asp:Repeater ID="Rp_Announcement" runat="server" 
                    onitemcommand="Rp_Announcement_ItemCommand">
                    <HeaderTemplate>
                        <table class="table" cellpadding="0px" cellspacing="0px" width="90%" style="margin-top: 10px"
                            align="center">
                            <tr>
                                <td class="classtd">
                                    编号
                                </td>
                                <td class="classtd">
                                    标题
                                </td>
                                <td class="classtd">
                                    发布人
                                </td>
                                <td class="classtd">
                                    内容
                                </td>
                                <td class="classtd">
                                    发布时间
                                </td>
                                <td class="classtd">
                                    操作
                                </td>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <%#Container.ItemIndex+1 %>
                            </td>
                            <td>
                                <%#Eval("Title")%>
                            </td>
                            <td>
                                <%#Eval("Author")%>
                            </td>
                            <td>
                                <%#Eval("Contents")%>
                            </td>
                            <td>
                                <%#Eval("ReleaseTime")%>
                            </td>
                            <td>
                                <asp:LinkButton ID="Lbt_Detali" runat="server" CommandName="DoAduit" CommandArgument='<%#Eval("ID") %>'>编辑</asp:LinkButton>
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandName="DoDelete" CommandArgument='<%#Eval("ID") %>'>删除</asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                        <asp:Label ID="Label1" runat="server" Visible='<%#Rp_Announcement.Items.Count>0?false:true%>'
                            Text="温馨提示:没有符合条件的数据！"></asp:Label>
                    </FooterTemplate>
                </asp:Repeater>
            </div>
            <div id="preup" runat="server" style="margin-right: 5%; display: none" align="right">
                <table>
                    <tr>
                        <td>
                            总共<asp:Label ID="Lb_Total" runat="server" Text=""></asp:Label>页
                        </td>
                        <td>
                            当前第<asp:Label ID="Lb_Now" runat="server" Text=""></asp:Label>页
                        </td>
                        <td>
                            <asp:ImageButton ID="Ibt_Firsr" runat="server" ImageUrl="~/Image/tab/first.gif" OnClick="Ibt_Firsr_Click" />
                        </td>
                        <td>
                            <asp:ImageButton ID="Ibt_Pre" runat="server" ImageUrl="~/Image/tab/back.gif" OnClick="Ibt_Pre_Click" />
                        </td>
                        <td>
                            <asp:ImageButton ID="Ibt_Next" runat="server" ImageUrl="~/Image/tab/next.gif" OnClick="Ibt_Next_Click" />
                        </td>
                        <td>
                            <asp:ImageButton ID="Ibt_Last" runat="server" ImageUrl="~/Image/tab/last.gif" OnClick="Ibt_Last_Click" />
                        </td>
                        <td>
                            <asp:TextBox ID="Tb_goto" runat="server" Height="12px" Width="15px"></asp:TextBox>
                            <asp:ImageButton ID="Ibt_goto" runat="server" ImageUrl="~/Image/tab/go.gif" OnClick="Ibt_goto_Click" />
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
