<%@ page language="C#" autoeventwireup="true" inherits="ECMe_Content_ContentList, ECMe_Deploy" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!-- Put IE into quirks mode -->
<!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/Admin/CSS/ECMe.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/Admin/CSS/body156.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/Admin/CSS/volti.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/Admin/TableSort/tablesort.css" rel="stylesheet" type="text/css" />
    <link href="../JS/ThickBox/thickbox.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../JS/jquery.js"></script>
    <script type="text/javascript" src="../JS/Common.js"></script>
    <script type="text/javascript" src="../JS/ThickBox/thickbox.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="header">
        <div class="header_top">
            <h2>
                内容管理 &gt; <span class="blue">内容分类管理</span>
            </h2>
        </div>
        <div class="top_body">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <th style="width: 255px;">
                        常用操作
                    </th>
                    <th>
                        添加内容
                    </th>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="BDelete" runat="server" Text="删除所选" OnClientClick="return confirm('你真的要删除?');"
                            OnClick="BDelete_Click"  CssClass="but_2"/>
                        <asp:Button ID="BUpdateOrder" runat="server" Text="更新排序" OnClick="BUpdateOrder_Click"  CssClass="but_2"/>
                        <asp:Button ID="BShowAndHide" runat="server" Text="显示或隐藏" OnClick="BShowAndHide_Click"  CssClass="but_2"/>
                    </td>
                    <td>
                        如果要添加网站文章内容，请点击 <a href="AddContent.aspx" class="top_but_Add"><img src="../CSS/Admin/images/Add.png" alt="添加内容" /> 添加内容</a>&nbsp;&nbsp;
                    </td>
                </tr>
            </table>
        </div>
        <div class="tab_top">
            <table class="thead">
                <tbody>
                    <tr>
                        <th style="width: 30px">
                            <input id="ChkAll" type="checkbox" onclick="Check(this,'CheckBoxSelect','RepeaterTable')" />
                        </th>
                        <th style="width: 300px">
                            内容标题
                        </th>
                        <th style="width: 80px">
                            内容分类
                        </th>
                        <th style="width: 120px">
                            发布日期
                        </th>
                        <th style="width: 50px">
                            显示
                        </th>
                        <th>
                            编辑
                        </th>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="container">
        <div class="tab_body">
            <table class="tbody">
                <tbody>
                    <asp:Repeater ID="RepeaterTable" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td style="width: 30px">
                                    <asp:CheckBox ID="CheckBoxSelect" runat="server" ToolTip='<%#Eval("ID")%>' BorderStyle="None"
                                        BorderWidth="0px" />
                                </td>
                                <td style="width:300px">
                                    排序：<asp:TextBox ID="TOrder" ToolTip='<%#Eval("ID")%>' Width="30px" Text='<%#Eval("ContentOrder")%>'
                                        runat="server"></asp:TextBox>
                                    &nbsp;<img src="../CSS/Admin/images/Content.png" alt="公告" /> <%#Eval("ContentTitle")%>
                                </td>
                                <td style="width: 80px">
                                    <%#Common.GetContentCategoryName(int.Parse(Eval("CategoryID").ToString())) %>
                                </td>
                                <td style="width: 120px">
                                    <%#Eval("ContentDate")%>
                                </td>
                                <td style="width: 50px">
                                    <asp:LinkButton ID="LIsShow" CssClass="blue" runat="server" CommandArgument='<%#Eval("ID") %>'
                                        CommandName="IsShow"><%# Utils.GetBoolStr(bool.Parse(Eval("IsShow").ToString())) %></asp:LinkButton>
                                </td>
                                <td><img src="../CSS/Admin/images/Edit.png" alt="编辑" />
                                    <a href="AddContent.aspx?id=<%#Eval("ID")%>&keepThis=true&placeValuesBeforeTB_=savedValues&TB_iframe=true&height=450&width=780"
                                        class="thickbox" title="编辑">编辑</a>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
        </div>
    </div>
    <div class="footer">
        <div class="txte">
           
        </div>
        <webdiyer:AspNetPager ID="AspNetPagerItem" runat="server" CssClass="yahoo2" AlwaysShow="True"
            OnPageChanged="AspNetPagerItem_PageChanged" PageSize="50">
        </webdiyer:AspNetPager>
    </div>
    </form>
</body>
</html>
