<%@ page language="C#" autoeventwireup="true" inherits="admin_news_edit, s1.chapk.com" validaterequest="false" %>
<%@ Register Assembly="YangControls" Namespace="YangControls" TagPrefix="yyc" %>

<!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>
    <title>新闻编辑</title>
        <link rel="stylesheet" href="../css/table.css" type="text/css" media="all" />
<script charset="utf-8" src="../editor/kindeditor-min.js"></script>
<script charset="utf-8" src="../editor/lang/zh_CN.js"></script>
<script>
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('textarea[name="s_details"]', {
					resizeType : 1,
					allowPreviewEmoticons : false,
					allowImageUpload : false,
					items : [
						'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'emoticons', 'image', 'link']
				});
			});
</script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="my_alt">新闻编辑<asp:Label ID="msg" runat="server" ForeColor="Red"></asp:Label></div>
        <table cellpadding="0" cellspacing="0" border="0" width="100%" class="tb">
            <tr>
                <td class="tl">标题：</td>
                <td class="tr"><asp:TextBox ID="s_mc" runat="server" Width="500px"></asp:TextBox>长度为200个字符<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入标题" ControlToValidate="s_mc"></asp:RequiredFieldValidator></td>
            </tr>        
            <tr>
                <td class="tl">类别：</td>
                <td class="tr">
                    <yyc:YangDropDownList ID="s_lb" runat="server"></yyc:YangDropDownList></td>
                </tr>
            <tr>
                <td class="tl">来源：</td>
                <td class="tr">
                    <script language="javascript">
function showtext(strs)
{
	document.getElementById("s_ly").value=strs;
}
                    </script>

                    <asp:TextBox ID="s_ly" runat="server" Text="本站"></asp:TextBox>
                    <a href="#" onclick="showtext('本站')">本站</a> <a href="#" onclick="showtext('网络')">网络</a>
                    <a href="#" onclick="showtext('原创')">原创</a> <a href="#" onclick="showtext('转载')">转载</a>
                    <a href="#" onclick="showtext('投稿')">投稿</a>                
                </td>
            </tr>
            <tr>
                <td class="tl">内容：</td>
                <td class="tr">
<textarea id="s_details" runat="server" name="s_details" style="width:700px;height:300px;"></textarea>

            </tr>   
            <tr>
                <td class="tl">文章属性：</td>
                <td class="tr">
                    <asp:CheckBox ID="home" runat="server" Text="置顶" /><asp:CheckBox ID="recommend" runat="server" Text="推荐" /></td>
                </tr>                        
            <tr>
                <td class="tl"></td>
                <td class="tr"><asp:Button ID="btn_ok" runat="server" Text=" 保存 " OnClick="btn_ok_Click" />
                <asp:Label id="LAB_ID" runat="server" Visible="False"></asp:Label>
	   <asp:Label id="LAB_STATE" runat="server" Visible="False">1</asp:Label></td>
            </tr>
        </table>
    </form>
</body>
</html>
