<%@ Page Language="vb" AutoEventWireup="false" Title="FinIQ Login" Explicit="false"
    CodeBehind="FinIQAdmLogin.aspx.vb" Inherits="FinIQWebApp.FinIQAdmLogin" %>

<!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 id="Head1" runat="server">
    <title>Login</title>



      <link href="FinIQJS/jquery-ui.css" rel="stylesheet">
    <script src="FinIQJS/external/jquery/jquery.js"></script>
    <script src="FinIQJS/jquery-ui.js"></script>


    <link href="App_Themes/Style1.css" rel="stylesheet" type="text/css" />
    <%--<script language="javascript" type="text/javascript" src="FinIQOrderEntry/MovablePanel.js"></script>--%>

    <script type="text/javascript">

        document.onkeydown = function () {

            if ((window.event.keyCode == 116) || (window.event.keyCode == 122) || ((window.event.keyCode == 78) && (window.event.ctrlKey)) || ((window.event.keyCode == 82) && (window.event.ctrlKey)) || ((window.event.keyCode == 67) && (window.event.ctrlKey)) || ((window.event.keyCode == 86) && (window.event.ctrlKey)) || ((window.event.keyCode == 88) && (window.event.ctrlKey)) || ((window.event.keyCode == 222) && (window.event.ctrlKey))) {
                window.event.returnValue = false;
                window.event.cancelBubble = true;
                window.event.keyCode = 0;
                return false;
            }
        }

    </script>

    <script type="text/javascript">
        document.oncontextmenu = cancelit;
        function cancelit() {
            event.returnValue = false;
        }

        if (typeof (window.opener) == "undefined") {
            window.open('Default.htm', '_self');
        }


    </script>

    <style type="text/css">
        .UCOverflow
        {
            overflow: auto;
        }

        .UCCustomerFind
        {
            position: absolute;
            background-color: white;
            display: block;
        }

        .HiddenColumn
        {
            display: none;
        }

        .FindButton
        {
            position: relative;
        }

        .UCPosition
        {
            position: absolute;
        }


        .ConfirmIframBeforePlaceOrder
        {
            height: 400px;
            width: 900px;
        }
    </style>

    <%--Movable Panel CSS Start--%>
    <style type="text/css">
        .move
        {
            border-bottom: 1px;
        }

        .panel
        {
            position: absolute;
            border: 1px;
            left: 200px;
            top: 150px;
        }

        .panel1
        {
            position: absolute;
            border: 1px;
            left: 200px;
            top: 150px;
        }
    </style>
    <%--Movable Panel CSS end--%>
</head>
<body>
    <%--<form id="Form_Login" runat="server">--%>
    <form id="Form_Login" autocomplete="off" method="post" runat="server">

        <asp:ScriptManager ID="ScriptManager1" runat="server" ScriptMode="Release" EnablePartialRendering="true">
            <CompositeScript ScriptMode="Release">
                <Scripts>
                    <asp:ScriptReference Name="MicrosoftAjax.js" />
                    <asp:ScriptReference Name="MicrosoftAjaxWebForms.js" />
                </Scripts>
            </CompositeScript>
        </asp:ScriptManager>


        <asp:ScriptManagerProxy ID="ScriptManagerProxy11" runat="server"></asp:ScriptManagerProxy>
        <div id="container">
            <div id="header">
                <div id="logo">
                </div>
            </div>
            <div id="body">
                <table style="width: 100%;">
                    <tr>
                        <td style="text-align: center;">
                            <center>
                              <%--  style="height: 168px;"--%>
                                <table id="tblLogin" class="Filter" cellpadding="0" cellspacing="0" runat="server"
                                    width="377px" > 
                                    <tr>
                                        <td  class="strip2">
                                            <asp:Label ID="lblLDAPHeader" runat="server" Text="* Please Enter User Name &amp; Password"
                                               ></asp:Label>
                                        </td>
                                    </tr>
                                    <%--<tr class="strip1" id ="trgroup" runat ="server" visible="true">
                                <td align="right">
                                    Group:
                                </td>
                                <td align="left" style="padding-left: 40px;">
                                    <asp:DropDownList ID="ddlGrp" runat="server" AutoPostBack ="true" CssClass="ddl" TabIndex="4">
                                    </asp:DropDownList>
                                </td>
                            </tr>--%>
                                    <tr class="strip1">

                                        <td align="center">
                                            <table class="FinIQLogin"  style="width:350px;">
                                                <tr>
                                                <td align="right">User Name:</td>
                                            <td align="left" style="padding-left: 40px;">
                                                <asp:TextBox ID="txtUserName" runat="server" CssClass="txt" Width="190px" AutoPostBack="True"
                                                    TabIndex="1" AutoCompleteType="Disabled"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RFVUserName" runat="server" ControlToValidate="txtUserName"
                                                    ErrorMessage="*" ValidationGroup="Login"></asp:RequiredFieldValidator>
                                            </td>
                                                </tr>
                                         <tr class="strip1">
                                            <td align="right">Password:</td>
                                            <td align="left" style="padding-left: 40px;">
                                                <asp:TextBox ID="txtPassword" runat="server" CssClass="txt" TextMode="Password" Width="190px"
                                                    TabIndex="2" autocomplete="off"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RFVPassword" runat="server" ControlToValidate="txtPassword"
                                                    ErrorMessage="*" ValidationGroup="Login"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr class="strip3">
                                            <td colspan="2">
                                                    <asp:UpdatePanel ID="Updatepanel1" runat="server">
                                                        <ContentTemplate>
                                                            <table style="width:350px;">
                                                                <tr class="strip1">
                                                                    <td style="width: 70px; text-align:right;"></td>
                                                                    <td  style="width: 280px; text-align:left; padding-left: 239px;padding-top: 5px !important;">
                                                                        <asp:Button ID="btnLogIn" autopostback="true" Text="Login" runat="server" TabIndex="3" CssClass="btn" />
                                                                    </td>
                                                                </tr>
                                                                <tr class="strip1">
                                                                    <td colspan="2" style="line-height:14px; text-align:center;">
                                                                        <asp:Label ID="lblError" runat="server" CssClass="lblerror"></asp:Label>
                                                                    </td>
                                                                </tr>                                                       
                                                            </table>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                            </td>

                                        </tr>
                                            </table>
                                        </td>
                                        
                                    </tr>
                                    
                                    <tr class="strip1">
                                        <td style="text-align:left;" >
                                             <table>
                                                        <tr>

                                                            <td>
                                                                <div>

                                                                    <%--<iframe id="ifrmConfirmMsg" runat="server" height="150px" width="305px" visible="false" class="UCCustomerFind UCCustomerPos move panel" ></iframe>--%>

                                                                    <asp:Panel ID="pnlConfirmMsg" runat="server" Height="150px" Width="305px" Visible="False" class="UCCustomerFind UCCustomerPos move panel"
                                                                        BorderStyle="Solid" BorderWidth="2px" BorderColor="#5D7B9D" BackColor="White">
                                                                        <table width="100%" class="filter" style="height: 80%">
                                                                            <tr>
                                                                                <td class="background_gray" align="center" height="20px">Login Expiry 
                                       Notification </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td align="center">
                                                                                    <asp:Label ID="lblConfirmMsg" runat="server"></asp:Label></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td align="center">
                                                                                    <asp:Button ID="btnYes" runat="server" Text="Yes" CssClass="btn" Width="60px" />
                                                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                       <asp:Button ID="btnNo" runat="server" Text="No" CssClass="btn" Width="60px" />
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </asp:Panel>

                                                                    <asp:Panel ID="pnlGroup" runat="server" HorizontalAlign="Center" Style="top: 305px; left: 810px" Height="100px" Width="305px" Visible="False" class="UCCustomerFind UCCustomerPos move panel"
                                                                        BorderStyle="Solid" BorderWidth="2px" BorderColor="#5D7B9D" BackColor="White">
                                                                        <table>
                                                                            <tr>
                                                                                <td style="width: 100%" colspan="2">
                                                                                    <asp:Label ID="lblGrp" runat="server" Text="Choose a group/role to login FinIQ System" CssClass="lbl"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label ID="lblMappedGrps" runat="server" Text="Mapped Groups:" CssClass="lbl"></asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:DropDownList ID="ddlGrp" runat="server" AutoPostBack="true" CssClass="ddl" Width="150px" TabIndex="4">
                                                                                    </asp:DropDownList>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>

                                                                                    <asp:Button ID="btnGroup" runat="server" CssClass="btn" Text="Login" />

                                                                                </td>
                                                                                <td>
                                                                                    <asp:Button ID="btnCancel" runat="server" CssClass="btn" Text="Cancel" />
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </asp:Panel>

                                                                </div>

                                                            </td>

                                                        </tr>
                                                            </table>
                                        </td>
                                    </tr>

                                </table>
                            </center>
                        </td>
                    </tr>
                </table>

            </div>
            <center>
                <table style="width: 100%; display:none;">
                    <tr>
                        <td>
                            <center>
                                <table id="Table1" class="Filter" cellpadding="4" cellspacing="4" runat="server" width="600px">
                                    <tr>
                                        <td valign="top" align="left">
                                            <asp:Literal ID="litDisclaimer" runat="server"></asp:Literal>
                                        </td>
                                    </tr>
                                </table>
                            </center>
                        </td>
                    </tr>
                </table>

            </center>
            <div id="footer" style="text-align: center;">
                <br />
                <span><script>document.write(new Date().getFullYear())</script></span> © FinIQ Consulting Pte. Ltd. All Rights Reserved.
            </div>
            <input id="hdnDN" runat="server" type="hidden" />
            <asp:UpdatePanel runat="server">
                <ContentTemplate>
                    <asp:HiddenField ID="hdnLoginID" runat="server" />
                    <asp:HiddenField ID="hdnLoginRole" runat="server" />
                    <asp:HiddenField ID="hdnOSName" runat="server" />
                </ContentTemplate>
            </asp:UpdatePanel>




        </div>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1"
            DisplayAfter="0">
            <ProgressTemplate>
                <div>
                    <img alt="Loading" src="App_Resources/loading.gif" /><span class="lbl">Loading...&nbsp;&nbsp;
                    </span>
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>




         <script type="text/javascript">
             function pageLoad(sender, args) {
                 try {

                     $(".txt").each(function () {
                         w = $(this).width();
                         $(this).width(Number(Number(w) - 10) + "px");
                     });



                 } catch (er) { }
             }

        </script>


<script language="javascript" type="text/javascript">

    window.status = "2020 © FinIQ Consulting Pte. Ltd. All Rights Reserved."


</script>

    </form>
</body>
</html>

