1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
- <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
- <%@ 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 deleteConfirm(){
- alertBox({ type : "confirm",
- txt : "정말로 삭제할까요? (기록된 환자의 모든정보가 삭제되며 복구가 불가능합니다)",
- callBack : function( result ){
- console.log( result );
- if( result ){
- $( "#pForm" ).attr( "action", "./delete" );
- $( "#pForm" ).submit();
- }
- }
- });
- return false;
- }
- </script>
- </head>
- <body>
- <div class="wrapper">
- <jsp:include page="${data._INCLUDE}/sidebar.jsp"></jsp:include>
- <div class="main">
- <jsp:include page="${data._INCLUDE}/top.jsp"></jsp:include>
- <main class="content">
- <div class="container-fluid p-0">
- <!-- 환자관리 : 신규환자 등록 START -->
- <div class="row">
- <div class="col-12 col-lg-6">
- <h1 class="h3 mb-3">
- 환자정보
- </h1>
- </div>
- <div class="col-12 col-lg-6 text-right">
- <nav aria-label="breadcrumb">
- <ol class="breadcrumb">
- <li class="breadcrumb-item"><a href="javscript:;">Home</a></li>
- <li class="breadcrumb-item">환자관리</li>
- <li class="breadcrumb-item active">환자정보 조회</li>
- </ol>
- </nav>
- </div>
- </div>
- <div class="row">
- <div class="col-12">
- <div class="card">
- <div class="card-body">
- <form method="post" id="pForm">
- <jsp:include page="${data._INCLUDE}/patientInfo.jsp"></jsp:include>
- <div class="row mt-3">
- <div class="col-12">
- <div class="text-right">
- <c:if test="${data._SES_GROUP_IDX eq '2'}">
- <button type="button" class="btn btn-danger w100" onclick="deleteConfirm();">삭제</button>
- </c:if>
-
- <c:if test="${data._SES_GROUP_IDX ne '1'}">
- <button type="button" class="btn btn-secondary w100" onclick="location.href='./edit?patientIdx=${patientIdx}';">수정</button>
- </c:if>
-
- <button type="button" class="btn btn-primary w100" onclick="location.href='./list';">확인</button>
- </div>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- <!-- 환자관리 : 신규환자 등록 END -->
- </div>
- </main>
- <jsp:include page="${data._INCLUDE}/footer.jsp"></jsp:include>
- </div>
- </div>
- </body>
- </html>
|