<%@ page language="C#" autoeventwireup="true" validaterequest="false" inherits="Admins_New, App_Web_gnqjln3d" enableviewstatemac="false" %>

<%@ Register Src="../Controls/UCType.ascx" TagName="UCType" TagPrefix="uc1" %>
<%@ Register Src="../Controls/UCFileUpload.ascx" TagName="UCFileUpload" TagPrefix="uc2" %>
<!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>
    <link href="images/main.css" rel="stylesheet" type="text/css" />
    
            <%--KindEditor--%>
    <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>
	    //txtContentCN
	    KindEditor.ready(function(K) {
	    //editor1
	    var editor1 = K.create('#txtContentCN', {
			cssPath: '../kindeditor/plugins/code/prettify.css',
			uploadJson: '../kindeditor/Tools/upload_json.ashx',
			fileManagerJson: '../kindeditor/Tools/file_manager_json.ashx',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
				}
            });
            //editor2
            var editor2 = K.create('#txtContentUS', {
                cssPath: '../kindeditor/plugins/code/prettify.css',
                uploadJson: '../kindeditor/Tools/upload_json.ashx',
                fileManagerJson: '../kindeditor/Tools/file_manager_json.ashx',
                allowFileManager: true,
                afterCreate: function() {
                    var self = this;
                    K.ctrl(document, 13, function() {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                    K.ctrl(self.edit.doc, 13, function() {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                }
            });
			prettyPrint();
		});
	</script>
	<%--KindEditor--%>
	
	<%--Message--%>
    <link href="images/msg.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>

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

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

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

    <script type="text/javascript">
        $(function() {
            //表单验证JS
            $("#form1").validate({
                //出错时添加的标签
                errorElement: "span",
                success: function(label) {
                    //正确时的样式
                    label.text(" ").addClass("success");
                }
            });
        });
    </script>

    <%--Message--%>

</head>
<body>
    <form id="form1" runat="server">
    <table align="center" border="0" cellpadding="3" cellspacing="1" width="100%">
        <tbody>
            <tr>
                <td class="td_title" colspan="3" height="25">
                    新闻管理
                </td>
            </tr>
            <tr class="tr1" onmouseover="this.className='tr2'" onmouseout="this.className='tr1'">
                <td align="right" style="width: 150px;">
                    标题：
                </td>
                <td>
                    <asp:TextBox ID="txtNewsNameCN" runat="server" Width="350px" MaxLength="100" CssClass="input required"
                        HintTitle="新闻标题-中文版" HintInfo="请填写信息名称，至少1个字符，小于50个字符。"></asp:TextBox>
                    （中文版）<br />
                    <asp:TextBox ID="txtNewsNameUS" runat="server" Width="350px" MaxLength="100" CssClass="input required"
                        HintTitle="新闻标题-英文版" HintInfo="请填写信息名称，至少1个字符，小于50个字符。"></asp:TextBox>
                    （英文版）
                </td>
            </tr>
            <tr class="tr1" onmouseover="this.className='tr2'" onmouseout="this.className='tr1'">
                <td align="right">
                    属性：
                </td>
                <td>
                    新闻类型：<uc1:UCType ID="ddlNewsType" runat="server" Type="New" CssClass="required" />
                    &nbsp; 新闻来源：<uc1:UCType ID="ddlSource" runat="server" Type="Source"  CssClass="required"/>&nbsp; <asp:CheckBox ID="chkViewFlag" runat="server" Text="是否启用" Checked="true" Visible="false" />
                    &nbsp;<asp:CheckBox ID="chkIsHot" runat="server" Text="热点新闻" Checked="true"  Visible="false"/>
                </td>
            </tr>
            <tr class="tr1" onmouseover="this.className='tr2'" onmouseout="this.className='tr1'" style="display:none;">
                <td align="right">
                    点击数量：
                </td>
                <td>
                    <asp:TextBox ID="txtClickNumber" runat="server" Width="100px" MaxLength="5"></asp:TextBox>
                </td>
            </tr>
            <tr class="tr1" onmouseover="this.className='tr2'" onmouseout="this.className='tr1'"  style="display:none;">
                <td align="right">
                    新闻图片：
                </td>
                <td>
                    <uc2:UCFileUpload ID="UCFileUpload1" runat="server" />
                </td>
            </tr>
            <tr class="tr1" onmouseover="this.className='tr2'" onmouseout="this.className='tr1'" style="display:none;">
                <td align="right">
                    摘要：
                </td>
                <td>
                    <asp:TextBox ID="txtIntroductionCN" runat="server" Width="350px" TextMode="MultiLine" MaxLength="250"></asp:TextBox>（中文版）<br />
                    <asp:TextBox ID="txtIntroductionUS" runat="server" Width="350px" TextMode="MultiLine" MaxLength="250"></asp:TextBox>（英文版）
                </td>
            </tr>
            <tr class="tr1" onmouseover="this.className='tr2'" onmouseout="this.className='tr1'">
                <td align="right">
                    内容：
                </td>
                <td>
<textarea id="txtContentCN" cols="100" rows="8" style="width:680px;height:400px;visibility:hidden;" runat="server"></textarea>（中文版）<br/>
 <textarea id="txtContentUS" cols="100" rows="8" style="width:680px;height:400px;visibility:hidden;" runat="server"></textarea>（英文版）

                </td>
            </tr>
            <tr>
                <td colspan="2" style="padding-left: 300px;">
                    <asp:Button ID="btn_Save" CssClass="submit" runat="server" Text=" 保 存 " OnClick="btn_Save_Click" />&nbsp;<input
                        id="Reset1" type="reset" value=" 清 空 " class="submit" />
                </td>
            </tr>
        </tbody>
    </table>
    </form>
</body>
</html>
