<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Manage.aspx.cs" Inherits="TotCms.Web.Office.BBS.Manage" %>
<%@ Register assembly="TotCms.Controls" namespace="TotCms.Controls" tagprefix="cc1" %>
<!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="../style/global.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery-ui-1.8.10/css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/jquery.ui.core.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/jquery.ui.widget.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/jquery.ui.datepicker.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/i18n/jquery.ui.datepicker-zh-CN.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $('.dates').datepicker($.datepicker.regional["zh-CN"]);
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
                    <table>
                        <tr>
                            <td>
                                <img src="images/free1.jpg" />
                            </td>
                            <td>
                                <a href="BBS_List.aspx">论坛摘要</a>
                            </td>
                            <td>
                                <a href="#">论坛一览</a>
                            </td>
                            <td class="topic">
                                <a href="BBS_Add.aspx">发新话题</a>
                            </td>
                        </tr>
                    </table>
                </div>
    <div>
         <table style="width: 100%;" border="0" cellpadding="0" cellspacing="1" class="border">
            <tr class="suphead">
                <td colspan="7">
                    查询区域
                </td>
            </tr>
            <tr>
                <td class="fields_text">作者：</td>
                <td class="fields_input">
                    <asp:TextBox ID="tbUserName" runat="server"></asp:TextBox>
                </td>
                <td class="fields_text">
                    标题：
                </td>
                <td class="fields_input">
                    <asp:TextBox ID="tbTitle" runat="server"></asp:TextBox>
                </td>
                <td class="fields_text">
                 </td>
                <td class="fields_text">
                    <asp:Button ID="btnGo" runat="server" Text="查询" onclick="btnGo_Click" />
                </td>   
            </tr>
            <tr>
                <td class="fields_text">日期 从：</td>
                <td class="fields_input">
                    <asp:TextBox ID="tbStartDate" runat="server" CssClass="dates"></asp:TextBox>
                </td>
                <td class="fields_text">到：</td>
                <td class="fields_input">
                    <asp:TextBox ID="tbEndDate" runat="server" CssClass="dates"></asp:TextBox>
                </td>
                <td class="fields_text"></td>             
                <td class="fields_text"></td>
            </tr>
        </table>
    </div>
    <div>
        <table cellpadding="0" cellspacing="1" border="0" width="100%">
            <tr>
                <td class="topic"">
                   <%-- 栏目名称：<asp:Label ID="lbTime" runat="server"></asp:Label>--%>
                </td>
            </tr>            
        </table>
        <asp:ListView ID="lvList" runat="server" ItemPlaceholderID="items" OnItemCommand="lvList_ItemCommand" DataKeyNames="id">
            <LayoutTemplate>
                <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border">
                    <tr class="suphead">
                        <td>
                            标题
                        </td>
                        <td>
                            作者
                        </td>
                        <td>
                            字节数
                        </td>
                        <td>
                            访问数
                        </td>
                        <td>
                            回复数
                        </td>
                        <td>
                            发布时间
                        </td>
                        <td></td>
                    </tr>
                    <asp:PlaceHolder runat="server" ID="items"></asp:PlaceHolder>
                    </table>
            </LayoutTemplate>
            <ItemTemplate>
                <tr class="lines" ondblclick="window.location.href='BBS_View.aspx?id= <%#Eval("id")%>'">
                    <td>
                        <%#Eval("Title")%>
                    </td>
                     <td>
                        <%# Eval("UserName")%>
                    </td>
                    <td>
                        <%#Eval("Content").ToString().Length%>
                    </td>                    
                    <td>
                        <%#Eval("Hits")%>
                    </td>      
                    <td>
                        <%# Eval("Reply")%>
                    </td> 
                     <td>
                        <%# Eval("PubDate")%>
                    </td>
                    <td>
                        <asp:LinkButton ID="LinkButton1" OnLoad="Delete_Load" runat="server" CommandName="deleteobj"
                            CommandArgument='<%# Eval("id") %>'>删除</asp:LinkButton>     
                    </td>              
                </tr>
            </ItemTemplate>
            <EmptyDataTemplate>
                <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border">
                    <tr class="suphead">
                        <td>
                            <h2>暂时没有数据</h2>
                        </td>
                    </tr>
                </table>
            </EmptyDataTemplate>
        </asp:ListView>
    </div>
   <cc1:Pager ID="Pager1" runat="server" GenerateFirstLastSection="True" 
      GenerateGoToSection="True" GenerateHiddenHyperlinks="False" 
      QueryStringParameterName="CurrentPage" OnCommand="pager_Command" 
      GoToStyle="text" OfClause="/" PageClause="页" PageSize="15" />
    </form>
</body>
</html>
