<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PrivilegeSort.aspx.cs" Inherits="Chaokers.CN.SysMembership.Web.PrivilegeSort" %>
<%@ Register assembly="Chaokers.CN.SysMembership.Components" namespace="Chaokers.CN.SysMembership.Components.Controls" tagprefix="cc1" %>

<%@ Register assembly="Chaokers.CN.SysMembership.Components" namespace="Chaokers.CN.SysMembership.Components.Controls" tagprefix="cc1" %>        
        
<!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">
<asp:Literal runat="server">权限排序</asp:Literal>    
</head>
<body>
<form id="form1" runat="server">
<div>    

    <cc1:CurrLocation ID="CurrLocation1" runat="server" InnerText="角色与权限/权限排序" />
    
    <div id="mainContainer"> 
       
    <asp:GridView ID="myGridView" runat="server" AutoGenerateColumns="False" 
         Width="100%"
		 CellPadding="1"
		 ShowFooter="False"
         BorderWidth="1px"
         BorderStyle="Solid"
         DataKeyNames="PrivilegeID"
         >
        <HeaderStyle Height="22" Font-Bold="True" HorizontalAlign="Center"></HeaderStyle>
        <RowStyle Height="22px" />
        <Columns>

            <asp:BoundField DataField="PrivilegeID" HeaderText="ID" HeaderStyle-Width="40px" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="PrivilegeName" HeaderText="权限名称" HeaderStyle-Width="300px" />
            <asp:TemplateField HeaderText="排序操作">
            <ItemTemplate>
            
                <asp:ImageButton runat=server id="ImageButton1" 
                     CommandName="Down"
                     ImageUrl="../App_Themes/Default/Images/down.gif" 
                     Commandargument='<%# Eval("PrivilegeID")%>' 
                     OnCommand="Sort" 
                     AlternateText="降" /> 
                
                <asp:ImageButton runat=server id="ImageButton2" 
                     CommandName="Up"
                     ImageUrl="../App_Themes/Default/Images/up.gif" 
                     Commandargument='<%# Eval("PrivilegeID")%>' 
                     OnCommand="Sort"
                     AlternateText="升" />      
                             
            </ItemTemplate>
            </asp:TemplateField>
            
        </Columns>
        <EmptyDataTemplate>
          
                <tr>
                    <th>
                        No.</th>
                    <th>
                       权限名称</th>
                    <th>
                       升</th>
                    <th>
                       降</th>
                </tr>
                <tr>
                    <td colspan="4">
                        没有记录</td>
                </tr>
           
        </EmptyDataTemplate>
    </asp:GridView>
    
    <br /><br />
    
    </div><!--"mainContainer.END"-->

</div><!--"wrapper.END"-->
</form> 

</body>
</html>
