<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="juese.aspx.cs" Inherits="jiaowu.juese" %>
<%@ Register src="../fenye.ascx" tagname="fenye" tagprefix="uc1" %>
<!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>
    <link href="../css/table.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
 <div>
        <div class="place">
        <asp:SiteMapPath ID="SiteMapPath1" runat="server" Height="27px">
        </asp:SiteMapPath>
        </div><table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr align="right">
                <td  width="95%"><asp:CheckBox ID="CheckBox2" runat="server" 
            AutoPostBack="True" oncheckedchanged="CheckBox2_CheckedChanged" Text="全选" />
        <img height="14" src="../images/001.gif" width="14" />
        <asp:LinkButton ID="lbadd" runat="server" PostBackUrl="jueseadd.aspx" Text="新增" >新增</asp:LinkButton>
        <img height="14" src="../images/010.gif" width="14" />
        <asp:LinkButton ID="lbdel" runat="server" onclick="LinkButton1_Click" 
            OnClientClick="return confirm('确定删除吗？无法恢复！')">删除</asp:LinkButton>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;</td>
            </tr>
        </table>
   	<asp:GridView ID="gdv" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" EmptyDataText="没有或没有符合条件的角色信息！" 
            Font-Size="Small"  
            OnRowDeleting="gdv_RowDeleting" Width="100%" PageSize="2" CssClass="sys_grid"
            >
            <HeaderStyle CssClass="sys_grid_head_cell"/>
            <Columns>
                <asp:TemplateField HeaderText="选择">
                   <ItemTemplate>
                   <asp:CheckBox ID="CheckBox1" runat="server" />
                    </ItemTemplate>
                 </asp:TemplateField>
                <asp:BoundField DataField="bianhao" HeaderText="编号" />
                <asp:BoundField DataField="juese" HeaderText="角色名称" />
                <asp:TemplateField HeaderText="权限">
                <ItemTemplate>
                   <%#xxsoft_user.userclass.strqx(Eval("quanxian").ToString())%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="编辑">
                   <ItemTemplate>
                   <a href="jueseedit.aspx?id=<%# Eval("id") %>">编辑</a>
                    </ItemTemplate>
                 </asp:TemplateField>
                <asp:CommandField HeaderText="操作" ShowDeleteButton="True" 
                    ShowHeader="True"  DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定删除角色吗？无法恢复！')&quot;&gt;删除&lt;/div&gt; "/>
            </Columns>
            <HeaderStyle CssClass="HeaderStyle" />
            <PagerStyle CssClass="PagerStyle" /> 
            <RowStyle CssClass="RowStyle" />
            <PagerSettings Visible=false />
        </asp:GridView>
                    
                        <uc1:fenye ID="fenye1" runat="server" />
                   
    </div>
    </form>
</body>
</html>
