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



<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <link href="MyBati/images/news_show.css" rel="stylesheet" type="text/css" />
</head>
<body style="background-color: #CCE7FF">
    <form id="form1" runat="server">
    <div>
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
            <tr>
                <td style="width: 100%; height: 30px">
                    <asp:Button ID="Button1" runat="server" Font-Bold="True" OnClick="Button1_Click"
                        Text="刷新贴子" />&nbsp;<asp:Button ID="Button2" runat="server" Font-Bold="True" OnClick="Button2_Click"
                            Text="发新贴子" /></td>
            </tr>
            <tr>
                <td style="width: 100%">
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        BorderWidth="0px" DataKeyNames="MC_articleid" DataSourceID="SqlDataSource3" OnRowDataBound="GridView1_RowDataBound"
                        PageSize="250" ShowHeader="False" Width="100%">
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                        <tr>
                                            <td class="newsCon2" style="width: 100%; height: 20px;">
                                                <asp:Label ID="Label10" runat="server" Text="★"></asp:Label>
                                                <asp:Image ID="Image1" runat="server" ImageUrl="WC/images/money.gif" Visible="false" />【<asp:Label
                                                    ID="Label6" runat="server" Text='<%#Eval("mc_type") %>'></asp:Label>】<asp:HyperLink
                                                        ID="HyperLink2" runat="server" NavigateUrl='<%# "wc2/wc_show.aspx?articleid=" + Eval("mc_articleid") %>'
                                                        Text='<%#Eval("MC_title") %>'>HyperLink</asp:HyperLink>(点<asp:Label ID="Label4" runat="server"
                                                            Text='<%#Eval("MC_click") %>'></asp:Label>/回<asp:Label ID="Label5" runat="server"
                                                                Text='<%#Eval("MC_renum") %>'></asp:Label>)
                                                <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl='<%# "wc2/wc_show.aspx?articleid=" + Eval("mc_articleid") %>'
                                                    Target="_blank" ToolTip="新窗口打开">┳</asp:HyperLink>
                                                <asp:Label ID="Label11" runat="server" ForeColor="red" Text='<%#"(" + Eval("MC_money") + "金)" %>'></asp:Label>
                                                <asp:Label ID="Label7" runat="server" Font-Bold="true" ForeColor="red" Text="【热门】"
                                                    Visible="false"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerSettings FirstPageText="第一页" LastPageText="最后一页" Mode="NextPreviousFirstLast"
                            NextPageText="下一页" Position="TopAndBottom" PreviousPageText="上一页" />
                        <PagerStyle Font-Bold="True" ForeColor="#004000" />
                    </asp:GridView>
                    <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:musicWebConnectionString22 %>"
                        SelectCommand="SELECT top 600 [MC_articleid],[MC_username], [MC_title], [MC_click], [MC_renum],[MC_last_username], [MC_zhidingshijian],[MC_createtime],[mc_type],[MC_money] FROM [MC_article] WHERE ([MC_zhidingshijian] = @MC_zhidingshijian) ORDER BY [MC_createtime] DESC">
                        <SelectParameters>
                            <asp:Parameter DefaultValue="无" Name="MC_zhidingshijian" Type="String" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </td>
            </tr>
        </table>
    
        </div>
    </form>
</body>
</html>
