<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BanKuai.aspx.cs" Inherits="Admin_LunTan_BanKuai" %>

<!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 rel="Stylesheet" href="../Images/Admin.css" type="text/css" />
    <script type="text/javascript" src="../Images/Admin.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    位置：版块管理<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    <div style="height:5px"></div>
    <input type="button" value="增加版块" onclick="location.href='BanKuai_ZengJia.aspx?ID=<%=ID %>'" />
    <input type="button" value="导入版块" onclick="location.href='BanKuai_DaoRu.aspx'" />
    <input type="button" value="导出版块" onclick="location.href='BanKuai_DaoChu.aspx'" />
    <div style="height:5px"></div>
    <table class="tab1" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td>
        <table class="tab2" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td class="tab2_bt">
            版块列表
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                    CellSpacing="1" CssClass="tab3" GridLines="None" OnSorting="GridView1_Sorting">
                    <Columns>
                        <asp:TemplateField HeaderText="&lt;input type=&quot;checkbox&quot; onclick=&quot;this.checked?QuanXuan('d'):BuXuan('d')&quot; /&gt;ID"
                            SortExpression="ID">
                            <HeaderStyle Width="5%" />
                            <ItemStyle Width="5%" />
                            <ItemTemplate>
                            
                                                <input type="checkbox" name="d" value="<%# Eval("ID") %>" /><%# Eval("ID") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="版块名称">
                            <HeaderStyle Width="20%" />
                            <ItemStyle Width="20%" />
                            <ItemTemplate>
                                <%# Eval("版块名称") %>
                                <a href="BanKuai.aspx?ID=<%# Eval("ID") %>">下级版块</a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="版块状态">
                            <HeaderStyle Width="10%" />
                            <ItemStyle Width="10%" />
                            <ItemTemplate>
                                <%# Convert.ToBoolean(Eval("版块状态"))?"开放":"关闭" %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="排序" HeaderText="排序" SortExpression="排序">
                            <HeaderStyle Width="5%" />
                            <ItemStyle Width="5%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="显示状态" SortExpression="显示状态">
                            <HeaderStyle Width="5%" />
                            <ItemStyle Width="5%" />
                            <ItemTemplate>
                                <%# Convert.ToBoolean(Eval("显示状态"))?"显示":"隐藏" %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="贴子数" SortExpression="贴子数">
                            <HeaderStyle Width="10%" />
                            <ItemStyle Width="10%" />
                            <ItemTemplate>
                                <%# Eval("贴子数")+"(今日:"+Eval("今日发贴数")+")" %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="回贴数" SortExpression="回贴数">
                            <HeaderStyle Width="10%" />
                            <ItemStyle Width="10%" />
                            <ItemTemplate>
                                <%# Eval("回贴数")+"(今日:"+Eval("今日回贴数")+")" %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="创建时间" HeaderText="创建时间" SortExpression="创建时间">
                            <HeaderStyle Width="15%" />
                            <ItemStyle Width="15%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="修改">
                            <HeaderStyle Width="10%" />
                            <ItemStyle Width="10%" />
                            <ItemTemplate>
                                <a href="BanKuai_XiuGai.aspx?ID=<%# Eval("ID") %>&amp;rurl=<%# Server.UrlEncode(Request.Url.ToString()) %>">修改</a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="删除">
                            <HeaderStyle Width="10%" />
                            <ItemStyle Width="10%" />
                            <ItemTemplate>
                                <a href="BanKuai_ShanChu.aspx?ID=<%# Eval("ID") %>&amp;rurl=<%# Server.UrlEncode(Request.Url.ToString()) %>" onclick="if(!confirm('真的要删除吗？')){return false;}">删除</a>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            
            </td>
        </tr>
        </table>
        </td>
    </tr>
    </table>
    </div>
        <asp:HiddenField ID="PaiXuZiDuan" runat="server" Value="排序" />
        <asp:HiddenField ID="PaiXuFangXiang" runat="server" Value="false" />
        <asp:Label ID="CaoZuoDaiMa" runat="server"></asp:Label>
    </form>
    <div style="height:5px"></div>
        <form method="get" action="BanKuai.aspx">
        <asp:Panel ID="Panel1" runat="server" Style="text-align: right" Width="100%">
            <asp:Label ID="FenYeDaiMa" runat="server" Text="Label"></asp:Label></asp:Panel>
            </form>
</body>
</html>
