<%@ Page Language="c#" Inherits="Web.User.replymessage" CodeBehind="replymessage.aspx.cs" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>留言回复</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../../Css/userCssEdit.htm" -->
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <div class="edit-func-box func-box">
        <div class="hd">
            留言回复</div>
        <div class="bd">
    <table class="table_border" class="edit-table" >
        <tbody>
            <tr class="table_bg">
                <td width="110" height="28">
                    <div align="right">
                        <p class="table_bg">
                            姓&nbsp;&nbsp;&nbsp;&nbsp;名：
                        </p>
                    </div>
                </td>
                <td width="36%">
                    &nbsp;
                    <asp:TextBox ID="AuthorTextBox" runat="server"></asp:TextBox><font color="#ff0000">*</font><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator1" runat="server" ControlToValidate="AuthorTextBox"
                        ErrorMessage="姓名不能为空">*</asp:RequiredFieldValidator>
                    <asp:TextBox ID="name" runat="server" Visible="False"></asp:TextBox>
                </td>
                <td valign="middle" align="right" width="13%">
                    <div align="right">
                        性 别：</div>
                </td>
                <td width="37%">
                    <asp:RadioButtonList ID="Sex" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="男" Selected="True">男</asp:ListItem>
                        <asp:ListItem Value="女">女</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="table_bg">
                <td width="110" height="28">
                    <div align="right">
                        <p class="table_bg">
                            联系方式：</p>
                    </div>
                </td>
                <td>
                    &nbsp;
                    <asp:TextBox ID="TelTextBox" runat="server"></asp:TextBox><font color="#ff0000">*</font><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator2" runat="server" ControlToValidate="TelTextBox" ErrorMessage="联系方式不能为空">*</asp:RequiredFieldValidator>
                </td>
                <td>
                    <div align="right">
                        电子邮箱：</div>
                </td>
                <td valign="middle">
                    &nbsp;
                    <asp:TextBox ID="EmailTextBox" runat="server"></asp:TextBox><font color="#ff0000">*</font><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator3" runat="server" ControlToValidate="EmailTextBox"
                        ErrorMessage="电子邮箱不能为空">*</asp:RequiredFieldValidator><asp:RegularExpressionValidator
                            ID="RegularExpressionValidator1" runat="server" ControlToValidate="EmailTextBox"
                            ErrorMessage="电子邮箱格式不正确" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr class="table_bg" style="display: none">
                <td style="height: 21px" width="110" height="21">
                    <div align="right">
                        主&nbsp;&nbsp;&nbsp;&nbsp;页：</div>
                </td>
                <td style="height: 21px" colspan="4">
                    &nbsp;
                    <asp:TextBox ID="HomePageTextBox" runat="server" Width="300px">Http://</asp:TextBox>
                </td>
                <tr style="display: none">
                    <td class="table_bg" width="110" height="21">
                        <div align="right">
                            属&nbsp;&nbsp;&nbsp;&nbsp;性：</div>
                    </td>
                    <td class="table_bg" colspan="3" height="20">
                        &nbsp;&nbsp;显示等级：
                        <asp:DropDownList ID="grade" runat="server" Width="68px" DataTextField="name" DataValueField="pkId">
                        </asp:DropDownList>
                        &nbsp;显示方式：
                        <asp:DropDownList ID="gate" runat="server" Width="70px">
                            <asp:ListItem Value="0">无限制</asp:ListItem>
                            <asp:ListItem Value="1">内网</asp:ListItem>
                            <asp:ListItem Value="2">外网</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;
                        <asp:CheckBox ID="isTop" runat="server" Text="固顶"></asp:CheckBox>&nbsp;&nbsp;&nbsp;
                        <asp:Label ID="IpLabel" runat="server"></asp:Label>
                    </td>
                </tr>
            </tr>
            <tr class="table_bg" runat="server" visible='<%# IsAskAnswer== 0 ? true : false %>'>
                <td width="110" height="14">
                    <div align="right">
                        标&nbsp;&nbsp;&nbsp; 题：</div>
                </td>
                <td colspan="4">
                    &nbsp;
                    <asp:TextBox ID="TitleTextBox" runat="server" Width="350px"></asp:TextBox><font color="#ff0000">*</font><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator4" runat="server" ControlToValidate="TitleTextBox"
                        ErrorMessage="标题不能为空">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr class="table_bg">
                <td width="110" height="28">
                    <div align="right">
                        留言内容：</div>
                </td>
                <td colspan="4">
                    &nbsp;
                    <asp:TextBox ID="ContentTextBox" runat="server" Width="400px" Height="150px" TextMode="MultiLine"></asp:TextBox><font
                        color="#ff0000">*</font><asp:RequiredFieldValidator ID="RequiredFieldValidator5"
                            runat="server" ControlToValidate="ContentTextBox" ErrorMessage="留言内容不能为空">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr class="table_bg" runat="server" visible='<%# IsAskAnswer== 0 ? true : false %>'>
                <td width="110" height="28">
                    <div align="right">
                        是否保密：</div>
                </td>
                <td colspan="4">
                    &nbsp;
                    <asp:CheckBox ID="IsSecrecy" runat="server" Text="该条信息保密"></asp:CheckBox>
                </td>
            </tr>
            <asp:Panel ID="RePanel" runat="server" Visible="False">
                <tr class="table_bg">
                    <td width="110" height="28">
                        <div align="right">
                            回复内容：</div>
                    </td>
                    <td colspan="4">
                        &nbsp;
                        <asp:TextBox ID="ReContentTextBox" runat="server" Width="400px" TextMode="MultiLine"
                            Height="100px"></asp:TextBox><font color="#ff0000">*</font>
                        <asp:RequiredFieldValidator ID="Requiredfieldvalidator6" runat="server" ErrorMessage="回复内容不能为空"
                            ControlToValidate="ReContentTextBox">*</asp:RequiredFieldValidator>
                            <asp:CheckBox ID="IsEmail" runat="server" Text="是否Email邮件通知？"></asp:CheckBox>
                    </td>
                </tr>
            </asp:Panel>
            <tr class="table_title" valign="middle" align="center">
                <td colspan="5" height="24">
                    <asp:Button ID="Save" runat="server" Text="保存" OnClick="Save_Click"></asp:Button>&nbsp;&nbsp;
                    <input type="reset" value="重置">
                </td>
            </tr>
        </tbody>
    </table>
    </div>
        <div class="ft">
            <div class="action-field text-center">
    <asp:ValidationSummary ID="ValidationSummary1" Style="z-index: 101; left: 240px;
        position: absolute; top: 520px" runat="server" ShowMessageBox="True" ShowSummary="False">
    </asp:ValidationSummary>
    </div>
            <!--/action-field-->
        </div>
    </div>
    </form>
</body>
</html>
