|
@@ -4,6 +4,17 @@
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
|
|
pageEncoding="UTF-8"%>
|
|
|
<jsp:include page="${data._INCLUDE}/header.jsp"></jsp:include>
|
|
|
+<script>
|
|
|
+$( function(){
|
|
|
+ $( "#newForm" ).validate({
|
|
|
+ rules: {
|
|
|
+ phoneNumber : {
|
|
|
+ phoneValid : true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+})
|
|
|
+</script>
|
|
|
</head>
|
|
|
<body>
|
|
|
<div class="wrapper">
|
|
@@ -37,105 +48,92 @@
|
|
|
<div class="card-header">
|
|
|
<h1 class="h4">- 사용자 정보 수정</h1>
|
|
|
</div>
|
|
|
- <div class="card-body">
|
|
|
- <table class="table mobile-table">
|
|
|
- <colgroup>
|
|
|
- <col style="width:15%">
|
|
|
- <col style="width:35%">
|
|
|
- <col style="width:15%">
|
|
|
- <col style="width:35%">
|
|
|
- </colgroup>
|
|
|
- <tr>
|
|
|
- <th>아이디</th>
|
|
|
- <td>
|
|
|
- <c:out value="${info.id}" />
|
|
|
- </td>
|
|
|
- <th>이름</th>
|
|
|
- <td>
|
|
|
- <c:out value="${info.name}" />
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>현재 비밀번호</th>
|
|
|
- <td colspan="3">
|
|
|
- <input type="text" class="form-control" name="password" placeholder="정보수정을 위해 비밀번호를 입력해주세요." required>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>신규 비밀번호</th>
|
|
|
- <td colspan="3">
|
|
|
- <input type="text" class="form-control" name="passwordNew" placeholder="비밀번호 변경시에만 입력해주세요.(영문, 숫자, 특수문자를 혼합하여 8 ~ 15자 이내)">
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>비밀번호 확인</th>
|
|
|
- <td colspan="3">
|
|
|
- <input type="text" class="form-control" name="passwordConfirm" placeholder="신규 비밀번호 확인을 위해 비밀번호를 한번 더 입력하세요.">
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>휴대폰번호</th>
|
|
|
- <td>
|
|
|
- <input type="text" class="form-control" name="phoneNumber" value="${info.phoneNumber}" placeholder="01012341234" onkeypress="onlyNumber();">
|
|
|
- </td>
|
|
|
- <th>치료센터</th>
|
|
|
- <td>
|
|
|
- <select class="custom-select" name="centerCode">
|
|
|
- <c:forEach var="i" items="${centerList}">
|
|
|
- <option value="${i.centerCode}" <c:if test="${i.centerCode eq centerCode}"> selected="selected"</c:if>><c:out value="${i.centerName}" /></option>
|
|
|
- </c:forEach>
|
|
|
-
|
|
|
- <!-- <option selected="">센터-2</option> -->
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>권한</th>
|
|
|
- <td>
|
|
|
- <select class="custom-select" name="groupIdx">
|
|
|
- <c:forEach var="gl" items="${groupList}">
|
|
|
- <option value="${gl.encryptIdx}" <c:if test="${gl.encryptIdx eq groupIdx}"> selected="selected" </c:if> ><c:out value="${gl.groupName}"/></option>
|
|
|
- </c:forEach>
|
|
|
- <!-- <option selected="">센터-1</option>
|
|
|
- <option selected="">센터-2</option> -->
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- <th>상태</th>
|
|
|
- <td>
|
|
|
- <label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" type="radio" name="useYn" value="Y" <c:if test="${info.useYn eq 'Y'}">checked="checked"</c:if>>
|
|
|
- <span class="form-check-label">
|
|
|
- 활성화
|
|
|
- </span>
|
|
|
- </label>
|
|
|
- <label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" type="radio" name="useYn" value="N" <c:if test="${info.useYn eq 'N'}">checked="checked"</c:if>>
|
|
|
- <span class="form-check-label">
|
|
|
- 비활성화
|
|
|
- </span>
|
|
|
- </label>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>최종접속일시</th>
|
|
|
- <td>
|
|
|
- <c:out value="${info.lastLoginTime}" />
|
|
|
- </td>
|
|
|
- <th>등록일시</th>
|
|
|
- <td>
|
|
|
- <c:out value="${info.createDate}" />
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- <div class="row mt-3">
|
|
|
- <div class="col-12">
|
|
|
- <div class="text-right">
|
|
|
- <button type="button" class="btn btn-outline-primary w100" onclick="location.href='./list';">취소</button>
|
|
|
- <button type="submit" class="btn btn-primary w100">수정</button>
|
|
|
+ <form action="./edit/update" id="newForm" method="post">
|
|
|
+ <div class="card-body">
|
|
|
+ <table class="table mobile-table">
|
|
|
+ <colgroup>
|
|
|
+ <col style="width:15%">
|
|
|
+ <col style="width:35%">
|
|
|
+ <col style="width:15%">
|
|
|
+ <col style="width:35%">
|
|
|
+ </colgroup>
|
|
|
+ <tr>
|
|
|
+ <th>아이디</th>
|
|
|
+ <td>
|
|
|
+ <c:out value="${info.id}" />
|
|
|
+ <input type="hidden" name="id" value="${info.id}">
|
|
|
+ </td>
|
|
|
+ <th>이름</th>
|
|
|
+ <td>
|
|
|
+ <c:out value="${info.name}" />
|
|
|
+ <input type="hidden" name="name" value="${info.name}">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>휴대폰번호</th>
|
|
|
+ <td>
|
|
|
+ <input type="text" class="form-control" name="phoneNumber" value="${info.phoneNumber}" placeholder="01012341234" onkeypress="onlyNumber();">
|
|
|
+ </td>
|
|
|
+ <th>치료센터</th>
|
|
|
+ <td>
|
|
|
+ <c:out value="${info.centerName}" />
|
|
|
+ <!-- <select class="custom-select" name="centerCode"> -->
|
|
|
+ <%-- <c:forEach var="i" items="${centerList}"> --%>
|
|
|
+ <%-- <option value="${i.centerCode}" <c:if test="${i.centerCode eq centerCode}"> selected="selected"</c:if>><c:out value="${i.centerName}" /></option> --%>
|
|
|
+ <%-- </c:forEach> --%>
|
|
|
+
|
|
|
+ <!-- <option selected="">센터-2</option> -->
|
|
|
+ <!-- </select> -->
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>권한</th>
|
|
|
+ <td>
|
|
|
+ <select class="custom-select" name="encGroupIdx">
|
|
|
+ <c:forEach var="gl" items="${groupList}">
|
|
|
+ <option value="${gl.encryptIdx}" <c:if test="${gl.encryptIdx eq groupIdx}"> selected="selected" </c:if> ><c:out value="${gl.groupName}"/></option>
|
|
|
+ </c:forEach>
|
|
|
+ <!-- <option selected="">센터-1</option>
|
|
|
+ <option selected="">센터-2</option> -->
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th>상태</th>
|
|
|
+ <td>
|
|
|
+ <label class="form-check form-check-inline">
|
|
|
+ <input class="form-check-input" type="radio" name="useYn" value="Y" <c:if test="${info.useYn eq 'Y'}">checked="checked"</c:if>>
|
|
|
+ <span class="form-check-label">
|
|
|
+ 활성화
|
|
|
+ </span>
|
|
|
+ </label>
|
|
|
+ <label class="form-check form-check-inline">
|
|
|
+ <input class="form-check-input" type="radio" name="useYn" value="N" <c:if test="${info.useYn eq 'N'}">checked="checked"</c:if>>
|
|
|
+ <span class="form-check-label">
|
|
|
+ 비활성화
|
|
|
+ </span>
|
|
|
+ </label>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>최종접속일시</th>
|
|
|
+ <td>
|
|
|
+ <c:out value="${info.lastLoginTime}" />
|
|
|
+ </td>
|
|
|
+ <th>등록일시</th>
|
|
|
+ <td>
|
|
|
+ <c:out value="${info.createDate}" />
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <div class="row mt-3">
|
|
|
+ <div class="col-12">
|
|
|
+ <div class="text-right">
|
|
|
+ <button type="button" class="btn btn-outline-primary w100" onclick="location.href='./list';">취소</button>
|
|
|
+ <button type="submit" class="btn btn-primary w100">수정</button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </form>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|