<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LiuYanGuanLi.aspx.cs" Inherits="Admin_LiuYan_LiuYanGuanLi" %>

<!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 rel="Stylesheet" href="../Images/Admin.css" type="text/css" />
    <script type="text/javascript" src="../Images/Admin.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    位置：留言管理&nbsp;
    <div style="height:5px"></div>
    <table class="tab1" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td>
        <table class="tab2" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td class="tab2_bt">留言列表</td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                    CellSpacing="1" CssClass="tab3" GridLines="None" OnSorting="GridView1_Sorting">
                    <Columns>
                        <asp:TemplateField HeaderText="&lt;input type=&quot;checkbox&quot; onclick=&quot;this.checked?QuanXuan('d'):BuXuan('d')&quot; /&gt;ID"
                            SortExpression="ID">
                            <HeaderStyle Width="5%" />
                            <ItemStyle Width="5%" />
                            <ItemTemplate>
                                                <input type="checkbox" name="d" value="<%# Eval("ID") %>" /><%# Eval("ID") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="留言本" SortExpression="留言本ID">
                            <HeaderStyle Width="10%" />
                            <ItemStyle Width="10%" />
                            <ItemTemplate>
                                <%# Eval("留言本名称")+"(ID:"+Eval("留言本ID")+")" %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="标题" HeaderText="标题">
                            <HeaderStyle Width="15%" />
                            <ItemStyle Width="15%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="发表人" HeaderText="发表人">
                            <HeaderStyle Width="10%" />
                            <ItemStyle Width="10%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="留言表情">
                            <HeaderStyle Width="10%" />
                            <ItemStyle Width="10%" />
                            <ItemTemplate>
                                <img src="<%# Eval("留言表情") %>" alt=".." />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="留言内容">
                            <HeaderStyle Width="20%" />
                            <ItemStyle Width="20%" />
                            <ItemTemplate>
                                <%# Eval("留言内容")+"<br/><span style=\"color:red\">回复："+Eval("回复内容")+"</span>" %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="留言时间" HeaderText="留言时间">
                            <HeaderStyle Width="10%" />
                            <ItemStyle Width="10%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="回复时间" HeaderText="回复时间">
                            <HeaderStyle Width="10%" />
                            <ItemStyle Width="10%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="回复">
                            <HeaderStyle Width="5%" />
                            <ItemStyle Width="5%" />
                            <ItemTemplate>
                                <a href="LiuYan_HuiFu.aspx?ID=<%# Eval("ID") %>&rurl=<%# Server.UrlEncode(Request.Url.ToString()) %>">回复</a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="删除">
                            <HeaderStyle Width="5%" />
                            <ItemStyle Width="5%" />
                            <ItemTemplate>
                                <a href="LiuYan_ShanChu.aspx?ID=<%# Eval("ID") %>&rurl=<%# Server.UrlEncode(Request.Url.ToString()) %>" onclick="if(!confirm('真的要删除吗？')){return false}">删除</a>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            
            </td>
        </tr>
        </table>
        </td>
    </tr>
    </table>
    </div>
        <asp:HiddenField ID="PaiXuZiDuan" runat="server" Value="ID" />
        <asp:HiddenField ID="PaiXuFangXiang" runat="server" Value="true" />
        <asp:Label ID="CaoZuoDaiMa" runat="server"></asp:Label>
    </form>
    <div style="height:5px"></div>
        <form method="get" action="LiuYanGuanLi.aspx">
        <asp:Panel ID="Panel1" runat="server" Style="text-align: right" Width="100%">
            <asp:Label ID="FenYeDaiMa" runat="server" Text="Label"></asp:Label></asp:Panel>
            </form>
</body>
</html>
