<%@ page language="C#" autoeventwireup="true" inherits="SysManage_AfficheAddEFRM, App_Web_imj1v1td" stylesheettheme="Themes" theme="Themes" validaterequest="false" %>

<%@ 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 id="Head1" runat="server">
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <script type="text/javascript" src="../Js/jquery.js"></script>

    <script type="text/javascript" src="../Js/jquery.pngFix.pack.js"></script>

    <script type="text/javascript" src="../Js/WebValidator.js"></script>

    <script type="text/javascript" src="../Js/InterfaceContrl.js"></script>

    <script language="javascript" type="text/javascript" src="../datepicker/WdatePicker.js"></script>
            <script src="../js/artDialog3/artDialog.min.js"></script>
      <script>          (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>
    <style type="text/css">
        #innav
        {
            padding-left: 50px;
            color: #d38e0c;
        }
        #innav A
        {
            color: #d38e0c;
        }
        .style1
        {
            width: 16%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table cellpadding="0" cellspacing="0" class="table_box">
        <tr>
            <td class="right_bg">
                <span class="right_title">
                    <img src="../Images/homen.gif" class="img_style" />
                    您的当前位置：公告管理 > 通知公告</span>
            </td>
        </tr>
        <tr>
            <td class="r_top_box">
                <table cellspacing="0" cellpadding="5" class="r_top_title_box">
                    <tr>
                        <td align="right">
                            <asp:Button ID="btnSave" runat="server" Text="保 存" OnClick="btnSave_Click" />
                            <asp:Button ID="btnReturn" runat="server" Text="返 回" OnClick="btnReturn_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="margintop5">
                <table border="0" cellpadding="5" cellspacing="1" width="100%" style="font-size: 12px;"
                    class="table_notitle">
                    <tr>
                        <td bgcolor="#ffffff" height="30" align="right" class="td01">
                            <span style="color: Red">*</span> 公告标题： 
                        </td>
                        <td bgcolor="#ffffff" height="30" width="*" align="left">
                            <asp:TextBox ID="txtTitle" runat="server" Width="317px" MaxLength="25"></asp:TextBox>
                           
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#ffffff" height="30" align="right" class="td01">
                            发布人：
                        </td>
                        <td bgcolor="#ffffff" height="30" width="*" align="left">
                            <asp:Label ID="txtPublisher" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#ffffff" height="30" align="right" class="td01">
                            <span style="color: Red">*</span> 到期时间：
                        </td>
                        <td bgcolor="#ffffff" height="30" width="*" align="left">
                            <input id="txtMatureTime" name="txtMatureTime" style="width: 100px;" class="txt"
                                runat="server" type="text" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
                            
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#ffffff" height="25" align="right" class="td01">
                            公告概述：
                        </td>
                        <td bgcolor="#ffffff" height="25" width="*" align="left">
                            <asp:TextBox ID="txtRemark" runat="server" MaxLength="250" Width="317px" TextMode="MultiLine"
                                Rows="5" Height="132px"></asp:TextBox>
                            <span style="color: Red">限250字</span>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#ffffff" height="25" align="right" class="td01">
                           <span style="color: Red">*</span> 公告内容：
                        </td>
                        <td bgcolor="#ffffff" height="25" width="*" align="left">
                            <FCKeditorV2:FCKeditor ID="txtContent" runat="server" BasePath="../Edit/" Height="250px">
                            </FCKeditorV2:FCKeditor>
                            
                        </td>
                    </tr>
                </table>

                <script type="text/javascript" language="javascript">
                    $(document).ready(function() {
                        Validator();
                    });
                    function Validator() {
                        $('#<%= btnSave.ClientID %>').bind('click', function() {
                            ValidatorEmpty($("#<%=txtTitle.ClientID%>"), "公告标题");

                            ValidatorEmpty($("#<%=txtMatureTime.ClientID%>"), "到期时间");
//                            ValidatorEmpty($("#<%=txtRemark.ClientID%>"), "公告概述");

                            return GetValidatorMessage(); //\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
                        });
                        $('#<%= txtRemark.ClientID %>').textlimit(250);
                    }
                               
                </script>

            </td>
        </tr>
    </table>
    </form>
</body>
</html>
