<%@ page language="C#" autoeventwireup="true" inherits="Admin_Message_Operate, GroupTGWeb_deploy" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Src="UserControl/MemberSelect.ascx" TagName="MemberSelect" TagPrefix="uc1" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="uc1" %>
<!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 id="Head1" runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
        .content
        {
        }
        .content .contentHeader
        {
            background-color: #BCC7E0;
            border: solid 1px #4B66A5;
            font-weight: bold;
        }
        .content .contentMain
        {
            border-left: solid 1px #4B66A5;
            border-top: solid 0px #4B66A5;
            border-right: solid 1px #4B66A5;
            border-bottom: solid 1px #4B66A5;
        }
    </style>
    <link type="text/css" rel="Stylesheet" href="css/index.css" />

    <script type="text/javascript">
    var number =2;
    function change_option(index)
    {
        for (var i = 1; i <= number; i++) 
        {
          document.getElementById('current' + i).className = '';
          document.getElementById('content' + i).style.display = 'none';
        }
        document.getElementById('current' + index).className = 'current';
        document.getElementById('content' + index).style.display = 'block';
    }


    </script>

</head>
<body style="padding: 0; background-image: url(images/Bg_right.gif); background-repeat: repeat;">
    <form id="form1" runat="server">
    <div style="text-align: center;">
        <div id="header" style="padding-left: 20px">
            <ul>
                <li id="current1" class="current"><a style="cursor: pointer;" onclick="change_option(1);">
                    <asp:Label runat="server" ID="tab01" Text="消息内容" /></a></li>
                <li id="current2"><a style="cursor: pointer;" onclick="change_option(2);">
                    <asp:Label runat="server" ID="tab02" Text="发送对象" /></a></li>
            </ul>
            <br style="clear: both;" />
        </div>
        <!--**************************活动信息************************** -->
        <div id="content1" runat="server">
            <!-- 基本信息-->
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                    <td align="right" width="20%">
                        <asp:Label ID="LabelTitle" runat="server" Text="消息标题："></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="TextBoxTitle" runat="server" CssClass="input2"></asp:TextBox>
                        <font color="red">
                            <asp:Label ID="Label1" runat="server" Text="*"></asp:Label>
                        </font>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorTitle" runat="server" ControlToValidate="TextBoxTitle"
                            Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorTitle" runat="server"
                            ControlToValidate="TextBoxTitle" Display="Dynamic" ErrorMessage="标题最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="LabelType" runat="server" Text="消息类型："></asp:Label>
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="DropDownListType" runat="server" CssClass="select2">
                        </asp:DropDownList>
                        <font color="red">
                            <asp:Label ID="Label2" runat="server" Text="*"></asp:Label></font>
                        <asp:CompareValidator ID="CompareValidatorType" runat="server" ControlToValidate="DropDownListType"
                            Display="Dynamic" ErrorMessage="该值必需选择" Operator="NotEqual" ValueToCompare="-1"></asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="LabelContent" runat="server" Text="消息内容："></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="TextBoxContent" runat="server" TextMode="MultiLine" Width="300"
                            Height="62"></asp:TextBox>
                        <font color="red">
                            <asp:Label ID="Label3" runat="server" Text="*"></asp:Label>
                        </font>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorContent" runat="server" ControlToValidate="TextBoxTitle"
                            Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        <br />
                    </td>
                </tr>
            </table>
        </div>
        <br />
        <!-- **************************发送对象************************** -->
        <%--<div id="content2" runat="server" align="left">--%>
        <div id="content2" runat="server" style="display: none;">
            <uc1:MemberSelect ID="MemberSelect2" runat="server" />
        </div>
        <div style="background-color: #EEEEEE; height: 22px" class="btconfig">
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                    <td align="right" width="20%">
                    </td>
                    <td align="left">
                        <asp:Button ID="ButtonConfirm" runat="server" Text="确定" OnClick="ButtonConfirm_Click"
                            ToolTip="Submit" CssClass="bt2" />
                        <input id="inputReset" runat="server" type="reset" value="重置" onclick="return inputReset_onclick()"
                            class="bt2" />
                        <a href="SendMessage_List.aspx">
                            <img src="images/back.png" border="0" align="top" /></a>
                        <uc1:MessageShow ID="MessageShow" runat="server" Visible="False" />
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
