<%@ Control Language="C#" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.User.UserLoginLogControl" Codebehind="UserLoginLogControl.ascx.cs" %>
<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.BLL" %>

<%
    if (KSCMS.S("from") == "listuserdetail")
    { %>
<div class="content-area">    
 <div class="tabs_header">
    <ul class="tabs">
        <li><a href="javascript:;" onclick="loadUserDetail(<%=Utils.StrToInt(KSCMS.S("userid")) %>,0)"><span>基本信息</span></a></li>
        <% if (BaseFun.CheckModulePower("mall"))
            {%>
        <li><a href="javascript:;" onclick="loadUserDetail(<%=Utils.StrToInt(KSCMS.S("userid")) %>,3,1)"><span>订单记录</span></a></li>
        <%} %>
        <li class='active'><a href="javascript:;" onclick="loadUserDetail(<%=Utils.StrToInt(KSCMS.S("userid")) %>,1,1)"><span>登录记录</span></a></li>
        <li><a href="javascript:;" onclick="loadUserDetail(<%=Utils.StrToInt(KSCMS.S("userid")) %>,2,1)"><span>手机绑定记录</span></a></li>
         <% if (BaseFun.CheckModulePower("edu"))
             {%>
        <li><a href="javascript:;" onclick="loadUserDetail(<%=Utils.StrToInt(KSCMS.S("userid")) %>,4,1)"><span>学习进度</span></a></li>
        <li><a href="javascript:;" onclick="loadUserDetail(<%=Utils.StrToInt(KSCMS.S("userid")) %>,5,1)"><span>课程记录</span></a></li>
        <%} %>
    </ul>
 </div>
<%} %>

<asp:Repeater ID="LoginLogView" runat="server">
          <HeaderTemplate>
          <table width="99%" class="CTable nTable"  border="0" cellpadding="1" cellspacing="1">
              <tr class="CTitle">
               <td align="center"><b>登录设备</b></td>
               <td align="center"><b>用户名</b></td>
               <td align="center"><b>登录时间</b></td>
               <td align="center"><b>登录IP</b></td>
               <td align="center"><b>备注说明</b></td>
              </tr>
          </HeaderTemplate>
         <ItemTemplate>
           <tr onmouseover="this.className='CtrMouseOver'" onmouseout="this.className='CtrMouseOut'">
                <td class="Ctd" style="text-align:center">  <span style="color:#999;"><%# Utils.OrderDeviceName(Utils.StrToInt(Eval("DeviceType"))) %></span> </td>
                <td class="Ctd" style="text-align:center"><%# Eval("username") %> </td>
                <td class="Ctd" style="text-align:center"><%# Eval("AddDate") %>  </td>
                <td class="Ctd" style="text-align:center"> <%# Eval("UserIP") %> </td>
                <td class="Ctd" style="text-align:center">  <%# Eval("Remark") %></td>
              </tr>
       </ItemTemplate>
             <FooterTemplate>
              <tr class="tdbg emptycss" style="display:<%# bool.Parse((LoginLogView.Items.Count==0).ToString())?"":"none"%>">
                <td class="Ctd" style="text-align:center" colspan="12">
                  还没有任何的登录记录！
                </td>
               </tr> 
             
           </table>
          </FooterTemplate>
</asp:Repeater>
<asp:Label ID="LabPage" runat="server"></asp:Label>
</div>