<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ArticleRecycleList.aspx.cs" Inherits="Admin_Article_ArticleRecycleList"
    EnableViewState="true" %>

<%@ Register Src="../Controls/EditionItem.ascx" TagName="EditionItem" TagPrefix="uc2" %>
<%@ Register Assembly="SnSee.Control" Namespace="SnSee.Control" TagPrefix="cc1" %>
<!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="../Stylesheet/Main.css" rel="stylesheet" type="text/css" />

    <script src="../Javascript/Common.js" type="text/javascript" language="JavaScript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <ul class="tool">
        <li onmousemove="this.className='tool_li_ac'" onmouseout="this.className=''">
            <img src="../Images/icon_add.gif" width="14" height="14" align="absmiddle" />
            <a href="Article.aspx" title="增加资讯">增加资讯</a></li>
        <li>
            <div class="tool_back">
                <a href="javaScript:history.back(-1)">返回上一步</a></div>
        </li>
    </ul>
    <div class="main_body">
        <h1>
            <asp:Literal ID="litTitle" runat="server"></asp:Literal>资讯回收站管理</h1>
        <uc2:EditionItem ID="EditionItem1" runat="server" />
        <div class="ht2">
        </div>
        <div class="divbox">
            <div class="padding8px">
                <asp:Panel ID="pnlSearch" runat="server" DefaultButton="lbtnSearch">
                    <b>搜索：</b><asp:DropDownList ID="dropClass" runat="server" DataTextField="TreeMode"
                        DataValueField="ID">
                    </asp:DropDownList>
                    <asp:TextBox ID="txtKeyWord" runat="server" Width="160px"></asp:TextBox>
                    <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn_bg" OnClick="lbtnSearch_Click">搜索资讯</asp:LinkButton></asp:Panel>
            </div>
        </div>
        <div class="ht2">
        </div>
        <div class="divbox2">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tbbox">
                <tr>
                    <th width="3%" class="input_no">
                        <input id="Checkbox1" type="checkbox" onclick="UnSelectCheckBox(this,'chkSelect')" />
                    </th>
                    <th width="15%">
                        所属分类
                    </th>
                    <th>
                        资讯标题
                    </th>
                    <th width="8%">
                        状态
                    </th>
                    <th width="8%">
                        排序
                    </th>
                    <th width="7%">
                        操作
                    </th>
                </tr>
                <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand">
                    <ItemTemplate>
                        <tr>
                            <td align="center" class="input_no">
                                <asp:Literal ID="litID" runat="server" Text='<%#Eval("ID")%>' Visible="false"></asp:Literal>
                                <asp:CheckBox ID="chkSelect" runat="server" />
                            </td>
                            <td align="center">
                                <%#Eval("ClassName")%>
                            </td>
                            <td align="left">
                                <%#Eval("Title")%>
                            </td>
                            <td align="center">
                                <%#Eval("State") != DBNull.Value && Eval("State").ToString()=="1" ? "启用":"未启用"%>
                            </td>
                            <td align="center">
                                <%#Eval("SortOrder") %>
                            </td>
                            <td align="center">
                                <asp:LinkButton ID="lbtnCancelDel" runat="server" ToolTip="还原当前资讯"
                                    CommandArgument='<%#Eval("ID")%>' CommandName="CancelDelete_Command"
                                    OnClientClick="return confirm('确认还原当前资讯吗？')"><img src="../images/icon_hy.gif" border="0" align="absmiddle" /></asp:LinkButton>
                                <asp:LinkButton ID="lbtnDel" runat="server" ToolTip="将当前资讯彻底删除"
                                    CommandArgument='<%#Eval("ID")%>' CommandName="Delete_Command" OnClientClick="return confirm('确认将当前资讯彻底删除？')"><img src="../images/icon_sc.gif" border="0" align="absmiddle" /></asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </div>
        <div class="ht2">
        </div>
        <div class="padding4px">
            <input type="button" id="Button7" value="全选" onclick="SelectCheckBox(this, 'chkSelect',1)"
                class="btn_bg2" />
            <input type="button" id="Button8" value="反选" onclick="UnSelectCheckBox(this,'chkSelect')"
                class="btn_bg2" />
            <input type="button" id="Button9" value="取消选择" onclick="SelectCheckBox(this, 'chkSelect',2)"
                class="btn_bg2" />
            |
            <asp:Button ID="btnAllDel" runat="server" Text="彻底删除" CssClass="btn_bg2" OnClick="btnAllDel_Click"
                OnClientClick="return confirm('确认将当前选中资讯彻底删除？')" ToolTip="将选中资讯彻底删除" />
        </div>
        <div class="webpage">
            <cc1:WebPage ID="WebPage1" runat="server" PageSize="20">
            </cc1:WebPage>
        </div>
        <div class="ht">
        </div>
        <div class="ht">
        </div>
        <ul class="ac_intro" runat="server" id="boxPageExplain">
            <li class="ac_intro_title">说明：</li>
            <li class="ac_intro_item">1. 资讯管理。</li>
        </ul>
    </div>
    </form>
</body>
</html>
