|
@@ -5,6 +5,24 @@
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
|
|
pageEncoding="UTF-8"%>
|
|
|
<jsp:include page="${data._INCLUDE}/header.jsp"></jsp:include>
|
|
|
+<script type="text/javascript">
|
|
|
+function reset() {
|
|
|
+ var resetCheck = confirm("비밀번호를 초기화 하시겠습니까?");
|
|
|
+ if (resetCheck == true) {
|
|
|
+ getAjax("/staff/passwordReset", $("#hiddenForm").serialize(), function ( result ) {
|
|
|
+ console.log( result );
|
|
|
+ if (result === true) {
|
|
|
+ alert('비밀번호가 초기화 되었습니다.');
|
|
|
+ }
|
|
|
+ }, function(){
|
|
|
+ alert('비밀번호가 초기화에 실패하였습니다.');
|
|
|
+ }, function(){
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+</script>
|
|
|
</head>
|
|
|
<body>
|
|
|
<div class="wrapper">
|
|
@@ -14,6 +32,10 @@
|
|
|
<jsp:include page="${data._INCLUDE}/top.jsp"></jsp:include>
|
|
|
|
|
|
<main class="content">
|
|
|
+ <form id="hiddenForm">
|
|
|
+ <input type="hidden" id="staffId" name="staffId" value="<c:out value="${centerInfo.staffId}" />">
|
|
|
+ <input type="hidden" id="type" name="type" value="center">
|
|
|
+ </form>
|
|
|
<div class="container-fluid p-0">
|
|
|
<!-- 환자관리 : 신규환자 등록 START -->
|
|
|
<div class="row">
|
|
@@ -102,6 +124,7 @@
|
|
|
<div class="row mt-3">
|
|
|
<div class="col-12">
|
|
|
<div class="text-right">
|
|
|
+ <button class="btn btn-warning w150" onclick="reset();">비밀번호 초기화</button>
|
|
|
<button type="button" class="btn btn-primary w100" onclick="location.href='./list';">확인</button>
|
|
|
</div>
|
|
|
</div>
|