123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SessionManager.aspx.cs" Inherits="CLIP.eForm.Consent.Web.SessionManager" %>
- <!DOCTYPE html>
- <head>
- <meta charset="UTF-8">
- <title>대구가톨릭대학교병원 세션 관리자 페이지</title>
- <script src="jquery-1.8.3.min.js" type="text/javascript"></script>
- <script src="json2.js" type="text/javascript"></script>
- <style type="text/css">
- .downloadContainer {
- position: relative;
- }
- .downloadContainer .mainheader {
- top: 0;
- left: 0;
- width: 100%;
- height: 60px;
- background-color: #fff;
- box-shadow: inset 0 -1px 1px #a2a2a2;
- }
- .downloadContainer .toplogo {
- position: absolute;
- left: 50%;
- width: 180px;
- height: 41px;
- margin-left: -90px;
- top: 11px;
- background-position: center;
- background-image: url('./logo.jpg');
- /* background-size: 180px 40px; */
- }
- .downloadContainer .download {
- width: 100%;
- margin-left: auto;
- margin-right: auto;
- display: block;
- margin-top: 15px;
- }
- .downloadContainer table {
- width: 80%;
- margin: 0;
- background: #FFFFFF;
- border: 1px solid #333333;
- border-collapse: collapse;
- }
- .downloadContainer td,
- th {
- border-bottom: 1px solid #333333;
- padding: 6px 16px;
- text-align: center;
- }
- .downloadContainer th {
- background: #EEEEEE;
- }
- </style>
- <script type="text/javascript">
- var removeSession = function () {
- var userId = $("#userId").val();
-
- $.ajax({
- type: "POST",
- url: "SessionManager.aspx/removeSession",
- async: false,
- data: '{"userId":"' + userId + '"}',
- contentType: "application/json; charset=utf-8",
- dataType: "json",
- success: function (msg) {
- //alert(msg);
- if (msg.d) {
- alert(userId + " 사용자 세션이 해제되었습니다.");
- } else {
- alert(userId + " 사용자 세션이 해제가 실패하였습니다.");
- }
- }
- });
- };
- </script>
- </head>
- <body>
- <div class="SessionContainer">
- <!--로고-->
- <div class="mainheader">
- <div class="toplogo"></div>
- </div>
- <!--다운로드-->
- <div class="Session" align="center">
- <table>
- <thead>
- <tr>
- <th>세션 해제 ID</th>
- <%--<th>관리자 ID</th>--%>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><input id="userId" /></td>
- <%--<td><input name="managerId" /></td>--%>
- <td><button id="submit" onclick="removeSession();">실행</button></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </body>
- </html>
|