⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loginlog.aspx

📁 办公系统办公系统办公系统办公系统办公系统办公系统办公系统办公系统办公系统办公系统办公系统办公系统办公系统办公系统办公系统
💻 ASPX
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="LoginLog.aspx.cs" Inherits="SysManage_LoginLog" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>

    <script language="javascript">
 function GetAllCheckBox(parentItem)
  {
     var items = document.getElementsByTagName("input");     
     for(i=0; i<items.length;i++)
     {       
       if(parentItem.checked)
       {
         if(items[i].type=="checkbox")
          {
           items[i].checked = true;
          }
       }
       else
       {
          if(items[i].type=="checkbox")
          {
           items[i].checked = false;
          }
       }
     }
  }

    </script>

    <asp:UpdatePanel id="UpdatePanel1" runat="server">
        <contenttemplate>
    <div align="center" style="width:99%">
        <span style="font-size: 12pt;"><strong>登 录 日 志</strong></span>
        <br />
        <hr style="background-color: Gray; width: 90%" />
        <br />
        输入时间段:
        <asp:TextBox ID="txtStartTime" runat="server" Width="120px" onfocus="new WdatePicker(this,null,false,'whyGreen')"></asp:TextBox>
        -----------
        <asp:TextBox ID="txtEndTime" runat="server" Width="120px"  onfocus="new WdatePicker(this,null,false,'whyGreen')"></asp:TextBox>&nbsp;
        <asp:RadioButton ID="day" runat="server" Text="本日" GroupName="date" />
        <asp:RadioButton ID="week" runat="server" Text="本周" GroupName="date" />
        <asp:RadioButton ID="month" runat="server" Text="本月" GroupName="date" />
    </div>
    <br />
    <div style="width: 30%" align="right">
        <asp:ImageButton ID="imbtnSearch" runat="server" ImageUrl="~/Images/search.gif" OnClick="imbtnSearch_Click" />
    </div>
    <div align="center" style="width:99%" id="DIV1" runat="server">
    <asp:CheckBox ID="chkCheckAll" runat="server" Text="全选" onclick="GetAllCheckBox(this)" />
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
    <asp:Button ID="btnDelete" runat="server" Text="删除选定项" OnClick="btnDelete_Click" />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="90%">
            <Columns>
                <asp:TemplateField HeaderText="选定(√)">
                    <ItemTemplate>
                        <asp:CheckBox ID="CheckBox1" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="序号" DataField="LoginId" />
                <asp:BoundField HeaderText="登录用户" DataField="User" />
                <asp:BoundField HeaderText="登录时间" DataField="LoginTime" />
                <asp:BoundField HeaderText="退出时间" />
                <asp:BoundField HeaderText="IP地址" DataField="LoginUserIp" />
                <asp:TemplateField HeaderText="是否成功">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Display( Eval("IfSuccess").ToString()) %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="登录备注" DataField="LoginDesc" />
                <asp:TemplateField Visible="False">
                    <ItemTemplate>
                        <asp:Label ID="lblLoginId" runat="server" Text='<%# Eval("LoginId") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <br />
    <div id="DIV2" runat="server" align="center">
        <asp:Label ID="lblMes" runat="server" ForeColor="Red"></asp:Label>
    </div>
            </contenttemplate>
    </asp:UpdatePanel>
</asp:Content>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -