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

<!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>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:gridview ID="Gv_Msg" runat="server" AutoGenerateColumns="False">
            <columns>
                <asp:templatefield><itemtemplate>
                <table cellpadding="3" cellspacing="0" width="1000">
                     <tr>
                        <td style="background-color:#f8e3cf; border-bottom-color:#EBD0AC; border-bottom-style:solid; border-bottom-width:2PX; width:100%">
                            <img src="images/person_03.jpg"alt="" />
                             用户<font style="color:Red"> <%#Eval("MsgName")%> </font> 于
                             <font style="color:#003366"> <%#Eval("MsgTime")%> </font>　的留言
                        </td>
                     </tr>
                 </table>
                 <table cellpadding="5" cellspacing="5">
                          <tr>
                              <td style="width:95%;">
                              
                              <%#Server.HtmlEncode((string)Eval("MsgContent"))%>  
                                 <br /><br />
                                 
                               <asp:Panel runat="server" ID="peReply">
                                 <table cellpadding="10" cellspacing="10" width="990">
                                     <tr>
                                        <td style="background-color:#f8e3cf; width:95%">
                                            <img src="images/person_06.jpg" alt="" /> 管理员   于　
                                              <font style="color:#003366"> <%#Eval("RelayTime")%> </font> 回复<br />
                                               <hr style="border-right: #ebd0ac 2px solid; border-top: #ebd0ac 2px solid; border-left: #ebd0ac 2px solid; border-bottom: #ebd0ac 2px solid; background-color: #ebd0ac;" />
                                              <%#Eval("RelayContent")%>
                                        </td>
                                     </tr>
                                 </table>
                                </asp:Panel>
                              </td>
                          </tr>
                   </table>
                </itemtemplate></asp:templatefield>
            </columns>
        </asp:gridview>
        <asp:Panel runat="server" ID="peAddReply" Visible="false">
         <table cellpadding="0" cellspacing="0" border="0" width="100%">
           <tr>
              <td valign="top" align="center">
                <font style="color:#EBD0AC; font-weight:bold">请留下你的宝贵意见:</font> 
               <br />
                 <asp:TextBox runat="server" ID="tbContent" TextMode="MultiLine" Width="470px" Height="80px" ValidationGroup="ly"></asp:TextBox><br />
                  <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="请输入留言内容!" ShowMessageBox="True" ValidationGroup="ly" />
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbContent" Display="None" ValidationGroup="ly"></asp:RequiredFieldValidator>
                  <asp:ImageButton runat="server" ID="ibSumbit" ImageUrl="~/images/sendBtn.gif" OnClick="ibSumbit_Click" ValidationGroup="ly" />
              </td>
           </tr>
       </table>
        </asp:Panel>
    </div>
    </form>
</body>
</html>
