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

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!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>
    <link type="text/css" rel="stylesheet" href="../images/style.css" />
    <script type="text/javascript" src="../../scripts/jquery/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../js/function.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="navigation">
            <h3>
                【内容管理】</h3>
        </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" OnClick="Button1_Click" />
                </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 class="select_box">
            </div>
        </div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
            <tr align="center">
                <th width="30">
                    选择
                </th>
                <th>
                    编号
                </th>
                <th>
                    产品分类名称
                </th>
                <th>
                    产品名称
                </th>
                <th>
                    推荐结果
                </th>
                <th width="12%">
                    操作
                </th>
            </tr>
            <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand" 
                onitemdatabound="rptList_ItemDataBound">
                <ItemTemplate>
                    <tr align="center">
                        <td>
                            <asp:CheckBox ID="chkId" runat="server" Text="选" CssClass="checkall" />
                            <asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" />
                        </td>
                        <td>
                            <%#Eval("id")%>
                        </td>
                        <td>
                            <%# GetCmsid(Eval("Cms_Id")) %>
                        </td>
                        <td>
                            <asp:Literal ID="Literal2" runat="server"></asp:Literal>
                            <a href="edit.aspx?id=<%# Eval("id") %>">
                                <%#Eval("Cms_Title") %></a>
                        </td>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text='<%# GetTui(Eval("Cms_Liu9"))%>'></asp:Label>
                        </td>
                        <td align="center">
                            <asp:LinkButton ID="LinkButton3" runat="server" CommandArgument='<%# Eval("id") %>'
                                CommandName="tuijian" Text="推荐"> </asp:LinkButton>
                            <a href="edit.aspx?id=<%# Eval("id") %>">| 修改</a>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"70\">暂无记录</td></tr>" : ""%></FooterTemplate>
            </asp:Repeater>
        </table>
        <br />
        <div class="NextPage">
            <webdiyer:AspNetPager ID="Aspage_All" CssClass="paginator" runat="server" PageSize="18"
                AlwaysShow="True" ShowPageIndexBox="Always" PageIndexBoxType="DropDownList" UrlPaging="false"
                OnPageChanging="Aspage_PageChanging" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
                PrevPageText="上一页" TextAfterPageIndexBox="页" TextBeforePageIndexBox="跳到">
            </webdiyer:AspNetPager>
        </div>
        <div class="line10">
        </div>
    </div>
    <asp:HiddenField ID="Hid" runat="server" />
    </form>
</body>
</html>
