<%@ page language="C#" autoeventwireup="true" inherits="Tsenselogin, App_Web_02sve5xb" enableeventvalidation="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html>
<html lang="en">
<head id="Head1" runat="server">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <%--<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />--%>

    <title>trinetra</title>
    <%--<link id="Link1" rel="stylesheet" type="text/css" href="~/css/reset.css" runat="server" />
    <link id="Link2" rel="stylesheet" type="text/css" href="~/css/login1.css" runat="server" />--%>
    <link href="css/CustomeAlert/demos.css" rel="stylesheet" type="text/css" />
    <link href="css/CustomeAlert/themes/jquery.ui.all.css" rel="stylesheet" type="text/css" />

    <link rel="SHORTCUT ICON" href="images/favicon.ico" />
    <link href="css/Login/css/bootstrap.min.css" rel="stylesheet" />
    <link href="css/Login/css/common.css" rel="stylesheet" />
    <link href="css/Login/css/theme-04.css" rel="stylesheet" />
    <%--<link href="css/mdi-icons.css" rel="stylesheet" />--%>
    <link href="fontawesome-free-5.10.1-web/css/all.min.css" rel="stylesheet" />
    <script language="javascript" type="text/javascript">
        function ConcurrentUsers(IsGUID) {
            if (IsGUID) {
                var IsConfirm = confirm("Already a session is available for this user. Do you want to close it? \nClick 'OK' to proceed");

                if (IsConfirm == false) {
                    return false;
                }
            }
            debugger;
            document.getElementById("btnProceed").click();
        }
        function setText(userPwd) {
            setTimeout(eval('document.getElementById("txtPassword").value =' + userPwd + ';'), 5000);
        }
    </script>

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

    <script language="JavaScript1.2" type="text/javascript" src="js/myformvalidations.js"></script>
    <script src="js/CustomAlert/jquery.min.js" type="text/javascript"></script>
    <script src="js/CustomAlert/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
    <script src="js/CustomAlert/jquery-ui-1.10.3.custom.js" type="text/javascript"></script>
    <script src="js/CustomAlert/CustomAlert.js" type="text/javascript"></script>

    <style type="text/css">
        div.transbox {
            width: 200px;
            height: 232px; /*160px;*/
            margin: 0 50px;
            background-color: #ffffff;
            border: 1px solid;
            opacity: 0.8;
            filter: alpha(opacity=80);
            margin-left: 720px;
            display: none;
        }

            div.transbox p {
                margin: 15px 15px;
                font-weight: bold;
                font-size: 10px;
                color: 1C5180;
                text-align: justify;
            }

        .fa-user-circle:before {
            color: #98a3ae !important;
            font-size: 20px;
        }

        .fa-lock:before {
            color: #98a3ae !important;
            font-size: 20px;
        }

        .fa-industry:before {
            color: #98a3ae !important;
            font-size: 20px;
        }
    </style>
</head>
<body onload="getFooter();">
    <form id="frmLogin" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <div class="tsense-container">
                    <div class="tsense-inner">
                        <div class="tsense-two-pane">
                            <div></div>
                            <div>
                                <div class="tsense-form" id="logincont" runat="server">
                                    <div class="mb-8 tsense-logo">
                                        <img src="css/Login/img/logo.png">
                                    </div>
                                    <div>
                                        <h4>Login into account</h4>
                                        <p class="mb-10">Use your credentials to access your account.</p>
                                    </div>
                                    <form>
                                        <div class="form-group">
                                            <div class="input-group">
                                                <div class="input-group-prepend">
                                                    <span class="input-group-text">
                                                        <i class="fa fa-user-circle" aria-hidden="true"></i>
                                                    </span>
                                                </div>
                                                <asp:TextBox ID="txtUserName" class="form-control" runat="server" TabIndex="1" MaxLength="50" placeholder="User Name"></asp:TextBox>
                                                <%--<input required class="form-control" name="email" type="email"
                                            placeholder="Email Address">--%>
                                            </div>
                                        </div>
                                        <div class="form-group password-field">
                                            <div class="input-group">
                                                <div class="input-group-prepend">
                                                    <span class="input-group-text">
                                                        <i class="fa fa-lock" aria-hidden="true"></i>
                                                    </span>
                                                </div>
                                                <asp:TextBox ID="txtPassword" class="form-control" name="password" runat="server" TextMode="Password"
                                                    Text="" TabIndex="2" MaxLength="20" placeholder="Password"></asp:TextBox>
                                                <div class="input-group-append cursor-pointer">
                                                    <span class="input-group-text">
                                                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="16" viewBox="0 0 24 16">
                                                            <g transform="translate(0 0)">
                                                                <g transform="translate(0 0)">
                                                                    <path d="M23.609,117.568a15.656,15.656,0,0,0-5.045-4.859,12.823,12.823,0,0,0-6.38-1.811c-.062,0-.309,0-.371,0a12.823,12.823,0,0,0-6.38,1.811,15.656,15.656,0,0,0-5.045,4.859,2.464,2.464,0,0,0,0,2.658,15.656,15.656,0,0,0,5.045,4.859,12.822,12.822,0,0,0,6.38,1.811c.062,0,.309,0,.371,0a12.823,12.823,0,0,0,6.38-1.811,15.656,15.656,0,0,0,5.045-4.859A2.464,2.464,0,0,0,23.609,117.568Zm-17.74,6.489a14.622,14.622,0,0,1-4.712-4.538,1.155,1.155,0,0,1,0-1.245,14.621,14.621,0,0,1,4.712-4.538,12.747,12.747,0,0,1,1.586-.79,8.964,8.964,0,0,0,0,11.9A12.748,12.748,0,0,1,5.869,124.057ZM12,125.75c-3.213,0-5.827-3.074-5.827-6.853s2.614-6.853,5.827-6.853,5.827,3.074,5.827,6.853S15.211,125.75,12,125.75Zm10.841-6.23a14.621,14.621,0,0,1-4.712,4.538,12.737,12.737,0,0,1-1.585.788,8.964,8.964,0,0,0,0-11.9,12.74,12.74,0,0,1,1.587.791,14.622,14.622,0,0,1,4.712,4.538A1.155,1.155,0,0,1,22.839,119.52Z" transform="translate(0.002 -110.897)" />
                                                                </g>
                                                                <g transform="translate(9.565 5.565)">
                                                                    <path d="M205.24,202.8a2.435,2.435,0,1,0,2.435,2.435A2.438,2.438,0,0,0,205.24,202.8Zm0,3.917a1.482,1.482,0,1,1,1.482-1.482A1.483,1.483,0,0,1,205.24,206.721Z" transform="translate(-202.805 -202.804)" />
                                                                </g>
                                                            </g>
                                                        </svg>
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group password-field" style="display: none;">
                                            <div class="input-group">
                                                <div class="input-group-prepend">
                                                    <span class="input-group-text">
                                                        <i class="fa fa-industry" aria-hidden="true"></i>
                                                    </span>
                                                </div>
                                                <asp:TextBox ID="txtOrganizationCode" class="form-control" placeholder="Organization Code" runat="server" Text="" TabIndex="3"
                                                    MaxLength="3"></asp:TextBox>

                                            </div>
                                        </div>
                                        <div class="row mt-6 mb-6">
                                            <div class="col-6 d-flex align-items-center">
                                                <div class="custom-control custom-checkbox">
                                                    <input id="chkRemeberMe" runat="server" type="checkbox" class="custom-control-input" tabindex="4">
                                                    <label class="custom-control-label" for="chkRemeberMe">Remember me </label>
                                                </div>
                                            </div>
                                            <div class="col-6 text-right">
                                                <asp:LinkButton ID="lbtnForgotPassWord" runat="server" OnClick="lbtnForgotPassWord_Click"
                                                    TabIndex="5"> Forgot your password?</asp:LinkButton>
                                            </div>
                                        </div>
                                        <div>
                                            <asp:Button ID="lbtnSignIn" runat="server" ValidationGroup="LoginCheck" class="btn btn-primary btn-block" TabIndex="6" OnClick="lbtnSignIn_Click" OnClientClick="return ValidateLoginValues();" Text="Enter" />
                                            <asp:Button ID="btnProceed" runat="server" OnClick="btnProceed_Click" class="btn btn-primary btn-block" Style="display: none" />
                                        </div>
                                        <div class="mt-10">                                            
                                            <asp:Label ID="lblfootertext" runat="server"></asp:Label>
                                    <br>
                                            Powered by <a href="https://www.trinetrawireless.com/" target="_blank">Trinetra Wireless</a>
                                        </div>
                                    </form>
                                </div>

                                <div class="tsense-form" id="forgotpwdcont" visible="false" runat="server">
                                    <div class="mb-8 tsense-logo">
                                        <img src="css/Login/img/logo.png">
                                    </div>
                                    <div>
                                        <h4>Forgot your password</h4>
                                        <p class="mb-10"></p>
                                    </div>
                                    <form>
                                        <div class="form-group">
                                            <div class="input-group">
                                                <div class="input-group-prepend">
                                                    <span class="input-group-text">
                                                        <i class="fa fa-user-circle" aria-hidden="true"></i>
                                                    </span>
                                                </div>
                                                <asp:TextBox ID="txtUserNameFP" class="form-control" runat="server" placeholder="User Name" TabIndex="7" MaxLength="50"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="form-group password-field" style="display: none;">
                                            <div class="input-group">
                                                <div class="input-group-prepend">
                                                    <span class="input-group-text">
                                                        <i class="fa fa-industry" aria-hidden="true"></i>
                                                    </span>
                                                </div>
                                                <asp:TextBox ID="txtOrganizationCodeFP" class="form-control" placeholder="Organization Code" runat="server" Text="" TabIndex="8" MaxLength="3"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div>
                                            <asp:Button ID="btnOKFP" runat="server" OnClientClick="return ValidateForgotPwdValues();" ValidationGroup="ForgotPassword" class="btn btn-primary btn-block" TabIndex="9" OnClick="btnOk_Click" Text="SUBMIT" />
                                            <asp:Button ID="btnCancel" Text="CANCEL" runat="server" class="btn btn-primary btn-block" TabIndex="10" OnClick="btnCancel_Click" />
                                        </div>
                                        <div class="mt-10">
                                            Copyright © 2020 All Rights Reserved.
                                        <br />
                                            Powered by <a href="https://www.trinetrawireless.com/" target="_blank">Trinetra Wireless</a>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <asp:HiddenField ID="hdnResetPopupTarget" runat="server" />
                <cc1:ModalPopupExtender ID="mpResetPwd" PopupControlID="pnlResetPwd" TargetControlID="hdnResetPopupTarget"
                    X="280" runat="server" DynamicServicePath="" BackgroundCssClass="modalbackground"
                    CancelControlID="btnCancelPwd">
                </cc1:ModalPopupExtender>
                <asp:Panel ID="pnlResetPwd" runat="server" Style="display: none; position: absolute; top: -600px; width: 375px; height: 210px;">
                    <div id="con">
                        <table cellpadding="0" cellspacing="0" border="0" width="98%" class="popup">
                            <tr>
                                <td class="left">&nbsp;
                                </td>
                                <td>
                                    <div class="top">
                                        <h1>
                                            <asp:Label ID="lblResetPwd" Text="Change Password on First Login" runat="server"></asp:Label></h1>
                                        <div class="close">
                                            <asp:ImageButton ID="ibtnClose" OnClientClick="$find('mpResetPwd').hide(); return false;"
                                                CausesValidation="false" ImageUrl="~/images/popup-close.gif" Visible="true" runat="server" />
                                        </div>
                                        <div class="clear clearfix">
                                        </div>
                                    </div>
                                    <div class="popup-cont">
                                        <table class="form-tbl" width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label2" runat="server" Text="New Password" CssClass="label"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtNewPwd" TextMode="Password" runat="server" MaxLength="20" Width="200"
                                                        TabIndex="20" onkeypress="return chkPassword(event);"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label3" runat="server" Text="Confirm Password" CssClass="label"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtConfirmPwd" TextMode="Password" runat="server" MaxLength="20"
                                                        TabIndex="21" Width="200" onkeypress="return chkPassword(event);"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td></td>
                                                <td>
                                                    <asp:ImageButton ID="btnSavePwd" runat="server" CausesValidation="true" ValidationGroup="vgUserPwd"
                                                        TabIndex="22" OnClick="btnSavePwd_Click" ImageUrl="~/images/btn-save.jpg" />
                                                    <asp:ImageButton ID="btnCancelPwd" runat="server" class="btn" OnClick="btnCancelPwd_Click"
                                                        TabIndex="23" ImageUrl="~/images/btn-cancel.jpg" onkeydown="return setFocus(event,'txtNewPwd');" />
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </asp:Panel>
                <div id="footer" style="display: none">
                    <asp:Label ID="footer" runat="server" ForeColor="White"></asp:Label>
                </div>
                <input type="hidden" runat="server" id="hdnClientUTC" />
                <script type="text/javascript">
                    function getFooter() {
                        //document.getElementById('footer').innerHTML = "For best viewing, please use Firefox 37.0 and above (for ios 4.0 and above) / Chrome 42.0 and above / Microsoft Edge. All pop-up blocking softwares must be disabled. <br>Copyright © " + new Date().getFullYear() + " All Rights Reserved. Powered By: <a href='https://www.trinetrawireless.com/'>Trinetra Wireless</a>";
                        //document.getElementById('footer').innerHTML = "For best viewing, please use Internet Explorer 7.0 - 9.0 / Firefox 3.6 - 14 / Chrome 19 - 21 and a screen resolution of 1024x768. All pop-up blocking software must be disabled.<br>Copyright © " + new Date().getFullYear() + " All Rights Reserved. Powered By: <a href='https://www.trinetrawireless.com/'>Trinetra Wireless</a>"
                        //document.getElementById('footer').innerHTML = "This application is best viewed in 1024x768 and IE 7.0,8.0, FF 3.5 and above browsers | Copyright © " + new Date().getFullYear() + " All Rights Reserved. Powered By: <a href='https://www.trinetrawireless.com/'>Trinetra Wireless</a>";
                        //document.getElementById('footer').innerHTML = "Copyright © " + new Date().getFullYear() + " All Rights Reserved. Powered By: <a href='https://www.trinetrawireless.com/'>Trinetra Wireless</a>";
                        GetClientUTC();
                    }
                    function GetClientUTC() {
                        var now = new Date()
                        var offset = -now.getTimezoneOffset();
                        document.getElementById("hdnClientUTC").value = offset;
                    }
                </script>
            </ContentTemplate>
        </asp:UpdatePanel>

    </form>

    <script src="css/Login/js/bootstrap.min.js"></script>
    <script src="css/Login/js/demo.js"></script>
    <script src="css/Login/js/jquery.min.js"></script>
    <script src="css/Login/js/main.js"></script>
</body>
</html>
