You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

115 lines
6.4 KiB

10 months ago
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Swift.web.SendMoney.Default" %>
  2. <!DOCTYPE html>
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head runat="server">
  5. <meta charset="utf-8" />
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1" />
  8. <meta name="description" content="" />
  9. <meta name="author" content="" />
  10. <title><%=Swift.web.Library.GetStatic.ReadWebConfig("companyName","") %> - Agent Login</title>
  11. <link href="../ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
  12. <link href="../ui/css/waves.min.css" type="text/css" rel="stylesheet" />
  13. <!-- <link rel="stylesheet" href="css/nanoscroller.css">-->
  14. <link href="../ui/css/menu.css" type="text/css" rel="stylesheet" />
  15. <link href="../ui/css/style.css" type="text/css" rel="stylesheet" />
  16. <link href="../ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
  17. <%-- <link rel="icon" type="image/ico" sizes="32x32" href="../ui/index/images/favicon.ico">--%>
  18. <link rel="icon" type="image/ico" sizes="32x32" href="../ui/index/images/ime-london.ico" />
  19. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  20. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  21. <!--[if lt IE 9]>
  22. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  23. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  24. <![endif]-->
  25. </head>
  26. <body>
  27. <div onkeypress="return checkSubmit(event)">
  28. <div class="login-bg">
  29. <div class="over-bg">
  30. <div class="container">
  31. <div class="row">
  32. <div class="account-col">
  33. <div class="login-head">
  34. <h1>Agent Login</h1>
  35. </div>
  36. <div id="msg" runat="server" class="error">
  37. <div class="alert alert-danger" runat="server" id="errMsg" visible="false"></div>
  38. </div>
  39. <div class="login-body">
  40. <form role="form" id="loginForm" runat="server">
  41. <div class="form-group">
  42. <label for="exampleInputPassword1">Login Branch <span class="notifyRequired">*</span></label>
  43. <asp:DropDownList ID="ddlBranch" runat="server" CssClass="form-control" required="true"></asp:DropDownList>
  44. </div>
  45. <div class="form-group" id="Google2FAuthDivCode" runat="server">
  46. <label for="exampleInputPassword1">Employee ID <span class="notifyRequired">*</span></label>
  47. <asp:TextBox class="form-control" ID="employeeId" runat="server" placeholder="Enter Employee ID" required="true" autocomplete="off"></asp:TextBox>
  48. </div>
  49. <div class="form-group">
  50. <label for="exampleInputEmail1">User Name <span class="notifyRequired">*</span></label>
  51. <asp:TextBox class="form-control" ID="username" placeholder="Enter Username" runat="server" required="true" autocomplete="off"></asp:TextBox>
  52. </div>
  53. <div class="form-group">
  54. <label for="exampleInputPassword1">Password <span class="notifyRequired">*</span></label>
  55. <asp:TextBox class="form-control" ID="pwd" runat="server" placeholder="Enter Password" TextMode="Password" required="true" autocomplete="off"></asp:TextBox>
  56. </div>
  57. <div class="form-group" id="Google2FAuthDiv" runat="server">
  58. <label for="verificationCode">Google Auth Code<span class="notifyRequired">*</span></label>
  59. <asp:TextBox class="form-control" ID="verificationCode" Text="" placeholder="Enter Google Auth Code" runat="server"></asp:TextBox>
  60. </div>
  61. <div class="form-group">
  62. <div class="checkbox checkbox-primary">
  63. <input runat="server" id="checkbox_login_as_tab" type="checkbox">
  64. <label for="checkbox_login_as_tab">Login in Tab </label>
  65. </div>
  66. </div>
  67. <%--<button type="button" class="btn btn-default" id="btnLogin">Submit</button>--%>
  68. <asp:Button ID="btnLogin" class="btn btn-default" runat="server" Text="Submit" OnClientClick="return CheckValidaion();" OnClick="btnLogin_Click" />
  69. </form>
  70. </div>
  71. <div class="login-logo">
  72. <i class="fa fa-user" aria-hidden="true"></i>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. <!-- jQuery -->
  81. <script src="../ui/js/jquery.min.js" type="text/javascript"></script>
  82. <script src="../ui/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
  83. <script src="../js/functions.js"></script>
  84. <script type="text/javascript">
  85. history.pushState(null, null, location.href);
  86. window.onpopstate = function () {
  87. history.go(1);
  88. };
  89. function checkSubmit(e) {
  90. if (e && e.keyCode == 13) {
  91. }
  92. }
  93. function CheckValidaion() {
  94. var reqField = '';
  95. if ('<%=use2FA%>' == 'Y') {
  96. reqField = "<%=username.ClientID%>,<%=pwd.ClientID%>,<%=verificationCode.ClientID%>,";
  97. }
  98. else {
  99. reqField = "<%=username.ClientID%>,<%=pwd.ClientID%>,<%=employeeId.ClientID%>,";
  100. }
  101. if (ValidRequiredField(reqField) === false) {
  102. return false;
  103. }
  104. return true;
  105. };
  106. </script>
  107. </body>
  108. </html>