<%@ page language="C#" autoeventwireup="true" inherits="bbslist, App_Web_soepvfzo" %>

<!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="movie/css/index.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#ffffff">
    <form id="form1" runat="server">
    <div>
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
            <tr>
                <td style="width: 100%; height: 10px">
                </td>
            </tr>
            <tr>
                <td style="width: 100%; border-bottom: #cccccc 1px dashed; height: 25px; background-color: #eef2f3;">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                        <tr>
                            <td align="left" style="width: 60%">
                                <asp:Label ID="Label2" runat="server" Font-Bold="True" Text="最新贴子列表"></asp:Label>&nbsp;
                                <asp:LinkButton
                                    ID="LinkButton2" runat="server" Font-Bold="True" OnClick="LinkButton2_Click">按精华排序</asp:LinkButton>&nbsp;
                                <asp:LinkButton
                                        ID="LinkButton1" runat="server" Font-Bold="True" OnClick="LinkButton1_Click">按热门排序</asp:LinkButton></td>
                            <td align="right" style="width: 40%">
                                <asp:Button ID="Button1" runat="server" Font-Bold="True" OnClick="Button1_Click"
                                    Text="刷 新" />&nbsp; &nbsp;<asp:Button ID="Button2" runat="server" Font-Bold="True" OnClick="Button2_Click"
                                    Text="发表新贴子" /></td>
                        </tr>
                    </table>
                    </td>
            </tr>
            <tr>
                <td style="width: 100%; height: 10px">
                </td>
            </tr>
            <tr>
                <td style="width: 100%">
                    <asp:DataList ID="DataList1" runat="server" Width="100%" DataSourceID="SqlDataSource1" OnItemDataBound="DataList1_ItemDataBound">
                        <ItemTemplate>
                            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                <tr>
                                    <td style="width: 2%">
                                    <asp:Image ID="Image3" runat="server" ImageUrl="~/Bati_image/icon0.gif" />
                                    </td>
                                    <td  style="width: 60%; border-bottom: #cccccc 1px dashed;" >
                                        <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" Text='<%#Eval("title") %>' NavigateUrl='<%#"showbbs.aspx?articleid=" + Eval("articleid") %>'>HyperLink</asp:HyperLink>
                                        <asp:Label ID="Label1" runat="server" Text='<%#Eval("articleid") %>' Visible="false"></asp:Label>
                                        </td>
                                    
                                    <td style="width: 38%; border-bottom: #cccccc 1px dashed;" align="left">
                                    发布：<asp:HyperLink ID="HyperLink3" Target="_blank" runat="server" Font-Bold="True" Text='<%#Eval("username") %>'>HyperLink</asp:HyperLink>
                                    </td>
                                    
                                </tr>
                                <tr>
                                    <td style="width: 2%; height: 5px">
                                    </td>
                                    <td style="width: 44%; height: 5px">
                                    </td>
                                    
                                    <td align="center" style="width: 27%; height: 5px">
                                    </td>
                                    <td align="center" style="width: 27%; height: 5px">
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:DataList></td>
            </tr>
            <tr>
                <td style="width: 100%">
                </td>
            </tr>
        </table>
    
    </div>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Mir3WebConnectionString %>"
            SelectCommand="SELECT top 100 [ArticleID], [BanMianName], [UserName], [Title], [Last_Re_User] FROM [Article] ORDER BY [CreateTime] DESC">
        </asp:SqlDataSource>
    </form>
</body>
</html>
