<%@ Page Title="Lock Login" Language="vb" AutoEventWireup="false" MasterPageFile="~/FiniqAppMasterPage.Master"
    CodeBehind="LSS_Lock_ActiveLogins.aspx.vb" Inherits="FinIQWebApp.LSS_Lock_ActiveLogins" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy11" runat="server">
    </asp:ScriptManagerProxy>
     <link href="../App_Themes/LSSStyle_Admin.css" rel="stylesheet" type="text/css" />
    <asp:UpdateProgress ID="pnlProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanelCP"
        DisplayAfter="0">
        <ProgressTemplate>
            <div>
                <img alt="Loading" src="../App_Resources/loading.gif" /><span class="lbl">Processing...&nbsp;&nbsp;
                </span>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanelCP" runat="server">
        <ContentTemplate>
            <style>
                input[type="text"], input[type="password"], textarea, .ui-selectmenu-button span.ui-selectmenu-text, .readOnly, input[type="text"][disabled="disabled"], .ddl 
                {
                    text-indent: 0px !important;
                }
                .btn_padding {
            padding-top: 5px;
            padding-right: 10px;
        }
                </style>
            <table class="Filter">
                <tr>
                    <td>
                        <table>
                            <tr>
                                <%--<td nowrap="nowrap" class="background_gray">
                                    Lock Login
                                </td>--%>
                            </tr>
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td class="btn_padding">
                                                <asp:Label ID="lblInfoMsg" runat="server" CssClass="lbl" style="color: #0368B6 !important"></asp:Label>
                                                <asp:Label ID="lblError" runat="server" CssClass="lbl" style="color: #FF4E4E !important"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="btn_padding">
                                                <table class="Filter" id="Table1" width="100%">
                                                    <tr>
                                                        <td>
                                                            <table>
                                                                <tr>
                                                                    <td class="lbl">
                                                                        Search By
                                                                    </td>
                                                                    <td>
                                                                        <asp:DropDownList ID="ddlSearch" runat="server" CssClass="ddl" AutoPostBack="true" Width="110px">
                                                                            <asp:ListItem Value="All">All</asp:ListItem>
                                                                            <asp:ListItem Value="Group Name" style="text-indent: 0px !important;">Group Name</asp:ListItem>
                                                                            <asp:ListItem Value="User Name">User Name</asp:ListItem>
                                                                        </asp:DropDownList>
                                                                        
                                                                         <%--<telerik:RadDropDownList ID="ddlSearch" runat="server"  AutoPostBack="true" >
                                                             <Items>
                                                                   <telerik:DropDownListItem Text="All" Value="All"  Selected="True"/>
                                                                   <telerik:DropDownListItem Text="Group Name" Value="Group Name" />
                                                                   <telerik:DropDownListItem Text="User Name" Value="User Name"/>
                                                             </Items>
                                                            </telerik:RadDropDownList>--%>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtSearch" runat="server" CssClass="txt" AutoCompleteType="Disabled" AutoComplete="off" 
                                                                            onkeydown="return EnterEvent(event)" Width="110px"></asp:TextBox>
                                                                    </td>
                                                                    <td class="btn_padding">
                                                                        <asp:Button ID="btnsearch" runat="server" CssClass="btnSearch" Text=""></asp:Button>
                                                                    </td>
                                                                   <%-- <td class="lbl">
                                                                     Page Count
                                                                     </td>--%>
                                                                  <td class="btn_padding">
                                                                      <asp:Label ID="lblRowsPerPage" runat="server" CssClass="lbl rows_per_page" Text="Record(s) Per Page"></asp:Label>
                                                                      </td>
                                                                    <td class="btn_padding">
                                                                      <asp:TextBox ID="txtRowsPerPage" runat="server" CssClass="txt" MaxLength="2" Width="30" Style="text-align: center;" AutoPostBack="true" onkeypress="return isNumberKey(event)" onkeydown="return EnterEvent(event)"></asp:TextBox>
                                                                     </td>
                                                                    <td class="btn_padding">
                                                                        
                                                                        <%--<asp:TextBox ID="txtPageCount" runat="server" Width="30px" Text="10" MaxLength="2" CssClass="txt"></asp:TextBox>--%>
                                                                        <asp:Label ID="Label1" runat="server" CssClass="lbl">Total Record(s) :</asp:Label>
                                                                        <asp:Label ID="lbltotalcount" runat="server" CssClass="lbl"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <table class="Filter">
                                                    <tr>
                                                        <td>
                                                            <div id="DIV1" style="overflow: auto;" runat="server">
                                                                <asp:DataGrid ID="grdActiveLogin" runat="server" CssClass="Grid" Width="100%" AutoGenerateColumns="False"
                                                                    AllowPaging="True" GridLines="None">
                                                                    <SelectedItemStyle CssClass="GridItemSelect" />
                                                                    <AlternatingItemStyle CssClass="AlternatItemStyle" />
                                                                    <ItemStyle CssClass="GridItem" />
                                                                    <HeaderStyle CssClass="GridHeaderTitle" />
                                                                    <FooterStyle CssClass="GridFooter" />
                                                                    <PagerStyle CssClass="GridPager" />
                                                                    <Columns>
                                                                        <asp:BoundColumn HeaderText="User Name" DataField="L_Id" ItemStyle-Width="150px">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                        </asp:BoundColumn>
                                                                        <asp:BoundColumn HeaderText="Department Name" DataField="DeptName" ItemStyle-Width="120px">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                        </asp:BoundColumn>
                                                                        <asp:BoundColumn HeaderText="Group" DataField="U_Id" ItemStyle-Width="120px">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                        </asp:BoundColumn>
                                                                        <asp:BoundColumn HeaderText="Current Status" DataField="L_Status" ItemStyle-Width="100px">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                        </asp:BoundColumn>
                                                                        <asp:ButtonColumn Text="Lock" ButtonType="LinkButton" ItemStyle-ForeColor="Blue"
                                                                            CommandName="Lock" ItemStyle-Width="70px" ItemStyle-HorizontalAlign="Left"></asp:ButtonColumn>
                                                                    </Columns>
                                                                    <PagerStyle CssClass="GridPager" Mode="NumericPages"></PagerStyle>
                                                                </asp:DataGrid>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
     <script type="text/javascript">
         function EnterEvent(e) {
             if (e.keyCode == 13 || e.keyCode == 9) {
                 document.getElementById('<%=btnsearch.ClientID%>').click();
            }
         }
       
     </script>
</asp:Content>
