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

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

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <h1>爱心物品的管理</h1>
    <div  class="aa">
    
        <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
                    DataSourceID="objView" Height="233px" Width="500px" CellPadding="3" 
                    BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" 
                    BorderWidth="1px" AllowPaging="True" AutoGenerateDeleteButton="True" 
                    GridLines="Horizontal" DataKeyNames="goodsid" 
            CssClass="zitidaxiao">
                    <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                    <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                    <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                  
                    <Fields>
                        <asp:BoundField DataField="Goodsid" HeaderText="物品编号" 
                            SortExpression="Goodsid" />
                        <asp:BoundField DataField="Goodsname" HeaderText="物品名称" 
                            SortExpression="Goodsname" />
                        <asp:BoundField DataField="Introduce" HeaderText="介绍" 
                            SortExpression="Introduce" />
                        <asp:BoundField DataField="Author" HeaderText="捐赠者" 
                            SortExpression="Author" />
                        <asp:BoundField DataField="Goodstime" HeaderText="捐赠时间" 
                            SortExpression="Goodstime" />
                        <asp:TemplateField HeaderText="物品照片" SortExpression="GoodsImage">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("GoodsImage") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <InsertItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("GoodsImage") %>'></asp:TextBox>
                            </InsertItemTemplate>
                            <ItemTemplate>
                                <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("GoodsImage") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <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="GetGoodsById" TypeName="LoveBLL.GoodsManager" 
                    DataObjectTypeName="Models.Goods" DeleteMethod="DelGoods" InsertMethod="AddGoods" 
                    UpdateMethod="UpGoods">
                    <SelectParameters>
                        <asp:QueryStringParameter Name="id" QueryStringField="id" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            
            
              我要捐赠：<br />
            
              物品名称：<asp:TextBox ID="btnTitle" runat="server"></asp:TextBox>
    <br />
            物品图片：<asp:FileUpload ID="FileUpload1" runat="server" 
            style="margin-top: 0px" />
            <asp:Label ID="Label1" runat="server"></asp:Label>
        <asp:HiddenField ID="HiddenField1" runat="server" />
            <br />
            作者：<asp:TextBox ID="btnAuthor" runat="server"></asp:TextBox>
    <br />
            
            <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 />
    </div>
 
</asp:Content>