<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Plus.Group.Admin_BBSCategoryOrderN" Title="N级版面排序" Codebehind="KS.BBSCategoryOrderN.aspx.cs" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
   <script language="JavaScript">
    document.oncontextmenu=new Function("event.returnValue=false;");
    document.onselectstart=new Function("event.returnValue=false;");
    </script>


    <div class="content-area mt20">
	<div class="myTitle">N级小组版面排序<a href="javascript:;" onclick="location.href='KS.BBSCategory.aspx';" class="fr button mr20">返回</a></div>
    <asp:GridView ID="List" runat="server" CssClass="CTable" AutoGenerateColumns="False" EmptyDataText="没有添加任何版面!" GridLines="None" OnRowDataBound="List_RowDataBound" PagerType="CustomNumeric" Width="99%" OnRowCommand="List_RowCommand">
        <EmptyDataRowStyle CssClass="emptycss" />
        <Columns>
            <asp:BoundField DataField="BoardID" HeaderText="版面ID" >
                <itemstyle horizontalalign="Center" width="50px" />
            </asp:BoundField>
            <asp:BoundField DataField="parentid" HeaderText="父ID" >
                <itemstyle horizontalalign="Center" width="50px" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="版面名称">
                <itemtemplate>
        			<%# getClassListName(Eval("BoardName", "{0}"), Convert.ToInt16(Eval("child")), Convert.ToInt16(Eval("NextID")), Convert.ToInt16(Eval("depth", "{0}")),1)%>
            	</itemtemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="OrderID" HeaderText="序号" />
            <asp:TemplateField HeaderText="N级版面排序">
                <itemtemplate>
                <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
                <tr>
                <td style="width: 49%;text-align: right;" nowrap>
                       <asp:DropDownList ID="DropUpOrder" runat="server" AutoPostBack="False">
                          <asp:ListItem Selected="True" Value="0">↑向上移动</asp:ListItem>
                         </asp:DropDownList>
                        &nbsp;<asp:Button runat="server" ID="UpButton" onmouseover="this.className='button_on';" onmouseout="this.className='button';" class="button" Text="修改" commandname="upordern" commandargument=<%#Eval("root") %>></asp:Button>

              </td>
              <td>&nbsp;</td>
              <td style="width: 49%;text-align: left;" nowrap>
               <asp:DropDownList ID="DropDownOrder" runat="server" AutoPostBack="False">
                  <asp:ListItem Selected="True" Value="0">↓向下移动</asp:ListItem>
               </asp:DropDownList>&nbsp;<asp:Button ID="DownButton" onmouseover="this.className='button_on';" onmouseout="this.className='button';" class="button" Text="修改" commandname="downordern" commandargument=<%#Eval("root") %> runat="server" />
            </td>
            </table>
        </itemtemplate>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle CssClass="CTitle" />
    </asp:GridView>
         <asp:Label ID="LabPage" runat="server"></asp:Label>
   </div>  
</asp:Content>

