<%@ Page Title="Unlock Login" Language="vb" AutoEventWireup="false" MasterPageFile="~/FiniqAppMasterPage.Master"
    CodeBehind="LSS_UnLock_InactiveLogins.aspx.vb" Inherits="FinIQWebApp.LSS_UnLock_InactiveLogins" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<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" />
    <style>
	.ddl {
            width:120px;
        }
	
        input[type="text"], input[type="password"], textarea, .ui-selectmenu-button span.ui-selectmenu-text, .readOnly, input[type="text"][disabled="disabled"], .ddl {
    padding-right: 5px !important;
     text-indent: 0px; 
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}
    </style>
    <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>
            <table class="Filter">
                <tr>
                    <td>
                        <table>
                            <tr>
                                <%--<td nowrap="nowrap" class="background_gray">
                                    Unlock Login
                                </td>--%>
                            </tr>
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td>
                                            <asp:Label ID="lblInfoMsg" runat="server" CssClass="lbl" ForeColor="Blue"></asp:Label>
                                            <asp:Label ID="lblError" runat="server" CssClass="lbl" ForeColor="Red"></asp:Label>
                                                
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <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">
                                                                            <asp:ListItem Value="All">All</asp:ListItem>
                                                                            <asp:ListItem Value="Group Name">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"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Button ID="btnsearch" runat="server" CssClass="btn" Text="Search"></asp:Button>
                                                                    </td>
                                                                    <td class="lbl">
                                                                        Page Count
                                                                     </td>
                                                                    <td>
                                                                       
                                                                        <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 Records :</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="grdLockLogin" 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="LoginName" ItemStyle-Width="120px">
                                                                            <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="Group" ItemStyle-Width="120px">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                        </asp:BoundColumn>
                                                                        <asp:BoundColumn HeaderText="Locked At" DataField="Locked_Date" ItemStyle-Width="150px">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                        </asp:BoundColumn>
                                                                        <asp:ButtonColumn Text="Unlock" ButtonType="LinkButton" ItemStyle-ForeColor="Blue"
                                                                            CommandName="Unlock" 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>
            
            <script type="text/javascript">

                //                function confirm(msg) {
                //                    //flagCaptureMouseStatus = false;
                //                    if (confirm('Are you sure you want to unlock ' + msg) == true) {
                //                        flagCaptureMouseStatus = false;
                //                       // alert(1);
                //                    }

                //                }

            </script>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
