<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="announcement_edit.aspx.cs" Inherits="JRAPI.Admin.announcement.announcement_edit" ValidateRequest="false"%>
<%@ Register src="../Controls/SubPageTop.ascx" tagname="SubPageTop" tagprefix="uc1" %>
<uc1:SubPageTop ID="SubPageTop1" runat="server" />
<body>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='announcement_list.aspx' ><em>新闻管理</em></a><span>|</span><a href='javascript:;' class="on"><em>添加新闻</em></a>    </div>
</div>
<style type="text/css">
	html{_overflow-y:scroll}
</style><script type="text/javascript">
<!--
            $(function () {
                $.formValidator.initConfig({ autotip: true, formid: "myform", onerror: function (msg) { } });
                $("#txtAnnounceTitle").formValidator({ onshow: "请输入新闻标题", onfocus: "新闻标题应该为2-50位之间" }).inputValidator({ min: 2, max: 50, onerror: "新闻标题应该为2-50位之间" });
                $("#txtAnnounceAdmin").formValidator({ onshow: "请输入发布人", onfocus: "发布人应该为2-30位之间" }).inputValidator({ min: 2, max: 20, onerror: "发布人应该为2-30位之间" });
            })
//-->
</script>
<div class="pad_10">
<div class="common-form">
<form runat="server" id="myform">
<table width="100%" class="table_form contentWrap">
<tr>
<td width="80">新闻标题</td> 
<td><asp:TextBox ID="txtAnnounceTitle" runat="server" CssClass="input-text" Columns="50"></asp:TextBox></td>
</tr>
<tr>
<td width="80">新闻类型</td> 
<td>
    <asp:DropDownList ID="dpdAnnounceType" runat="server">
    </asp:DropDownList>
</td>
</tr>
<tr>
<td>新闻内容</td> 
<td><asp:TextBox ID="txtAnnounceBody" runat="server" CssClass="input-text" 
        Height="223px" TextMode="MultiLine" Width="586px"></asp:TextBox>
<script type="text/javascript" src="../statics/js/ckeditor/ckeditor.js"></script><script type="text/javascript">
                                                                                     CKEDITOR.replace('txtAnnounceBody', { height: 200, pages: false, subtitle: false, textareaid: 'content', module: '', catid: '', toolbar:
[['Source'], ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink', 'Image', 'Table'], ['Maximize'], '/', ['Styles', 'Format', 'Font', 'FontSize'], ['TextColor', 'BGColor'], ]
                                                                                     });
</script>
</td>
</tr>
<tr>
<td>发布人</td>
<td>
<asp:TextBox ID="txtAnnounceAdmin" runat="server" CssClass="input-text" Columns="50"></asp:TextBox>
</td>
</tr>

</table>
    <div class="bk15"></div>
<asp:Button ID="btnSubmit" runat="server" Text="提交" CssClass="button" 
    onclick="btnSubmit_Click"  />
</form>
</div>
</div>
</body>
</html>

