<%@ Page Language="c#" Inherits="Web.User.addMessageBoard" CodeBehind="addMessageBoard.aspx.cs" %>
<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>Add MessageBoard</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script  type="text/javascript" src="../Editor/My97DatePicker/WdatePicker.js"></script>
    <!--#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="edit-table" style="min-width:750px;max-width:980px">
                <tbody>
                     <tr>
                        <th>
                            标&emsp;题：
                        </th>
                        <td>
                            <asp:TextBox ID="TitleTextBox" class="input-txt w3" runat="server" notNull="true" msgName="标题"></asp:TextBox><font color="#ff0000">*</font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TitleTextBox" ErrorMessage="标题不能为空">*</asp:RequiredFieldValidator>
                            &emsp;
                            <asp:CheckBox ID="isTop" runat="server" Text="固顶"></asp:CheckBox>
                        </td>
                        <th>
                            <asp:Label ID="TimeLab" runat="server" Visible="false">留言时间：</asp:Label>
                        </th>
                        <td>
                            <asp:Label ID="labTime" runat="server" Visible="false"></asp:Label>
                            <asp:TextBox ID="HomePageTextBox" runat="server" class="input-txt w3" style="display:none ;">Http://</asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            姓&emsp;名：
                        </th>
                        <td>
                            <asp:TextBox ID="AuthorTextBox" class="input-txt" runat="server" notNull="true" msgName="姓名"></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>
                        <th>
                            性&emsp;别：
                        </th>
                        <td>
                            <asp:RadioButtonList ID="Sex" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Value="男" Selected="True">男&emsp;&emsp;</asp:ListItem>
                                <asp:ListItem Value="女">女</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                         <th>
                            浏览权限：
                        </th>
                        <td>
                            <asp:DropDownList ID="gate" runat="server" CssClass="drop-txt">
                                <asp:ListItem Value="0">无限制</asp:ListItem>
                                <asp:ListItem Value="1">仅内网可见</asp:ListItem>
                                <asp:ListItem Value="2">仅登录可见</asp:ListItem>
                                <asp:ListItem Value="3">内网或登录可见</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <th>
                            显示等级：
                        </th>
                        <td>
                            <asp:DropDownList ID="grade" runat="server" DataTextField="name" DataValueField="pkId" CssClass="drop-txt">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            联系方式：
                        </th>
                        <td>
                            <asp:TextBox ID="TelTextBox" class="input-txt" runat="server" notNull="true" msgName="联系方式"></asp:TextBox><font color="#ff0000">*</font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TelTextBox" ErrorMessage="联系方式不能为空">*</asp:RequiredFieldValidator>
                        </td>
                        <th>
                            电子邮箱：
                        </th>
                        <td>
                            <asp:TextBox ID="EmailTextBox" class="input-txt" runat="server" notNull="true" msgName="电子邮箱"></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>
                        <th>
                            留言内容：
                        </th>
                        <td colspan="3">
                            <asp:TextBox ID="ContentTextBox" runat="server" Width="80%" Height="116px" TextMode="MultiLine" CssClass="input-txt" notNull="true" msgName="留言内容"></asp:TextBox><font
                                color="#ff0000">*</font><asp:RequiredFieldValidator ID="RequiredFieldValidator5"
                                    runat="server" ControlToValidate="ContentTextBox" ErrorMessage="留言内容不能为空">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr runat="server" visible='<%# IsAskAnswer== 0 ? true : false %>'>
                        <th>
                            是否保密：
                        </th>
                        <td>
                            <asp:CheckBox ID="IsSecrecy" runat="server" Text="该条信息保密"></asp:CheckBox>
                        </td>
                         <th>
                            留言者IP：
                        </th>
                        <td>
                            <asp:Label ID="IpLabel" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <asp:Panel ID="RePanlVerifycode" runat="server" Visible="true">
                        <tr>
                            <th>
                                验证码：
                            </th>
                            <td colspan="3">
                                <asp:TextBox ID="UserVerifyCode" runat="server" CssClass="input-txt" notNull="true" msgName="验证码"></asp:TextBox>
                                <img align="middle" src="../user/verifyimg.aspx" title="单击可换图" alt="" onclick="this.src='../user/verifyImg.aspx?v='+Math.random()" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="验证码不能为空"
                                    Display="Dynamic" ControlToValidate="UserVerifyCode"></asp:RequiredFieldValidator>
                                <span style="color: #ff0000">
                                <asp:Label ID="Label1" runat="server"></asp:Label></span>
                            </td>
                        </tr>
                    </asp:Panel>
                    <asp:Panel ID="RePanel" runat="server" Visible="False">
                        <tr>
                            <th>
                                回复内容：
                            </th>
                            <td colspan="3">
                                <asp:TextBox ID="ReContentTextBox" runat="server" Width="80%" TextMode="MultiLine" Height="80px" CssClass="input-txt" notNull="true" msgName="回复内容"></asp:TextBox><font color="#ff0000">*</font>
                                <asp:RequiredFieldValidator ID="Requiredfieldvalidator6" runat="server" ErrorMessage="回复内容不能为空" ControlToValidate="ReContentTextBox">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                回复部门：
                            </th>
                            <td colspan="3">
                                <asp:TextBox ID="txtRedept" runat="server" CssClass="input-txt" MaxLength="20"></asp:TextBox>
                                &emsp;&emsp;回复时间：<asp:TextBox ID="txtRetime" runat="server" CssClass="input-txt" MaxLength="19" onClick="WdatePicker({dateFmt:'yyyy/MM/dd HH:mm:ss'})" notNull="true" msgName="回复时间" ></asp:TextBox>
                                &emsp;&emsp;<asp:CheckBox ID="IsEmail" runat="server" Text="Email邮件通知"></asp:CheckBox>
                            </td>
                        </tr>
                    </asp:Panel>
                </tbody>
            </table>
        </div>
        <div class="ft">
            <div class="action-field txt-c">
                <asp:Button ID="Save" runat="server" CssClass="btn" Text="保 存" OnClientClick="return checkAllValidate();" OnClick="Save_Click"></asp:Button>&emsp;
                <input class="btn" type="reset" value="重 置" />&emsp;
                <asp:Button ID="cancel" runat="server" CssClass="btn" Text="取 消" CausesValidation="False" OnClick="cancel_Click"></asp:Button>&emsp;
                <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>
