<%@ Page Language="C#" AutoEventWireup="true" Inherits="News" Codebehind="AddNews.aspx.cs" %>
<%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>

<!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">
<Link href="style.css" rel=stylesheet />

    <title>添加新闻</title>
</head>
<body style="font-family: Times New Roman">
    <form id="form1" runat="server">
    <div align="center">
        <table border="0" cellpadding="0" cellspacing="0" style="border-right: #cccccc 1px solid;
            border-top: #cccccc 1px solid; border-left: #cccccc 1px solid; width: 760px;
            border-bottom: #cccccc 1px solid">
            <tr>
                <td bgcolor="#cccccc" style="height: 15px">
                     --- <a href="AddNews.aspx?Action=Add"><span style="font-family: Times New Roman">
                        新闻(添加)管理</span></a>  --- <a href="Class.aspx?Action=Logout"><span style="font-family: Times New Roman">
                            退出后台</span></a></td>
            </tr>
            <tr style="font-family: Times New Roman">
                <td style="height: 14px">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                        <tr>
                            <td align="right" style="width: 157px; height: 24px">
                                标题：</td>
                            <td align="left" style="height: 24px">
                                <asp:TextBox ID="tbx_title" runat="server" Width="487px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td align="right" style="width: 157px; height: 24px">
                                作者：</td>
                            <td align="left" style="height: 24px">
                                <asp:TextBox ID="tbx_author" runat="server" Text="51aspx"></asp:TextBox>
                                <asp:DropDownList ID="ddl_class" runat="server">
                                </asp:DropDownList>
                                <asp:Label ID="lbl_addtime" runat="server" Visible="False"></asp:Label></td>
                        </tr>
                        <tr>
                            <td align="right" style="width: 157px">
                                内容：</td>
                            <td align="left">
                            	<CE:EDITOR id="Editor1" runat="server" EditorWysiwygModeCss="~/WebEditor/example.css" Width="100%"
							Height="180px" AutoConfigure="Simple">
							<FrameStyle Height="90%" BorderWidth="1px" BorderStyle="Solid" BorderColor="#DDDDDD" Width="100%"
								CssClass="CuteEditorFrame" BackColor="White"></FrameStyle>
						</CE:EDITOR>
                                </td>
                        </tr>
                        <tr>
                            <td align="right" style="width: 157px">
                            </td>
                            <td align="Center">
                                <asp:Button ID="btn_value" runat="server" Text="Button" OnClick="Button1_Click" Height="33px" Width="87px" /></td>
                        </tr>
                    </table>
                    <asp:Label ID="message" runat="server" Font-Size="Small" ForeColor="Red" Visible="False"></asp:Label></td>
            </tr>
            <tr style="font-family: Times New Roman">
                <td>
                   <asp:Repeater ID="rpCalss" runat="server">
                       <ItemTemplate>
                       | <a href='AddNews.aspx?classid=<%# DataBinder.Eval(Container.DataItem,"BigClassID") %>&Action=Add'><%# DataBinder.Eval(Container.DataItem,"BigClassName") %></a>
                       </ItemTemplate>
                   </asp:Repeater>
 
                </td>
            </tr>
            <tr style="font-family: Times New Roman">
                <td style="height: 15px">
                    <asp:GridView ID="gv_news" DataKeyNames="ID" runat="server" AutoGenerateColumns="False" CellPadding="4"
                        ForeColor="#333333" GridLines="None" Width="100%" OnRowDeleting="gv_news_RowDeleting">
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:BoundField DataField="ID" HeaderText="编号" />
                            <asp:BoundField DataField="BigCLassName" HeaderText="类别" />
                            <asp:TemplateField HeaderText="标题">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Title") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("Title") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Left" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="ReadCishu" HeaderText="阅读次数" />
                            <asp:TemplateField HeaderText="编辑">
                                <ItemTemplate>
                                    <a href='AddNews.aspx?id=<%# Eval("ID")%>&Action=Edit'>编辑</a>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField />
                            <asp:CommandField ShowDeleteButton="True" />
                        </Columns>
                        <RowStyle BackColor="#EFF3FB" />
                        <EditRowStyle BackColor="#2461BF" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
            <tr style="font-family: Times New Roman">
                <td bgcolor="#cccccc" style="height: 15px">
                    Copyright 某居委会</td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
