<%@ page language="C#" autoeventwireup="true" inherits="BBS_Manger_M_BanMian, App_Web_bmoagr3j" %>

<!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>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <a href="Manage.aspx">添加版面</a>&nbsp; 
        <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">改变logo</asp:LinkButton><a href="F_BanMian.aspx"></a><br />
        <br />
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" DataSourceID="SqlDataSource1"
            Width="712px">
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                <asp:BoundField DataField="BanMianName" HeaderText="版面名称" SortExpression="BanMianName" />
                <asp:BoundField DataField="IsRenZheng" HeaderText="是否认证论坛" SortExpression="IsRenZheng" />
                <asp:BoundField DataField="IsZiJian" HeaderText="是否自建论坛" SortExpression="IsZiJian" />
                <asp:BoundField DataField="BanMianLogo" HeaderText="版面logo" SortExpression="BanMianLogo" />
                <asp:BoundField DataField="Manager" HeaderText="主版主" SortExpression="Manager" />
                <asp:BoundField DataField="F_Manager" HeaderText="副版主" SortExpression="F_Manager" />
                <asp:BoundField DataField="F_Manager2" HeaderText="副版主2" SortExpression="F_Manager2" />
                <asp:BoundField DataField="BanMianGongGao" HeaderText="版面公告" SortExpression="BanMianGongGao" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Mir3WebConnectionString %>"
            DeleteCommand="DELETE FROM [BanMian] WHERE [BanMianID] = @BanMianID" InsertCommand="INSERT INTO [BanMian] ([BanMianName], [IsRenZheng], [BanMianGongGao], [IsZiJian], [BanMianLogo], [Manager], [F_Manager], [F_Manager2], [ZhuTiNum], [TieZiNum]) VALUES (@BanMianName, @IsRenZheng, @BanMianGongGao, @IsZiJian, @BanMianLogo, @Manager, @F_Manager, @F_Manager2, @ZhuTiNum, @TieZiNum)"
            SelectCommand="SELECT * FROM [BanMian]" UpdateCommand="UPDATE [BanMian] SET [BanMianName] = @BanMianName, [IsRenZheng] = @IsRenZheng, [BanMianGongGao] = @BanMianGongGao, [IsZiJian] = @IsZiJian, [BanMianLogo] = @BanMianLogo, [Manager] = @Manager, [F_Manager] = @F_Manager, [F_Manager2] = @F_Manager2, [ZhuTiNum] = @ZhuTiNum, [TieZiNum] = @TieZiNum WHERE [BanMianID] = @BanMianID">
            <DeleteParameters>
                <asp:Parameter Name="BanMianID" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="BanMianName" Type="String" />
                <asp:Parameter Name="IsRenZheng" Type="String" />
                <asp:Parameter Name="BanMianGongGao" Type="String" />
                <asp:Parameter Name="IsZiJian" Type="String" />
                <asp:Parameter Name="BanMianLogo" Type="String" />
                <asp:Parameter Name="Manager" Type="String" />
                <asp:Parameter Name="F_Manager" Type="String" />
                <asp:Parameter Name="F_Manager2" Type="String" />
                <asp:Parameter Name="ZhuTiNum" Type="Int32" />
                <asp:Parameter Name="TieZiNum" Type="Int32" />
                <asp:Parameter Name="BanMianID" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="BanMianName" Type="String" />
                <asp:Parameter Name="IsRenZheng" Type="String" />
                <asp:Parameter Name="BanMianGongGao" Type="String" />
                <asp:Parameter Name="IsZiJian" Type="String" />
                <asp:Parameter Name="BanMianLogo" Type="String" />
                <asp:Parameter Name="Manager" Type="String" />
                <asp:Parameter Name="F_Manager" Type="String" />
                <asp:Parameter Name="F_Manager2" Type="String" />
                <asp:Parameter Name="ZhuTiNum" Type="Int32" />
                <asp:Parameter Name="TieZiNum" Type="Int32" />
            </InsertParameters>
        </asp:SqlDataSource>
        &nbsp;<br />
        <br />
        <br />
        &nbsp;
    
    </div>
    </form>
</body>
</html>
