<%@ page language="C#" autoeventwireup="true" validaterequest="false" inherits="Admin_newsedit, App_Web_gqabgzwv" enableEventValidation="false" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="Validators" Namespace="Sample.Web.UI.Compatibility" TagPrefix="cc1" %>
<!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/style.css" rel="stylesheet" type="text/css" />
      <script type="text/javascript" src="../js/lib.js"></script>

    <link href="../Admin/css/Layer.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server" onsubmit="MyObject.UpdateEditorFormValue(); return true;">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div style="width:720px;">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        
                        <tr>
                            <td>
                                <table width="100%" border="0" cellpadding="2" cellspacing="2">
                                    <tr>
                                        <td align="right">
                                            新闻标题：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="tbxNewsTitle" runat="server" Width="300px"></asp:TextBox>
                                            <cc1:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxNewsTitle"
                                                Display="None" ErrorMessage="信息标题不能为空" SetFocusOnError="True" ValidationGroup="content"></cc1:RequiredFieldValidator></td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            新闻内容：
                                        </td>
                                        <td>
                                            <fckeditorv2:fckeditor id="FCKeditor1" runat="server" toolbarset="Defaults" Width="580px"></fckeditorv2:fckeditor>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            作者：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="tbxNewsAuthor" runat="server"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            来源：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="tbxNewsFrom" runat="server"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            链接地址：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="tbxNewsUrl" runat="server" Width="300px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            是否显示在首页：
                                        </td>
                                        <td>
                                            <asp:CheckBox ID="chkNewsIsIndex" runat="server" Text="在首页显示" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            最新/热门：
                                        </td>
                                        <td>
                                            <asp:CheckBox ID="chkNewsIsNew" runat="server" Text="最新新闻" />(<asp:Image ID="Image1"
                                                runat="server" Height="11px" ImageUrl="~/Images/new.gif" Width="28px" />) &nbsp;
                                            &nbsp; &nbsp;&nbsp;
                                            <asp:CheckBox ID="chkNewsIsHot" runat="server" Text="热门新闻" />(<asp:Image ID="Image2"
                                                runat="server" Height="11px" ImageUrl="~/Images/hot.gif" Width="11px" />)</td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                        <td>
                                           
                                            <asp:Button ID="btnUpdate" runat="server" Text="保存" OnClick="btnUpdate_Click" ValidationGroup="content" />
                                            
                                            <asp:HiddenField ID="hideNewsID" runat="server" />
                                        </td>
                                    </tr>
                                </table>
                                <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server"
                                    TargetControlID="RequiredFieldValidator1">
                                </ajaxToolkit:ValidatorCalloutExtender>
                            </td>
                        </tr>
                    </table>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
