<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Defult.Master" AutoEventWireup="true" CodeBehind="NewsEdit.aspx.cs" Inherits="Maticsoft.Web.Admin.NewsEdit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <link rel="stylesheet" href="../kindeditor-4.1.7/themes/default/default.css" />
	<link rel="stylesheet" href="../kindeditor-4.1.7/plugins/code/prettify.css" />
	<script charset="utf-8" src="../kindeditor-4.1.7/kindeditor.js"></script>
	<script charset="utf-8" src="../kindeditor-4.1.7/lang/zh_CN.js"></script>
	<script charset="utf-8" src="../kindeditor-4.1.7/plugins/code/prettify.js"></script>
    <script src="../Scripts/My97Date/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
        KindEditor.ready(function (K) {
            var editor1 = K.create('#ctl00_ContentPlaceHolder1_jianjie', {
                cssPath: '../kindeditor-4.1.7/plugins/code/prettify.css',
                uploadJson: '../kindeditor-4.1.7/asp.net/upload_json.ashx',
                fileManagerJson: '../kindeditor-4.1.7/asp.net/file_manager_json.ashx',
                allowFileManager: true,
                //下面这行代码就是关键的所在，当失去焦点时执行 this.sync()，否则取不到值;
                afterBlur: function () { this.sync(); }
            });
        });
    </script>

    <div class="page-content">
        <div class="page-header">
            <h1>
                添加/修改文章
            </h1>
        </div>
        <div class="row">
            <div class="Content">
                <!-- PAGE CONTENT BEGINS -->
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">
                        新闻标题：
                    </label>
                    <div class="col-sm-9">
                        <input type="text" id="fid" maxlength="30" class="col-xs-10 col-sm-5" runat="server" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">
                        关键词：</label>
                    <div class="col-sm-9">
                        <div class="clearfix">
                            <input class="col-xs-10 col-sm-5" maxlength="50" type="text" id="sid" runat="server" placeholder="多个词之间用逗号“,”分隔，如“a,b,c,d”" />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">
                        文章分类：</label>
                    <div class="col-sm-9">
                        <div class="clearfix">
                            <asp:DropDownList ID="DropDownList1" runat="server" class="chosen-drop">
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">
                        新闻内容：</label>
                    <div class="col-sm-9">
                        <div class="clearfix">
                            <textarea id="jianjie" name="jianjie" rows="30" cols="140" runat="server"></textarea>
                        </div>
                    </div>
                </div>
                <div style="clear: both">
                </div>
                <div class="clearfix form-actions">
                    <div class="col-md-offset-3 col-md-9">
                        <button class="btn btn-info" runat="server" id="submitButton" onserverclick="submitButton_Click">
                            <i class="icon-ok bigger-110"></i>提交
                        </button>
                        &nbsp; &nbsp; &nbsp;
                        <button class="btn" type="reset">
                            <i class="icon-undo bigger-110"></i>重置
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="otherjquery" runat="server">
</asp:Content>
