<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BlogResAdmin.aspx.cs" Inherits="Oykx.admin.BlogResAdmin" %>

<!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>日志评论 -
        <%=Resources.zhouxiang.adminTitle %></title>
    <link href="css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td class="td_title">
                    日志评论
                </td>
            </tr>
            <tr>
                <td class="tableTd">
                    <asp:GridView ID="GridView_Res" runat="server" AutoGenerateColumns="False" 
                        Width="100%" onrowcommand="GridView_Res_RowCommand" 
                        onrowdatabound="GridView_Res_RowDataBound">
                        <Columns>
                            <asp:TemplateField HeaderText="RID">
                                <ItemTemplate>
                                    <asp:Label ID="lblRIDs" runat="server" Text='<%# Eval("RID") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="评论人">
                                <ItemTemplate>
                                    <asp:Label ID="lblRAuthor" runat="server" Text='<%# Eval("RAuthor") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="评论时间">
                                <ItemTemplate>
                                    <asp:Label ID="lblRTime" runat="server" Text='<%# Eval("RTime") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="评论内容">
                                <ItemTemplate>
                                    <asp:Label ID="lblRContent" runat="server" Text='<%# Eval("RContent") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="IP地址">
                                <ItemTemplate>
                                    <asp:Label ID="lblRIP" runat="server" ToolTip='<%# Eval("RDz") %>' Text='<%# Eval("RIP") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="回复内容">
                                <ItemTemplate>
                                    <asp:Label ID="lblAContent" runat="server" Text='<%# Eval("AContent") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="回复评论">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkBtnHF" runat="server" CommandName="hf"  CommandArgument='<%# Eval("RID") %>' CausesValidation="false" >点击回复</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="删除评论">
                                <ItemTemplate>
                                    <asp:ImageButton ID="ImageBtnDel" runat="server" CommandName="del"  CausesValidation="false" 
                                        CommandArgument='<%# Eval("RID") %>' ImageUrl="~/admin/image/del.png" Text="删除" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    <table width="100%">
        <tr>
            <td class="td_title">
                评论回复
            </td>
        </tr>
        <tr>
            <td class="tableTd">
                回复评论ID:<asp:Label ID="lblRID" runat="server" Style="font-weight: 700; color: #FF0000"
                    Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="tableTd">
                回复内容:<asp:TextBox ID="txtdesc" runat="server" Width="310px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtdesc" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="tableTd">
                <asp:Button ID="btnadd" runat="server" OnClick="btnadd_Click" Text="提交" />
                &nbsp;
            </td>
        </tr>
    </table>
    <div style="height: 5px;">
        &nbsp;</div>
    <table width="100%">
        <tr>
            <td class="td_title">
                友情提示
            </td>
        </tr>
        <tr>
            <td class="tableTd">
                1.每篇日志都有相应的评论列表,请在删除时,谨慎操作.
            </td>
        </tr>
        <tr>
            <td class="tableTd">
                2.日志评论是可以和来访者沟通的工具,可以很好利用它.
            </td>
        </tr>
        <tr>
            <td class="tableTd">
                3.回复评论后会显示到首页,请注意回复内容.
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
