<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LoginList.aspx.cs" Inherits="RM.Web.RMBase.SysLog.LoginList" %>

<%@ Register Src="../../UserControl/PageControl.ascx" TagName="PageControl" TagPrefix="uc1" %>
<!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><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("LoginList_ll")%></title>
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    <script type="text/javascript">
        //回车键
        document.onkeydown = function (e) {
            if (!e) e = window.event; //火狐中是 window.event
            if ((e.keyCode || e.which) == 13) {

            }
        }
        $(function () {
            divresize(123);
            FixedTableHeader("#table1", $(window).height() - 151);
        })
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <input type="hidden" value="20000" id="maxIndex" runat="server"/>
    <div class="btnbartitle">
        <div>
            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("LoginList_ll")%>
        </div>
    </div>
    <div class="btnbarcontetn" style="margin-bottom: 1px;">
        <div style="float: left;">
            <table style="padding: 0px; margin: 0px; height: 100%;" cellpadding="0" cellspacing="0">
                <tr>
                    <td id="menutab" style="vertical-align: bottom;">
                        <div id="tab0" class="Tabremovesel" onclick="GetTabClick(this);Urlhref('SysLog_Index.aspx');">
                            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("LoginList_el")%></div>
                        <div id="tab1" class="Tabsel" onclick="GetTabClick(this);Urlhref('LoginList.aspx');">
                            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("LoginList_ll")%></div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="btnbarcontetn">
        <div style="float: left;">
            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("LoginList_luser")%>:
            <input type="text" id="txt_Search" class="txt" runat="server" style="width: 110px;" />
            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("LoginList_ldate")%>:
            <input type="text" id="BeginBuilTime" class="txt" runat="server" style="width: 115px;"
                onfocus="WdatePicker({dateFmt: 'yyyy-MM-dd 00:00:00' })" />
            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("to")%>
            <input type="text" id="endBuilTime" class="txt" runat="server" style="width: 115px;"
                onfocus="WdatePicker({dateFmt: 'yyyy-MM-dd 00:00:00' })" />
            <asp:LinkButton ID="lbtSearch" runat="server" class="button green" OnClick="lbtSearch_Click"><span class="icon-botton"
            style="background: url('/Themes/images/Search.png') no-repeat scroll 0px 4px;">
        </span><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("GetButton")%></asp:LinkButton>
            <asp:LinkButton ID="exel" runat="server" class="button green" OnClick="exel_Click"><span class="icon-botton"
            style="background: url('/Themes/images/16/application_view_list.png') no-repeat scroll 0px 4px;">
        </span><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("GetButton")%></asp:LinkButton>
        <span id="msg" runat="server" style="color:#ff0000">导出数据量很大请多等一会谢谢！</span>
        </div>
        <div style="text-align: right">
        </div>
    </div>
    <div class="div-body">
        <table id="table1" class="grid">
            <thead>
                <tr>
                    <td style="width: 20px; text-align: left;">
                        <label id="checkAllOff" onclick="CheckAllLine()" title="<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Quanxuan")%>">
                            &nbsp;</label>
                    </td>
                    <td style="width: 50px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_code")%>
                    </td>
                    <td style="width: 100px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Business_name")%>
                    </td>
                    <td style="width: 100px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("LoginList_luser")%>
                    </td>
                    <td style="width: 100px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("SYS_LOGINLOG_IP")%>
                    </td>
                    <td style="width: 150px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("LoginList_ldate")%>
                    </td>
                    <td style="width: 100px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Type")%>
                    </td>
                    <td>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("OWNER_address")%>
                    </td>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="rp_Item" runat="server" OnItemDataBound="rp_ItemDataBound">
                    <ItemTemplate>
                        <tr>
                            <td style="width: 20px; text-align: left;">
                                <input type="checkbox" value="<%#Eval("Sys_LoginLog_ID")%>" name="checkbox" />
                            </td>
                            <td style="width: 50px; text-align: center;">
                                <%# Container.ItemIndex+1 %>
                            </td>
                            <td style="width: 100px; text-align: center;">
                                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("LoginList_htcz")%>
                            </td>
                            <td style="width: 100px; text-align: center;">
                                <%#Eval("User_Account")%>
                            </td>
                            <td style="width: 100px; text-align: center;">
                                <%#Eval("Sys_LoginLog_IP")%>
                            </td>
                            <td style="width: 150px; text-align: center;">
                                <%#Eval("SYS_LOGINLOG_TIME")%>
                            </td>
                            <td style="width: 100px; text-align: center;">
                                <asp:Label ID="lbl_Sys_LoginLog_Status" runat="server" Text='<%#Eval("Sys_LoginLog_Status")%>'></asp:Label>
                            </td>
                            <td>
                                <%#Eval("OWNER_address")%>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        <% if (rp_Item != null)
                           {
                               if (rp_Item.Items.Count == 0)
                               {
                                   Response.Write("<tr><td colspan='8' style='color:red;text-align:center'>" + RM.Common.DotNetConfig.LanguageHelper.GetKey("Null") + "</td></tr>");
                               }
                           } %>
                    </FooterTemplate>
                </asp:Repeater>
            </tbody>
        </table>
    </div>
    <uc1:PageControl ID="PageControl1" runat="server" />
    </form>
</body>
</html>
