<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.Site_UserManage" %>

<!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>
    <title>管理员设置</title>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <script type="text/javascript" src="Script/Jquery.js"></script>
    <script type="text/javascript" src="Script/Common.js"></script>
    <script type="text/javascript" src="Script/Site_UserManage.js"></script>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="wrapper-div">    
	<!-- 文章列表管理 -->
        <!-- 标 -->
            <div class="title-tab">
            <div class="title"><span class="title-ico titico9 F B">管理员设置</span></div>
            <ul class="menu">
                <li><a class="<%=sift=="all"?"active":"" %>" href="<%=getFormUrl %>"><span>全部</span></a></li>
                <%for (int i = 0; i < _userClassDat.Rows.Count; i++) %>
                <%{ %>
                <li><a class="<%=sift==_userClassDat.Rows[i]["id"].ToString()?"active":"" %>" href="<%=getFormUrl %>?sift=<%=_userClassDat.Rows[i]["id"].ToString()%>"><span><%=_userClassDat.Rows[i]["name"].ToString()%></span></a></li>
                <%} %>
            </ul> 
            <a class="edit-ico G underline" href="UserClass_Manage.aspx">管理身份</a>           
            </div>
        <!-- end 标 -->
        
        <div class="clear-8"></div>
            <a href="Site_UserManage_Control.aspx?com=add" class="bule-btn W f_left text_centent">添加管理员</a>
            <p class="PageBox">
                <%=getPagesInfo%>
            </p>
        <div class="clear-8"></div>
        
        <!-- 通用table -->
        <table class="table-1">
        	<thead>
            	<tr>
                	<th width="23%" class="text_left">帐户名 <span class="X NoB">[账户总数:<%=_pageCount %>]</span></th>
                    <th width="15%" class="text_left">权限继承</th>
                    <th width="10%">登录次数</th>
                    <th width="32%">最后登录时间/IP</th>
                    <th width="20%" class="text_left">操作</th>
                </tr>
            </thead>
            <tbody id="siteUserManage_Tbody">
            <% for (int i = 0; i < _userDat.Rows.Count; i++) %>
            <%{ %>
            	<tr>
                	<td class="text_left"><span class="H B"><%=_userDat.Rows[i]["username"].ToString()%></span></td>
                    <td class="text_left"><span class="H"><%=_userDat.Rows[i]["userclassname"].ToString()%></span></td>
                    <td><span class="X"><%=_userDat.Rows[i]["loginnumber"].ToString()%></span></td>
                    <td>
                    <span class="V Size9"><%=getTime2(_userDat.Rows[i]["lastlogintime"].ToString())%></span> / <span class="V Size9"><%=_userDat.Rows[i]["lastloginip"].ToString()%></span> <span class="X">(<%=getIpCity(_userDat.Rows[i]["lastloginip"].ToString())%>)</span>
                    </td>
                    <td class="text_left">
                    <a href="Site_UserLog.aspx?sift=&username=<%=_userDat.Rows[i]["username"].ToString()%>&page=1" class="Q underline">[日志]</a>
                    <a href="Site_UserManage_Control.aspx?com=alter&userid=<%=_userDat.Rows[i]["id"].ToString()%>" class="F underline">[编辑]</a>
                    <%if (_userDat.Rows[i]["username"].ToString() != "admin") %>
                    <%{ %>
                        <a href="<%=_userDat.Rows[i]["id"].ToString()%>" rel="del" name="<%=_userDat.Rows[i]["username"].ToString()%>" class="R underline">[删除]</a>
                    <%} %>
                    </td>
                </tr>
            <%} %>   
            </tbody>
        </table>

        <div class="clear-8"></div>
            <a href="Site_UserManage_Control.aspx?com=add" class="bule-btn W f_left text_centent">添加管理员</a>
            <p class="PageBox">
                <%=getPagesInfo%>
            </p>
        <div class="clear-8"></div>

        <!-- end 通用table -->
    <!-- end 文章列表管理 -->
</div>
</body>
</html>
