<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="list.aspx.cs" Inherits="CuzcmsCcwl.admin.admin.list" %>

<%@ 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 id="Head1" runat="server">
    <title>编辑类别信息</title>
    <script type="text/javascript" src="../../scripts/jquery/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../scripts/jquery/jquery.form.js"></script>
    <link href="/admin/images/style.css" rel="stylesheet" type="text/css" />
    <script src="/admin/js/function.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="navigation">
        首页 &gt; 资讯管理 &gt; 管理列表</div>
    <div class="tools_box">
        <div class="tools_bar">
            <div class="search_box">
                <asp:TextBox ID="txtKeywords" runat="server" CssClass="txtInput"></asp:TextBox>
                <asp:Button ID="btnSearch" runat="server" Text="搜 索" CssClass="btnSearch" OnClick="btnSearch_Click" />&nbsp;
                <asp:Button ID="Button1" runat="server" Text="查看全部" CssClass="btnSearch" />
            </div>
            <a href="edit.aspx" class="tools_btn"><span><b class="add">添加用户</b></span></a>
            <asp:LinkButton ID="btnSave" runat="server" CssClass="tools_btn" OnClick="btnSave_Click"><span><b class="send">排序交换</b></span></asp:LinkButton>
            <a href="javascript:void(0);" onclick="checkAll(this);" class="tools_btn"><span><b
                class="all">全选</b></span></a>
            <asp:LinkButton ID="btnDelete" runat="server" CssClass="tools_btn" OnClientClick="return confirm( '是否确认批量删除? ')"
                OnClick="btnDelete_Click"><span><b class="delete">批量删除</b></span></asp:LinkButton>
        </div>
    </div>
    <!--列表展示.开始-->
    <div class="select_box">
    </div>
    <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand" OnItemDataBound="rptList_ItemDataBound">
        <HeaderTemplate>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                <tr>
                    <th width="6%">
                        选择
                    </th>
                    <th align="left">
                        标题
                    </th>
                    <th width="16%" align="left">
                        创建时间
                    </th>
                    <%-- <th width="16%" align="left">
                        登录状态
                    </th>--%>
                    <th width="110">
                        密码恢复
                    </th>
                    <th width="8%">
                        操作
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td align="center">
                    <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" /><asp:HiddenField ID="hidId"
                        Value='<%#Eval("id")%>' runat="server" />
                </td>
                <td>
                    <a href="edit.aspx?id=<%# Eval("id") %>">
                        <%# Eval("Cms_Name") %></a>
                </td>
                <td>
                    <%# ((DateTime)Eval("Cms_Time")).Date.ToString("yyyy-MM-dd") %>
                </td>
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("Cms_Title") %>' Visible="false"></asp:Label>
                <td align="center">
                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="mimahuifu" CommandArgument='<%# Eval("id") %>'
                        Text="密码恢复"></asp:LinkButton>
                </td>
                <td align="center">
                    <a href="edit.aspx?id=<%# Eval("id") %>">修改</a>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"7\">暂无记录</td></tr>" : ""%>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <br />
    <div align="center">
        <webdiyer:AspNetPager ID="Aspage_All" runat="server" FirstPageText="第一页" LastPageText="最后一页"
            NextPageText="下一页" PrevPageText="前一页" PageSize="20" OnPageChanging="Aspage_PageChanging"
            CssClass="paginator" CurrentPageButtonClass="cpb" ShowInputBox="Never" CustomInfoTextAlign="Left"
            layouttype="Table" NumericButtonTextFormatString="[{0}]">
        </webdiyer:AspNetPager>
    </div>
    <!--列表展示.结束-->
    <asp:HiddenField ID="Hid" runat="server" />
    </form>
</body>
</html>
