edit.jsp 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  2. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  3. <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
  4. <%@ page language="java" contentType="text/html; charset=UTF-8"
  5. pageEncoding="UTF-8"%>
  6. <jsp:include page="${data._INCLUDE}/header.jsp"></jsp:include>
  7. <script>
  8. $( function(){
  9. $( "#newForm" ).validate({
  10. rules: {
  11. phoneNumber : {
  12. phoneValid : true
  13. }
  14. }
  15. });
  16. })
  17. </script>
  18. </head>
  19. <body>
  20. <div class="wrapper">
  21. <jsp:include page="${data._INCLUDE}/sidebar.jsp"></jsp:include>
  22. <div class="main">
  23. <jsp:include page="${data._INCLUDE}/top.jsp"></jsp:include>
  24. <main class="content">
  25. <div class="container-fluid p-0">
  26. <!-- 환자관리 : 신규환자 등록 START -->
  27. <div class="row">
  28. <div class="col-12 col-lg-6">
  29. <h1 class="h3 mb-3">
  30. 정보변경
  31. </h1>
  32. </div>
  33. <div class="col-12 col-lg-6 text-right">
  34. <nav aria-label="breadcrumb">
  35. <ol class="breadcrumb">
  36. <li class="breadcrumb-item"><a href="javscript:;">Home</a></li>
  37. <li class="breadcrumb-item">의료진 관리</li>
  38. <li class="breadcrumb-item active">의료진 정보 수정</li>
  39. </ol>
  40. </nav>
  41. </div>
  42. </div>
  43. <div class="row">
  44. <div class="col-12">
  45. <div class="card">
  46. <div class="card-header">
  47. <h1 class="h4">- 사용자 정보 수정</h1>
  48. </div>
  49. <form action="./edit/update" id="newForm" method="post">
  50. <div class="card-body">
  51. <table class="table mobile-table">
  52. <colgroup>
  53. <col style="width:15%">
  54. <col style="width:35%">
  55. <col style="width:15%">
  56. <col style="width:35%">
  57. </colgroup>
  58. <tr>
  59. <th>아이디</th>
  60. <td>
  61. <c:out value="${info.id}" />
  62. <input type="hidden" name="id" value="${info.id}">
  63. </td>
  64. <th>이름</th>
  65. <td>
  66. <c:out value="${info.name}" />
  67. <input type="hidden" name="name" value="${info.name}">
  68. </td>
  69. </tr>
  70. <tr>
  71. <th>휴대폰번호</th>
  72. <td>
  73. <input type="text" class="form-control" name="phoneNumber" value="${info.phoneNumber}" placeholder="01012341234" onkeypress="onlyNumber();">
  74. </td>
  75. <th>치료센터</th>
  76. <td>
  77. <c:out value="${info.centerName}" />
  78. <!-- <select class="custom-select" name="centerCode"> -->
  79. <%-- <c:forEach var="i" items="${centerList}"> --%>
  80. <%-- <option value="${i.centerCode}" <c:if test="${i.centerCode eq centerCode}"> selected="selected"</c:if>><c:out value="${i.centerName}" /></option> --%>
  81. <%-- </c:forEach> --%>
  82. <!-- <option selected="">센터-2</option> -->
  83. <!-- </select> -->
  84. </td>
  85. </tr>
  86. <tr>
  87. <th>권한</th>
  88. <td>
  89. <select class="custom-select" name="encGroupIdx">
  90. <c:forEach var="gl" items="${groupList}">
  91. <option value="${gl.encryptIdx}" <c:if test="${gl.encryptIdx eq groupIdx}"> selected="selected" </c:if> ><c:out value="${gl.groupName}"/></option>
  92. </c:forEach>
  93. <!-- <option selected="">센터-1</option>
  94. <option selected="">센터-2</option> -->
  95. </select>
  96. </td>
  97. <th>상태</th>
  98. <td>
  99. <label class="form-check form-check-inline">
  100. <input class="form-check-input" type="radio" name="useYn" value="Y" <c:if test="${info.useYn eq 'Y'}">checked="checked"</c:if>>
  101. <span class="form-check-label">
  102. 활성화
  103. </span>
  104. </label>
  105. <label class="form-check form-check-inline">
  106. <input class="form-check-input" type="radio" name="useYn" value="N" <c:if test="${info.useYn eq 'N'}">checked="checked"</c:if>>
  107. <span class="form-check-label">
  108. 비활성화
  109. </span>
  110. </label>
  111. </td>
  112. </tr>
  113. <tr>
  114. <th>최종접속일시</th>
  115. <td>
  116. <c:out value="${info.lastLoginTime}" />
  117. </td>
  118. <th>등록일시</th>
  119. <td>
  120. <c:out value="${info.createDate}" />
  121. </td>
  122. </tr>
  123. </table>
  124. <div class="row mt-3">
  125. <div class="col-12">
  126. <div class="text-right">
  127. <button type="button" class="btn btn-outline-primary w100" onclick="location.href='./list';">취소</button>
  128. <button type="submit" class="btn btn-primary w100">수정</button>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. </form>
  134. </div>
  135. </div>
  136. </div>
  137. <!-- 환자관리 : 신규환자 등록 END -->
  138. </div>
  139. </main>
  140. <jsp:include page="${data._INCLUDE}/footer.jsp"></jsp:include>
  141. </div>
  142. </div>
  143. </body>
  144. </html>