<%@ Page Title="在线留言查看" Language="C#" StylesheetTheme="AdminSkin" MasterPageFile="~/Others/AdminMasterPage.Master" AutoEventWireup="true" CodeBehind="LeaveMessageEdit.aspx.cs" Inherits="Web.Admin.Contents.LeaveMessageEdit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="AdminContentHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminContentCenter" runat="server">
  <form id="form1" runat="server">
        <div class="formtextfield">
            <div class="title">
                <h4><span>在线留言查看</span></h4>
            </div>
            <div class="content">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="fieldname">标题:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="txtTitle" runat="server" Width="260" Enabled="false"></asp:TextBox>
                        &nbsp;不可修改</td>
                    </tr>
                    <tr>
                        <td class="fieldname">联系人:
                        </td>
                        <td class="fieldvalue">
                          <asp:TextBox ID="txtContact" runat="server" Width="260" Enabled="false"></asp:TextBox>
                        &nbsp;不可修改</td>
                    </tr>
                    <tr>
                        <td class="fieldname">Email:
                        </td>
                        <td class="fieldvalue">
                          <asp:TextBox ID="txtEmail" runat="server" Width="260" Enabled="false"></asp:TextBox>
                        &nbsp;不可修改</td>
                    </tr>
                    <tr>
                        <td class="fieldname">留言内容:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="txtWriteContent" runat="server" Width="400" TextMode="MultiLine" Height="150" Enabled="false"></asp:TextBox>
                        &nbsp;不可修改</td>
                    </tr>
                    <tr>
                        <td class="fieldname">留言者IP:
                        </td>
                        <td class="fieldvalue">
                          <asp:TextBox ID="txtIP" runat="server" Width="260" Enabled="false"></asp:TextBox>
                        &nbsp;不可修改</td>
                    </tr>
                    <tr>
                        <td class="fieldname">回复人:
                        </td>
                        <td class="fieldvalue">
                          <asp:TextBox ID="txtReplyPerson" runat="server" Width="260" Text="管理员"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldname">回复内容:
                        </td>
                        <td class="fieldvalue">
                          <asp:TextBox ID="txtReplyContent" runat="server" Width="400" TextMode="MultiLine" Height="150"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldname">状态:
                        </td>
                        <td class="fieldvalue">
                            <asp:DropDownList ID="ddlStatus" runat="server">
                                <asp:ListItem Value="0">隐藏</asp:ListItem>
                                <asp:ListItem Value="1">显示</asp:ListItem>
                            </asp:DropDownList>
                        &nbsp;如果为隐藏,即使回复后也不显示在前台</td>
                    </tr>

                    <tr>
                        <td class="fieldname">备注:</td>
                        <td class="fieldvalue">
                           <asp:TextBox ID="txtRemark" runat="server" Width="400" TextMode="MultiLine" Height="50" MaxLength="25"></asp:TextBox>

                        </td>
                    </tr>

                    </table>
            </div>
            <table width="100%" border="0" cellpadding="2" cellspacing="1">
                <tr>
                    <td colspan="2" align="center">
                        <asp:Button ID="btnSave" runat="server" Text="保存" OnClientClick="return checkInput();" CssClass="btn btngreen" OnClick="btnSave_Click"/>
                        &nbsp;&nbsp;
                        <asp:Button ID="btnCancel" runat="server" Text="取消" OnClientClick="javascript:window.location.href='LeaveMessageManage.aspx';return false;" CssClass="btn btnred"/>
                    </td>
                </tr>
            </table>
            <br />
        </div>
         <br />
    </form>
    <script type="text/javascript">
        var titleobj = document.getElementById("<%=this.txtReplyContent.ClientID%>");
        function checkInput() {
            //if (titleobj.value == "") {
            //    return confirm("回复内容为空,确定继续?");
            //}
            return true;
        }
    </script>
</asp:Content>
