<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<jsp:include page="${data._INCLUDE}/header.jsp"></jsp:include>
</head>
<body>
    <div class="wrapper">
        <jsp:include page="${data._INCLUDE}/sidebar.jsp"></jsp:include>
        
        <div class="main">
            <nav class="navbar navbar-expand navbar-light bg-white">
                <a class="sidebar-toggle d-flex mr-2">
                    <i class="hamburger align-self-center"></i>
                </a>

                <div class="navbar-collapse collapse">
                    <ul class="navbar-nav ml-auto">
                        <li class="nav-item dropdown">
                            <a class="nav-icon dropdown-toggle d-inline-block d-sm-none" href="#" data-toggle="dropdown">
                                <i class="align-middle" data-feather="settings"></i>
                            </a>

                            <a class="nav-link dropdown-toggle d-none d-sm-inline-block" href="#" data-toggle="dropdown">
                               <span class="text-dark">홍길동 선생님</span>
                            </a>
                            <div class="dropdown-menu dropdown-menu-right">
                                <a class="dropdown-item" href="pages-profile.html"><i class="align-middle mr-1" data-feather="user"></i> 정보변경</a>
                                <a class="dropdown-item" href="#"><i class="align-middle mr-1" data-feather="pie-chart"></i> 로그아웃</a>
                            </div>
                        </li>
                    </ul>
                </div>
            </nav>

            <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-header">
                                    <h1 class="h4">- 사용자 정보조회</h1>
                                </div>
                                <div class="card-body">
                                    <div class="row mb-3">
                                        <div class="col-12">
                                            <div class="text-right">
                                                <button class="btn btn-primary w100" onclick="location.href='./edit?staffId=${info.id}&centerCode=${info.centerCode}&groupIdx=${info.groupIdx}';">수정</button>
                                            </div>
                                        </div>
                                    </div>
                                    <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>
                                                <c:out value="${info.phoneNumber}" />
                                            </td>
                                            <th>치료센터</th>
                                            <td>
                                                <c:out value="${info.centerName}" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>상태</th>
                                            <td colspan="3">
                                                <c:choose>
                                                    <c:when test="${info.useYn == 'Y'}">
                                                        활성
                                                    </c:when>
                                                    <c:otherwise>
                                                        비활성
                                                    </c:otherwise>
                                                
                                                </c:choose>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>최종접속일시</th>
                                            <td>
                                                <c:out value="${info.lastLoginTime}" />
                                            </td>
                                            <th>등록일시</th>
                                            <td>
                                                <c:out value="${info.createDate}" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>변경일시</th>
                                            <td>
                                                <c:out value="${info.updateDate}" />
                                            </td>
                                            <th>처리자</th>
                                            <td>
                                                <c:out value="${info.updateById}" />
                                            </td>
                                        </tr>
                                    </table>
                                    <div class="row mt-3">
                                        <div class="col-12">
                                            <div class="text-right">
                                                <button class="btn btn-primary w100" onclick="location.href='./list';">확인</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- 환자관리 : 신규환자 등록 END -->
                </div>
            </main>

            <jsp:include page="${data._INCLUDE}/footer.jsp"></jsp:include>
        </div>
    </div>
</body>
</html>