<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_Other_NoticeList, QianboCMS" EnableEventValidation="false" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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>
    <link href="../Css/layout.css" type="text/css" rel="stylesheet" />
    <script language="javascript" src="../../Js/SelectCheckBox.js"></script>
</head>

<body>
    <form id="form1" runat="server">
        <table cellspacing="1" cellpadding="0" class="wzdh" align="center">
            <tr>
                <td style="padding-left: 10px;">
                    <img src="../Images/Skin/Default/you.gif" align="absmiddle" />
                    您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt; <a href="NoticeList.aspx">会员后台公告</a> &gt;&gt;
					<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
				</td>
            </tr>
        </table>
        <table cellspacing="1" cellpadding="0" class="border" align="center">
            <tr>
                <td class="wzlist"><a href="NoticeList.aspx">用户后台公告列表</a> | <a href="Notice.aspx">添加公告</a> | <a href="NoticeList.aspx?UserId=-1&TypeId=4">我发的公告</a> | <a href="NoticeList.aspx?UserId=0&TypeId=3">未审核公告</a> | <a href="NoticeList.aspx?UserId=0&TypeId=5">已过期公告</a></td>
            </tr>
        </table>
        <table align="center" class="border" cellspacing="1" cellpadding="0">
            <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
                <HeaderTemplate>
                    <tr class="title">
                        <td width="30px">全选</td>
                        <td>公告标题</td>
                        <td width="120px">发布人</td>
                        <td width="120px">发布时间</td>
                        <td width="120px">过期时间</td>
                        <td width="150px">常规操作</td>
                    </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
                        <td>
                            <asp:CheckBox ID="CheckBox1" runat="server"></asp:CheckBox>
                            <asp:TextBox Text='<%# DataBinder.Eval(Container, "DataItem.NoticeId","{0}")%>' Style="display: none;" ID="CID" runat="server"></asp:TextBox>
						</td>
                        <td align="left"><%# Eval("Title") %></td>
                        <td><%# Eval("UserName") %></td>
                        <td><%# DataBinder.Eval(Container, "DataItem.AddDate", "{0:yyyy-MM-dd}") %></td>
                        <td><%# DataBinder.Eval(Container, "DataItem.OverdueDate", "{0:yyyy-MM-dd}") %></td>
                        <td><a href="Notice.aspx?NoticeId=<%# Eval("NoticeId") %>">修改</a> |
                            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Delete" CommandArgument='<%# Eval("NoticeId") %>' OnClientClick="return confirm('是否确定删除此公告？')">删除</asp:LinkButton> | <asp:LinkButton ID="LinkButton2" CommandName="IsState" OnClientClick="return confirm('确定更改操作？')" CommandArgument='<%# Eval("NoticeId") %>' runat="server"><%# GetIsState(DataBinder.Eval(Container, "DataItem.IsState", "{0}"))%></asp:LinkButton>
						</td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
        <table cellpadding="0" cellspacing="1" class="border" align="center">
            <tr>
                <td class="wzlist">
                    <webdiyer:aspnetpager id="Pager" runat="server" alwaysshow="True" firstpagetext="首页" lastpagetext="尾页" nextpagetext="下一页" pagesize="20" horizontalalign="Right" prevpagetext="上一页" showinputbox="Never" urlpageindexname="p" urlpaging="True" showcustominfosection="Left" width="99%"></webdiyer:aspnetpager>
				</td>
            </tr>
        </table>
        <table cellpadding="0" cellspacing="1" class="border" align="center">
            <tr>
                <td class="wzlist">
                    <input id="checkDel" onclick="CheckDelBox(this)" type="checkbox">
                    <span id="ShowA">选择全部</span>
                    <asp:Button ID="Button1" runat="server" Text="删除勾选记录" CssClass="btn" onmousedown="if(confirm('是否确定删除选中记录？'))document.form1.Button1.click(); else return false;" OnClick="Button1_Click"></asp:Button>
				</td>
            </tr>
        </table>
    </form>
</body>
</html>