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

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ShopNum1" %>

<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" tagprefix="uc1" %>

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

<!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" />
    <link href="../css/Num1GridView.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" language="javascript" src="../js/CommonJS.js"></script>
   <script type="text/javascript">
    //选择单图
   function openSingleChild()
    { 
        var k = window.showModalDialog("Image_List_Select.aspx",window,"dialogWidth:820px;status:no;dialogHeight:650px"); 
        if(k != null) 
        {
          var strLen=k.length;
          var lastIndex=k.lastIndexOf('/');
           var editor = FCKeditorAPI.GetInstance('FCKeditorReMark'); 
           {
             editor.InsertHtml("<img src='/" + k + "'>");
           }
        }
    } 
     </script>
</head>
<body style="padding:0; background-image: url(images/Bg_right.gif); background-repeat:repeat;font-size:12px">
    <form id="form1" runat="server">
         <div class="navigator"><asp:Label ID="LabelPageTitle" runat="server" Text="【 新增公告 】"></asp:Label></div>
        <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
 
            <tr>
                <td align="right" >
                    &nbsp;</td>
                <td align="left" >
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="LabelTitle" runat="server" Text="公告标题："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxTitle" runat="server" Width="200"></asp:TextBox>
                    <font style="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="RegularExpressionValidatorT" 
                        runat="server" ControlToValidate="TextBoxTitle" Display="Dynamic" 
                        ErrorMessage="标题最多35个字符" ValidationExpression="^[\s\S]{0,35}$"></asp:RegularExpressionValidator>
                        </td>
            </tr>
            <tr>
                <td align="right" >
    
                    <asp:Label ID="LabelRemark" runat="server" Text="公告内容："></asp:Label>
                </td>
                <td align="left" >
                   <input id="ButtonSelectSingleImage" 
                    type="button" value="插入图片" class="bt3" onclick= "openSingleChild()"  /><FCKeditorV2:FCKeditor ID="FCKeditorReMark" runat="server" Height="400px" Width="80%">
                    </FCKeditorV2:FCKeditor>
                               <font style="color:Red">
                            <asp:Label ID="Label2" runat="server" Text="*"></asp:Label></font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorRemark" 
                            runat="server" ControlToValidate="FCKeditorReMark" Display="Dynamic" 
                            ErrorMessage="该值不能为空" EnableClientScript="False"></asp:RequiredFieldValidator>
                        </td>
            </tr>
            <tr>
                <td align="right" >
         <ShopNum1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"  EnableScriptGlobalization="True" EnableScriptLocalization="True"/>
                    <asp:Label ID="LabelCreateTime" runat="server" Text="发布时间："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxCreateTime" runat="server" Width="200"></asp:TextBox>
                            <font style="color:Red">
                               <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server"
                                    ControlToValidate="TextBoxCreateTime" Display="Dynamic" ErrorMessage="时间格式不正确" ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                                  <img id="imgCreateTime" alt="" src="images/Calendar.png" style="width: 16px;
                                    height: 18px;" align="absmiddle" />
                                    <ShopNum1:CalendarExtender    ID="CalendarExtender3" runat="server" TargetControlID="TextBoxCreateTime" PopupButtonID="imgCreateTime" CssClass="ajax__calendar"></ShopNum1:CalendarExtender>
                            <asp:Label ID="Label3" runat="server" Text="*"></asp:Label></font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorCreateTime" 
                            runat="server" ControlToValidate="TextBoxCreateTime" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        </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 style="width:60%;">
        <asp:Button ID="BottonConfirm" runat="server" onclick="ButtonConfirm_Click" Text="确定" 
        ToolTip="Submit"  CssClass="bt2"/>
                         <input ID="inputReset" runat="server"  type="reset" value="重置"  class="bt2"/>
                         <a href="Announcement_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>
