<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" ValidateRequest="false" AutoEventWireup="true" CodeBehind="soulViewManager.aspx.cs" Inherits="LoveWeb.Admin.soulViewManager" %>

<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>


   <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>详细文章修改、编辑</h1>
    <div>
     <div style="width: 650px">
                <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
                    DataSourceID="objView" Height="359px" Width="667px" CellPadding="3" 
                    BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" 
                    BorderWidth="1px" AutoGenerateDeleteButton="True" 
                    GridLines="Horizontal" DataKeyNames="Arti_id">
                    <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                    <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                    <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                    <Fields>
                        <asp:BoundField DataField="Arti_id" HeaderText="文章编号" 
                            SortExpression="Arti_id" ReadOnly="True" />
                        <asp:BoundField DataField="Arti_title" HeaderText="文章标题" 
                            SortExpression="Arti_title" />
                        <asp:BoundField DataField="Arti_contents" HeaderText="文章内容" 
                            SortExpression="Arti_contents" />
                        <asp:BoundField DataField="Arti_time" HeaderText="发表时间" 
                            SortExpression="Arti_time" />
                        <asp:BoundField DataField="Username" HeaderText="作者" 
                            SortExpression="Username" />
                        <asp:BoundField DataField="Arti_cotename" HeaderText="类型" 
                            SortExpression="Arti_cotename" />
                        <asp:CommandField ShowEditButton="True" />
                    </Fields>
                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                    <EditRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                    <AlternatingRowStyle BackColor="#F7F7F7" />
                </asp:DetailsView>
                <asp:ObjectDataSource ID="objView" runat="server" 
                    SelectMethod="GetArtiById" TypeName="LoveBLL.ArticleManager" 
                    DataObjectTypeName="Models.Article" DeleteMethod="DelArti" InsertMethod="AddArti" 
                    UpdateMethod="UpArti">
                    <SelectParameters>
                        <asp:QueryStringParameter Name="id" QueryStringField="id" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </div>
            
              添加文章：<br />
            
              文章标题：<asp:TextBox ID="btntitle" runat="server"></asp:TextBox>
    <br />
            文章类型：<asp:DropDownList ID="DropDownList1" runat="server" 
            DataSourceID="ObjectDataSource1" DataTextField="Arti_cotename" 
            DataValueField="Arti_coteid">
        </asp:DropDownList>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="GetArtCote" TypeName="LoveBLL.ArticleCoteManager">
        </asp:ObjectDataSource>
            <br />
             
            文章时间：<asp:TextBox ID="arti_time" runat="server" CssClass="Wdate" Text=" "  onClick="WdatePicker()" ></asp:TextBox>
            <br />
            作者：<asp:DropDownList ID="DropDownList2" runat="server" 
            DataSourceID="ObjectDataSource2" DataTextField="Username" 
            DataValueField="Userid">
        </asp:DropDownList>
        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
            SelectMethod="GetUserAll" TypeName="LoveBLL.UserManager">
        </asp:ObjectDataSource>
    <br />
            
            <br />
            文章内容编辑：<FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server">
            </FCKeditorV2:FCKeditor>
            <br />
        &nbsp;<asp:Button ID="Button1" runat="server" Text="提交" Height="26px" 
                onclick="Button1_Click" OnClientClick="return confirm('确认添加文章吗？')" Width="40px" />
            <br />
            <br />
            
            <br />

    </div>
</asp:Content>