<%@ 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="../Wpedt/My97DatePicker/WdatePicker.js"></script>
    <!--#include file = "../Css/head.htm" -->
</head>
<body>
    <form id="Form1" method="post" runat="server">
        <div class="edit-func-box func-box">
            <div class="hd b">
                留言信息及回复管理&gt;
                <asp:Label ID="TimeLab" runat="server" Visible="false">留言时间：</asp:Label>
                <asp:Label ID="labTime" runat="server" Visible="false"></asp:Label>&gt;
                留言者IP：<asp:Label ID="IpLabel" runat="server"></asp:Label>
            </div>
            <div class="bd">
                <table class="edit-table" style="min-width: 750px; max-width: 980px">
                    <tbody>
                        <tr>
                            <th>标&emsp;题：
                            </th>
                            <td colspan="2">
                                <asp:TextBox ID="TitleTextBox" class="input-md w3" runat="server" notNull="true" msgName="标题" Width="422px"></asp:TextBox><font color="#ff0000">*</font>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TitleTextBox" ErrorMessage="标题不能为空">*</asp:RequiredFieldValidator>
                                 
                                <%--<label>
                                    <input id="isTop" runat="server" class="ace" type="checkbox" >
                                        <span class="lbl">固顶</span>
                                </label>--%>
                            </td>
                            <td>
                                <asp:CheckBox ID="isTop" runat="server" Text="固顶"></asp:CheckBox>&emsp;
                                <asp:TextBox ID="HomePageTextBox" runat="server" class="input-md w3" Style="display: none;">Http://</asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>姓&emsp;名：
                            </th>
                            <td>
                                <asp:TextBox ID="AuthorTextBox" class="input-md" 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>
                            <td>性&emsp;别：
                                <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:TextBox ID="TelTextBox" class="input-md" runat="server" notNull="true" msgName="联系方式"></asp:TextBox><font color="#ff0000">*</font>
                                <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TelTextBox" ErrorMessage="联系方式不能为空">*</asp:RequiredFieldValidator>--%>
                            </td>
                            <td>电子邮箱：
                                <asp:TextBox ID="EmailTextBox" class="input-md" runat="server" notNull="true" msgName="电子邮箱" CssClass="input-md"></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="96%" Height="100px" TextMode="MultiLine" CssClass="input-md" 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>
                            <td>浏览权限：
                                <asp:DropDownList ID="gate" runat="server" CssClass="input-md">
                                </asp:DropDownList>
                            </td>
                            <td>显示等级：
                                <asp:DropDownList ID="grade" runat="server" CssClass="input-md">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <asp:Panel ID="RePanlVerifycode" runat="server" Visible="true">
                            <tr>
                                <th>验证码：
                                </th>
                                <td colspan="3">
                                    <asp:TextBox ID="UserVerifyCode" runat="server" CssClass="input-md" notNull="true" msgName="验证码"></asp:TextBox>
                                    <img align="middle" src="../user/verifyimg.aspx" data-toggle="tooltip" data-placement="bottom" 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="96%" TextMode="MultiLine" Height="80px" CssClass="input-md" 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>
                                    <asp:TextBox ID="txtRedept" runat="server" CssClass="input-md" MaxLength="40"></asp:TextBox>
                                </td>
                                <td>
                                    回复时间：<asp:TextBox ID="txtRetime" runat="server" CssClass="input-md" MaxLength="19" onClick="WdatePicker({dateFmt:'yyyy/MM/dd HH:mm:ss'})" notNull="true" msgName="回复时间"></asp:TextBox>
                                </td>
                                <td><asp:CheckBox ID="IsEmail" runat="server" Text="Email邮件通知"></asp:CheckBox></td>
                            </tr>
                        </asp:Panel>
                    </tbody>
                </table>
            </div>
                <div class="text-center">
                    <asp:Button ID="Save" runat="server" CssClass="btn btn-sm btn-primary" Text="保 存" OnClientClick="return checkAllValidate();" OnClick="Save_Click"></asp:Button>&emsp;
                <input class="btn btn-sm btn-primary" type="reset" value="重 置" />&emsp;
                <%--<asp:Button ID="cancel" runat="server" CssClass="btn btn-sm btn-primary" Text="取 消" CausesValidation="False" OnClick="cancel_Click"></asp:Button>&emsp;--%>
                 <input type="button" class="btn btn-sm btn-primary" value="关 闭" onclick="parent.$.fancybox.close();" />&emsp;
                 <asp:Label ID="lbTip" runat="server" ForeColor="Red" Text=""></asp:Label>
                <asp:ValidationSummary ID="ValidationSummary1" Style="z-index: 101; left: 240px; position: absolute; top: 520px" runat="server" ShowMessageBox="True" ShowSummary="False"></asp:ValidationSummary>
                </div>
    </form>
    <!--#include file="../Css/foot.htm"-->
</body>
</html>
