<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="newsadd.aspx.cs" Inherits="jiaowu.news.newsadd" %>

<!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 href="../css/table.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            text-align: left;
        }
    </style>
    <link rel="stylesheet" href="../kindeditor/themes/default/default.css" />
	<link rel="stylesheet" href="../kindeditor/plugins/code/prettify.css" />
	<script charset="utf-8" src="../kindeditor/kindeditor.js"></script>
	<script charset="utf-8" src="../kindeditor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="../kindeditor/plugins/code/prettify.js"></script>
	<script>
	    KindEditor.ready(function (K) {
	        var editor1 = K.create('#txtcontent', {
	            cssPath: '../kindeditor/plug/ins/code/prettify.css',
	            uploadJson: '../kindeditor/upload_json.ashx',
	            fileManagerJson: '../kindeditor/file_manager_json.ashx',
	            allowFileManager: true,
	            afterCreate: function () {
	                var self = this;
	                K.ctrl(document, 13, function () {
	                    self.sync();
	                    K('form[name=form1]')[0].submit();
	                });
	                K.ctrl(self.edit.doc, 13, function () {
	                    self.sync();
	                    K('form[name=form1]')[0].submit();
	                });
	            }
	        });
	        prettyPrint();
	    });
	</script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
         <div class="place">
        <asp:SiteMapPath ID="SiteMapPath1" runat="server" Height="27px" Width="250px">
        </asp:SiteMapPath>
        </div>
    <table class="line_table">
                <tr>
                    <td class="style1">
                        <span lang="zh-cn">标题</span></td>
                    <td class="style1">
                        <asp:TextBox ID="txtTitle" runat="server" Width="204px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="txtTitle" ErrorMessage="标题名称不能为空！"></asp:RequiredFieldValidator>
                    </td>
                </tr>

                <tr>
                    <td class="style1">
                        <span lang="zh-cn">所属分类</span></td>
                    <td class="style1">
                        <asp:DropDownList ID="ddlbigclass" runat="server" AppendDataBoundItems="True" 
                            AutoPostBack="True" onselectedindexchanged="ddlbigclassid_SelectedIndexChanged">
                            <asp:ListItem Value="">请选择项目类型</asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList ID="ddlsmallclass" runat="server">
                            <asp:ListItem Value="">选择子项目类型</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        <span lang="zh-cn">内容</span></td>
                    <td class="style3" align="left">
                        <asp:TextBox ID="txtcontent" runat="server" TextMode="MultiLine" cols="100" rows="8" style="width:700px;height:200px;visibility:hidden;" runat="server"></asp:TextBox> 
                </tr>
                
                <tr>
                    <td align="center" colspan="2">
                        <asp:Button ID="Button1" runat="server" Text="添加" onclick="Button1_Click" />
                        <asp:Button ID="Button2" runat="server" Text="修改" Visible="false" 
                            onclick="Button2_Click"/>
                        <input id="Reset1" type="reset" value="重置" /><asp:Label ID="labmsg" runat="server" 
                            Text=""></asp:Label>
                    </td>
                </tr>
            </table>
    </div>
    </form>
</body>
</html>
