<%@ page language="C#" autoeventwireup="true" inherits="Admin_UserManage_UserList, App_Web_-01ukn0y" enableEventValidation="false" theme="theme1" stylesheettheme="theme1" %>

<!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>PassionCMS2</title>
</head>
<body bgcolor="#DBEAF5">
    <form id="form1" runat="server">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td background="../images/Top_line_3.gif" height="2">
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="Table4" style="background-color: #3390C6;">
                        <tr>
                            <td height="27" width="20">
                            </td>
                            <td width="80" align="center" background='../images/Menu_selected_bg.gif'>
                                <a href="#">用户列表</a>
                            </td>
                            <td width="80" align="center">
                                <a href="AddUser.aspx" class='menu_title'>添加用户</a>
                            </td>
                            <td>
                                &nbsp;</td>
                            <td width="10">
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td background="../images/Sub_menu_bg.gif" height="24">
                    <table class="O" cellspacing="0" cellpadding="0" width="100%" border="0" id="Table6">
                        <tbody>
                            <tr>
                                <td width="20">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="10">
                </td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td width="3%">
                </td>
                <td>
                    <asp:GridView ID="gvUserList" SkinID="gridviewSkin1" AutoGenerateColumns="false"
                        runat="server" OnRowDataBound="gvUserList_RowDataBound" OnRowCommand="gvUserList_RowCommand">
                        <Columns>
                            <asp:TemplateField HeaderText="序号">
                                <HeaderStyle Width="40" />
                                <ItemStyle HorizontalAlign="Left" />
                                <ItemTemplate>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="用户ID" DataField="UserID" />
                            <asp:BoundField HeaderText="用户名称" DataField="UserName" />
                            <asp:BoundField HeaderText="登陆次数" DataField="LoginTimes" ItemStyle-HorizontalAlign="right" />
                            <asp:TemplateField HeaderText="最后登陆时间">
                                <ItemStyle HorizontalAlign="right" />
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblLatestLoginTime" Text='<%# DataBinder.Eval(Container.DataItem,"latestLoginTime","{0:yyyy-MM-dd}") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="最后登陆IP" DataField="latestLoginIP" ItemStyle-HorizontalAlign="right" />
                            <asp:TemplateField HeaderText="角色">
                                <ItemStyle HorizontalAlign="center" />
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblRoleTitle" Text='<%# DataBinder.Eval(Container.DataItem,"RoleTitle")%>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="是否冻结">
                                <ItemStyle HorizontalAlign="center" />
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblisLock" Text='<%# DataBinder.Eval(Container.DataItem,"isLock")%>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="操作">
                                <ItemStyle HorizontalAlign="center" />
                                <ItemTemplate>
                                    <asp:HyperLink ID="HL" runat="server" Text="修改" NavigateUrl='<%# "~/Admin/UserManage/editUser.aspx?ID=" + DataBinder.Eval(Container.DataItem,"ID")%>'></asp:HyperLink>
                                    <asp:LinkButton runat="server" ID="LBdel" CommandName="del" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID")%>'
                                        Text="删除"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="权限">
                                <ItemStyle HorizontalAlign="center" />
                                <ItemTemplate>
                                    <asp:HyperLink ID="HL2" runat="server" Text="权限" NavigateUrl='<%# "~/Admin/UserManage/editPower.aspx?ID=" + DataBinder.Eval(Container.DataItem,"ID")%>'></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
                <td width="3%">
                </td>
            </tr>
            <tr height="5">
            </tr>
        </table>
    </form>
</body>
</html>
