<%@ Page Title="" Language="C#" MasterPageFile="Admin.Master" AutoEventWireup="true" CodeBehind="EditForums_ManageMenuSmall.aspx.cs" Inherits="Portal.Admin.EditForums_ManageMenuSmall" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id=sm>
添加小类
</div>


<a href="forums.aspx">返回</a>
&nbsp;&nbsp; <a href="../portal/forums.aspx" target="_blank">浏览论坛</a>

 <br /><br />


    <p>
    <a href="EditForums_MenuSmall.aspx">添加小类</a>
        <br />
    </p>
<div style=" font-family:Verdana; line-height:23px;">
   
      <p>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            SelectCommand="select  
portal_forums_menusmall.smallid,isshow,
portal_forums_menusmall.bigid,
imgurl,
portal_forums_menusmall.menuname ,
portal_forums_menubig.menuname as bigmenuname,
description,
portal_forums_menusmall.orderid ,
borderids,
bordernames
 from  portal_forums_menusmall inner join portal_forums_menubig on 
portal_forums_menusmall.bigid=portal_forums_menubig.bigid"


 DeleteCommand=" delete from portal_forums_menusmall where smallid=@smallid"





>  <DeleteParameters>
            <asp:Parameter Name="smallid" Type="Int32" />
        </DeleteParameters>
        </asp:SqlDataSource>
    </p>
    
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="smallid" DataSourceID="SqlDataSource1" Width="800px">
            <Columns>
              <asp:CommandField ShowDeleteButton="True"   />
                
              <asp:TemplateField>
              <ItemTemplate>
                  <a href="EditForums_MenuSmall.aspx?smallid=<%#Eval("smallid") %>">Edit</a>
              </ItemTemplate>
                </asp:TemplateField>
                
                
             
             
                   <asp:TemplateField>
              <ItemTemplate>
              
              <a target="_blank" href="../portal/tabsecrity.aspx?tabid=<%#Eval("smallid") %>&sectype=forum">权限设定</a>
              </ItemTemplate>
              </asp:TemplateField>
             
             
          
                
                <asp:BoundField DataField="smallid" HeaderText="smallid" InsertVisible="False" 
                    ReadOnly="True" SortExpression="smallid" />
                 <asp:BoundField DataField="imgurl" HeaderText="图片地址" 
                    SortExpression="imgurl" />
                <asp:BoundField DataField="menuname" HeaderText="板块名称" 
                    SortExpression="menuname" />
                <asp:BoundField DataField="bigmenuname" HeaderText="上级分类名称" 
                    SortExpression="bigmenuname" />
                <asp:BoundField DataField="description" HeaderText="渐进" 
                    SortExpression="description" />
                <asp:BoundField DataField="orderid" HeaderText="顺序ID" 
                    SortExpression="orderid" />
        
                <asp:BoundField DataField="bordernames" HeaderText="版主" 
                    SortExpression="bordernames" />
                    
                    <asp:TemplateField>
                    <HeaderTemplate>是否可见</HeaderTemplate>
                    <ItemTemplate>
                    
                    <%#Eval("isshow").ToString()=="1"?"是":"否" %>
                    </ItemTemplate>
                    
                    </asp:TemplateField>
            </Columns>
            
           
        </asp:GridView>
        
   
        
   </div>




</asp:Content>
