<%@ Page Language="C#" AutoEventWireup="true"  EnableEventValidation="false" CodeBehind="manage.aspx.cs" Inherits="jiaowu._manage" %>
<%@ Register src="../fenye.ascx" tagname="fenye" tagprefix="uc2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>用户列表</title>
		<link href="../css/table.css" rel="stylesheet" type="text/css" />
		
	    <style type="text/css">
            .style2
            {
                height: 14px;
            }
            </style>
		 <script language="javascript" src="../js/common.js"></script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">	
		        <div class="place">
                    <asp:SiteMapPath ID="SiteMapPath1" runat="server" Height="27px" Width="309px">
                    </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="manageadd.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;
        <img height="14" src="../images/lock.gif" width="14"/>
        <asp:LinkButton ID="LBsuo" runat="server" onclick="LBsuo_Click" 
            OnClientClick="return confirm('确定锁定用户吗？')">锁定</asp:LinkButton>
        <img src="../images/unlock.gif" width="14" class="style2" />
        <asp:LinkButton ID="LBjie" runat="server" onclick="LBjie_Click" 
            OnClientClick="return confirm('确定解锁吗？')">解锁</asp:LinkButton>
        &nbsp;
                    &nbsp;</td>
            </tr>
        </table>
        <span class="center_title_1">&nbsp;
		<br>
					<asp:GridView ID="gdv" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False"
                        CssClass="sys_grid"  OnSorting="gdv_Sorting" 
            OnRowDeleting="gdv_RowDeleting"  Width="100%" EmptyDataText="没有或没有符合条件的用户信息！">
                        <HeaderStyle CssClass="sys_grid_head_cell"/>
                        <Columns>
                            <asp:TemplateField HeaderText="全选">
                            <ItemTemplate>
                             <asp:CheckBox ID="CheckBox1" runat="server" />
                            </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="fenxiao" HeaderText="分校"  SortExpression="fenxiao"/>  
                             <asp:BoundField DataField="xm" HeaderText="用户名" SortExpression="xm" />                     
                            <asp:BoundField DataField="userxm" HeaderText="姓名" SortExpression="userxm" />
                            <asp:BoundField DataField="xb" HeaderText="性别" SortExpression="xb" />
                            <asp:BoundField DataField="juese" HeaderText="角色" SortExpression="juese" />
                            <asp:TemplateField HeaderText="编辑"><ItemTemplate><a href="manageadd.aspx?id=<%#Eval("id") %>">编辑</a></ItemTemplate></asp:TemplateField>
                            <asp:CommandField HeaderText="删除" ShowCancelButton="False" 
                                ShowDeleteButton="True"  DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定删除用户吗？无法恢复！')&quot;&gt;删除&lt;/div&gt; "/>
                        </Columns>                        
                        <PagerSettings Visible="False" />
                        <RowStyle HorizontalAlign="Center" Height="25px" />
                    </asp:GridView>
                    </TD>
				</TR>
				<TR>
					<TD vAlign="top">
						<INPUT id="hd" type="hidden" name="hd" runat="server">
                        <uc2:fenye ID="fenye1" runat="server" />
                    </TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
