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

<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>

<%@ 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 runat="server">
    <title>新增邮件</title>
    <link type="text/css" rel="Stylesheet" href="css/index.css" />
</head>
<body style="padding:0; background-image: url(images/Bg_right.gif); background-repeat:repeat;">
    <form id="form1" runat="server">
           
        <div class="navigator"><asp:Label ID="LabelPageTitle" runat="server" Font-Bold="True" Text="【 新增邮件 】"></asp:Label></div>
        <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
            <tr>
                <td align="right" >
                    <asp:Label ID="LabelType" runat="server" Text="邮件类别："></asp:Label>
                </td>
                <td align="left" >
                    <asp:DropDownList ID="DropDownListType" runat="server" Width="304">
                    </asp:DropDownList>
                            <asp:Label ID="Label1" runat="server" Text="*" ForeColor="red"></asp:Label>
                    <asp:CompareValidator ID="CompareValidatorType" runat="server" 
                            ControlToValidate="DropDownListType" Display="Dynamic" ErrorMessage="该值必需选择" 
                            Operator="NotEqual" ValueToCompare="-1" Width="200"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="LabelTitle" runat="server" Text="邮件标题："></asp:Label>
                </td>
                <td align="left" class="style2">
                    <asp:TextBox ID="TextBoxTitle" runat="server" Width="300"></asp:TextBox>
                            <asp:Label ID="Label2" runat="server" Text="*" ForeColor="red"></asp:Label>
                            <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="LabelNameRemark" runat="server" Text="邮件内容："></asp:Label>
                </td>
                <td align="left" >
                    <FCKeditorV2:FCKeditor ID="FCKeditorRemark" runat="server" Height="300px" 
                        Width="80%">
                    </FCKeditorV2:FCKeditor>
                            <asp:Label ID="Label3" runat="server" Text="*" ForeColor="red"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorRemark" 
                            runat="server" ControlToValidate="FCKeditorRemark" Display="Dynamic" 
                            ErrorMessage="该值不能为空" EnableClientScript="False"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
    
                    <asp:Label ID="LabelDescription" runat="server" Text="邮件描述："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxDescription" runat="server" TextMode="MultiLine" Width="80%" Height="120"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" 
                        runat="server" ControlToValidate="TextBoxTitle" Display="Dynamic" 
                        ErrorMessage="标题最多100个字符" ValidationExpression="^[\s\S]{0,100}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
    
                    &nbsp;</td>
                <td align="left" >
                    &nbsp;</td>
            </tr>
            <tr style="background-color:#EEEEEE;" class="btconfig">
             <td align="right" >
    
                 &nbsp;</td>
                <td align="left" >
                     <div class="vote">
        <asp:Button ID="ButtonConfirm" runat="server" onclick="ButtonConfirm_Click" Text="确定" 
              cssclass="bt2"  ToolTip="Submit" />
                         <input ID="inputReset" runat="server"  type="reset" value="重置"  class="bt2"/>
                         <a href="Email_List.aspx"><img src="images/back.png" border="0" align="top" /></a>
                         <uc1:MessageShow ID="MessageShow" runat="server" Visible="False" />
    
                     </div>
                </td>  
            </tr>
        </table>
  


                    <asp:HiddenField ID="hiddenFieldGuid" runat="server" Value="0" />


    </form>
</body>
</html>
