SessionManager.aspx 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SessionManager.aspx.cs" Inherits="CLIP.eForm.Consent.Web.SessionManager" %>
  2. <!DOCTYPE html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>대구가톨릭대학교병원 세션 관리자 페이지</title>
  6. <script src="jquery-1.8.3.min.js" type="text/javascript"></script>
  7. <script src="json2.js" type="text/javascript"></script>
  8. <style type="text/css">
  9. .downloadContainer {
  10. position: relative;
  11. }
  12. .downloadContainer .mainheader {
  13. top: 0;
  14. left: 0;
  15. width: 100%;
  16. height: 60px;
  17. background-color: #fff;
  18. box-shadow: inset 0 -1px 1px #a2a2a2;
  19. }
  20. .downloadContainer .toplogo {
  21. position: absolute;
  22. left: 50%;
  23. width: 180px;
  24. height: 41px;
  25. margin-left: -90px;
  26. top: 11px;
  27. background-position: center;
  28. background-image: url('./logo.jpg');
  29. /* background-size: 180px 40px; */
  30. }
  31. .downloadContainer .download {
  32. width: 100%;
  33. margin-left: auto;
  34. margin-right: auto;
  35. display: block;
  36. margin-top: 15px;
  37. }
  38. .downloadContainer table {
  39. width: 80%;
  40. margin: 0;
  41. background: #FFFFFF;
  42. border: 1px solid #333333;
  43. border-collapse: collapse;
  44. }
  45. .downloadContainer td,
  46. th {
  47. border-bottom: 1px solid #333333;
  48. padding: 6px 16px;
  49. text-align: center;
  50. }
  51. .downloadContainer th {
  52. background: #EEEEEE;
  53. }
  54. </style>
  55. <script type="text/javascript">
  56. var removeSession = function () {
  57. var userId = $("#userId").val();
  58. $.ajax({
  59. type: "POST",
  60. url: "SessionManager.aspx/removeSession",
  61. async: false,
  62. data: '{"userId":"' + userId + '"}',
  63. contentType: "application/json; charset=utf-8",
  64. dataType: "json",
  65. success: function (msg) {
  66. //alert(msg);
  67. if (msg.d) {
  68. alert(userId + " 사용자 세션이 해제되었습니다.");
  69. } else {
  70. alert(userId + " 사용자 세션이 해제가 실패하였습니다.");
  71. }
  72. }
  73. });
  74. };
  75. </script>
  76. </head>
  77. <body>
  78. <div class="SessionContainer">
  79. <!--로고-->
  80. <div class="mainheader">
  81. <div class="toplogo"></div>
  82. </div>
  83. <!--다운로드-->
  84. <div class="Session" align="center">
  85. <table>
  86. <thead>
  87. <tr>
  88. <th>세션 해제 ID</th>
  89. <%--<th>관리자 ID</th>--%>
  90. <th></th>
  91. </tr>
  92. </thead>
  93. <tbody>
  94. <tr>
  95. <td><input id="userId" /></td>
  96. <%--<td><input name="managerId" /></td>--%>
  97. <td><button id="submit" onclick="removeSession();">실행</button></td>
  98. </tr>
  99. </tbody>
  100. </table>
  101. </div>
  102. </div>
  103. </body>
  104. </html>