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.

111 lines
3.5 KiB

  1. <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Swift.Master.cs" EnableViewState="false" Inherits="Swift.web.Swift" %>
  2. <%@ Import Namespace="Swift.web.Library" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" >
  5. <head id="Head1" runat="server">
  6. <title>IME Remittance System 1.0 !</title>
  7. <asp:ContentPlaceHolder ID="head" runat="server"></asp:ContentPlaceHolder>
  8. <script src="greybox/AJS.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. var tim;
  11. document.onkeydown = KeyDownHandler;
  12. document.onkeyup = KeyUpHandler;
  13. var oldMenuId = "divMenu";
  14. var CTRL = false;
  15. var SHIFT = false;
  16. var ALT = false;
  17. var CHAR_CODE = -1;
  18. function KeyDownHandler(e) {
  19. var x = '';
  20. if (document.all) {
  21. var evnt = window.event;
  22. x = evnt.keyCode;
  23. }
  24. else {
  25. x = e.keyCode;
  26. }
  27. DetectKeys(x, true);
  28. Lock();
  29. }
  30. function KeyUpHandler(e) {
  31. var x = '';
  32. if (document.all) {
  33. var evnt = window.event;
  34. x = evnt.keyCode;
  35. }
  36. else {
  37. x = e.keyCode;
  38. }
  39. DetectKeys(x, false);
  40. Lock();
  41. }
  42. function DetectKeys(KeyCode, IsKeyDown) {
  43. if (KeyCode == '16') {
  44. SHIFT = IsKeyDown;
  45. CHAR_CODE = -1;
  46. }
  47. else if (KeyCode == '17') {
  48. CTRL = IsKeyDown;
  49. CHAR_CODE = -1;
  50. }
  51. else if (KeyCode == '18') {
  52. ALT = IsKeyDown;
  53. CHAR_CODE = -1;
  54. }
  55. else {
  56. if (IsKeyDown)
  57. CHAR_CODE = KeyCode;
  58. else
  59. CHAR_CODE = -1;
  60. }
  61. }
  62. function Lock() {
  63. if (CTRL && CHAR_CODE == 76) {
  64. PopUpLockScreen();
  65. }
  66. }
  67. function PopUpLockScreen() {
  68. var param = "dialogHeight:1500px;dialogWidth:1500px;dialogLeft:0;dialogTop:-50px;center:yes";
  69. var res = PopUpWindow("/Lock.aspx", param);
  70. if (res == "undefined" || res == null)
  71. PopUpLockScreen();
  72. else if (res == "0") { }
  73. else if (res == "-1") {
  74. window.location.replace("/Logout.aspx");
  75. }
  76. }
  77. </script>
  78. </head>
  79. <body >
  80. <form id="form1" runat="server">
  81. <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
  82. </asp:ScriptManager>
  83. <div id="MainPlaceHolderMainDiv" style = "align:left; width:1024px;">
  84. <link href="css/style.css" rel="stylesheet" type="text/css" />
  85. <link href="css/swift_component.css" rel="stylesheet" type="text/css" />
  86. <asp:ContentPlaceHolder ID="MainPlaceHolder" runat="server">
  87. <p style="width:333%; height: 23px; margin-bottom: 0px;">&nbsp;</p>
  88. </asp:ContentPlaceHolder>
  89. </div>
  90. </form>
  91. </body>
  92. </html>
  93. <script type="text/javascript">
  94. var urlRoot = "<%=GetStatic.GetUrlRoot() %>";
  95. function PopUpTransaction(popUpUrl) {
  96. var url = urlRoot + popUpUrl;
  97. var param = "dialogHeight:1500px;dialogWidth:1500px;dialogLeft:0;dialogTop:0;center:yes";
  98. this.PopUpWindow(url, param);
  99. }
  100. </script>