<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserList.aspx.cs" Inherits="Admin_System_UserList" %>

<!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="../../StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div class="listAddLink">
            <a href="AddUser.aspx">添加人员</a></div>
        <div class="listTop">
            <div style="width:200px; text-align:left; float:left;" ><span class="title">人员管理</span></div>
            <div style="text-align:right; width:580px;">
                            <asp:Button ID="btnSearch" runat="server" CssClass="txt" OnClick="btnSearch_Click"
                    Text="查 询" Width="80px" />
                <asp:DropDownList ID="drlDeptList" runat="server" DataSourceID="objdsDeptList" DataTextField="DeptName"
                    DataValueField="DeptID" Width="121px">
                </asp:DropDownList>
            </div>
        </div>

        <asp:Repeater ID="rpUserList" runat="server">
            <HeaderTemplate>
             <table border="0" cellpadding="0" cellspacing="0" class="tableList" width="800">
            <tr class="header">
                <td style="width: 100px">
                    人员账号</td>
                <td style="width: 100px">
                    人员姓名</td>
                <td style="width: 117px">
                    所属部门</td>
                <td style="width: 120px">
                    权 限</td>
                <td style="width: 80px">
                    是否锁定</td>
                <td>
                    操 作</td>
            </tr>
            </HeaderTemplate>
            <ItemTemplate>
            <tr class="body">
                <td style="width: 100px; height: 18px">
                    <%#Eval("UserID") %></td>
                <td style="width: 100px; height: 18px">
                     <%#Eval("Name") %></td>
                <td style="height: 18px; width: 117px;">
                     <%#Eval("Department.DeptName") %></td>
                <td style="width: 110px; height: 18px">
                     <%# Tool.StringHelper.GetStrList(Eval("RightList")) %></td>
                <td style="width: 80px; height: 18px">
                   <%# (bool)Eval("Locked")==false?"否":" <span style='color:Red'>是</span>" %>
                    </td>
                <td style="height: 18px">
                    <a href='../Scores/TesterMarkedList.aspx?userID=<%#Eval("UserID") %>'>考试成绩</a> | 
                    <a href='resetPwd.aspx?userID=<%#Eval("UserID") %>' title="使用默认密码（123456）">重置密码</a> | 
                    <a href='ModUser.aspx?userID=<%#Eval("UserID") %>'>设置</a> | <a href='delUser.aspx?userID=<%#Eval("UserID") %>' onclick="return confirm('请谨慎考虑！确认删除吗？');">
                        删除</a></td>
            </tr>
            </ItemTemplate>
            <FooterTemplate>
             </table>
            </FooterTemplate>
        </asp:Repeater>
    
        <div class="listBottom">
            <asp:Label ID="lblPageList" runat="server" ForeColor="White"></asp:Label>
            <span class="content">&nbsp;</span></div>
        <asp:ObjectDataSource ID="objdsDeptList" runat="server" SelectMethod="GetDeptListForDropList"
            TypeName="BLL.BLLDepartment"></asp:ObjectDataSource>
            
    </form>
</body>
</html>
