<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="topicmanage.aspx.cs" Inherits="FangPage.Admin.topicmanage" %>

<%@ Import Namespace="FangPage.Common" %>
<%@ Register TagPrefix="cc1" Namespace="FangPage.Control" Assembly="FangPage.Control" %>
<!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="styles/bmsmanager.css" type="text/css" rel="stylesheet">
    <link href="styles/datagrid.css" type="text/css" rel="stylesheet">

    <script type="text/javascript" src="js/common.js"></script>

    <meta content="MSHTML 6.00.3790.0" name="GENERATOR">
</head>
<body leftmargin="5" topmargin="5" rightmargin="5" bottommargin="5">
    <form id="form1" runat="server">
    <div class="Navbutton" style="width: 98%;">
        <table cellspacing="1" cellpadding="4" align="left">
            <tr>
                <td align="left">
                    <input title="选中/取消选中 本页所有Case" onclick="CheckAll(this.form)" type="checkbox" name="chkall"
                        id="chkall" />全选/取消全选
                    <cc1:Button ID="DelRec" runat="server" Text="删除主题" ButtonImgUrl="images/dell.gif"
                        OnClick="DelRec_Click"></cc1:Button>
                    <cc1:Button ID="Status" runat="server" Text="通过审核" OnClick="Status_Click"></cc1:Button>
                </td>
            </tr>
        </table>
    </div>
    <cc1:DataGrid ID="DataGrid1" runat="server" OnPageIndexChanged="DataGrid_PageIndexChanged"
        AllowPaging="true" PageSize="20">
        <Columns>
            <asp:TemplateColumn HeaderText="选择">
                <ItemTemplate>
                    <input id="id" onclick="javascript:SH_SelectOne(this)" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.tid").ToString() %>"
                        name="id" />
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="tid" SortExpression="tid" HeaderText="tid" Visible="false">
            </asp:BoundColumn>
            <asp:TemplateColumn ItemStyle-HorizontalAlign="Left" HeaderText="标题">
                <ItemTemplate>
                        <a href="<%=sortpath %>read-<%# DataBinder.Eval(Container, "DataItem.tid").ToString() %>.aspx" target="_blank">
                        <%# DataBinder.Eval(Container, "DataItem.title").ToString()%></a>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn  HeaderText="所属分类">
                <ItemTemplate>
                    <%# DataBinder.Eval(Container, "DataItem.typeid").ToString().Trim()%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="poster" HeaderText="发布者"></asp:BoundColumn>
            <asp:BoundColumn DataField="postdatetime" HeaderText="发布时间"></asp:BoundColumn>
            <asp:BoundColumn DataField="views" HeaderText="浏览数"></asp:BoundColumn>
            <asp:BoundColumn DataField="replies" HeaderText="回复"></asp:BoundColumn>
            <asp:TemplateColumn HeaderText="状态">
                <ItemTemplate>
                    <%# StateStr(DataBinder.Eval(Container, "DataItem.displayorder").ToString().Trim())%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="操作">
                <ItemTemplate>
                    <a href="<%=sortpath %>read-<%# DataBinder.Eval(Container, "DataItem.tid").ToString() %>.aspx" target="_blank">
                            浏览</a>
                </ItemTemplate>
            </asp:TemplateColumn>
        </Columns>
        <PagerStyle Mode="NumericPages"></PagerStyle>
        <HeaderStyle CssClass="category"></HeaderStyle>
    </cc1:DataGrid>
    </form>
</body>
</html>