<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorate="~{/web/layout/userSubMenuLayout}">
<th:block layout:fragment="layout_css">
    <link rel="stylesheet" href="/css/web/customer_sub.css">
    <!-- <link rel="stylesheet" href="/css/web/modal.css?v1.1"> -->
</th:block>

<th:block layout:fragment="layout_top_script">
    <script>
        let menuClass = "[[${param.menuClass}]]"||"";
        let selectUseYn = "[[${selectUseYn}]]" ? "[[${selectUseYn}]]" : "N";
        let updateUseYn = "[[${updateUseYn}]]" ? "[[${updateUseYn}]]" : "N";
        let muUserId = "[[${param.muUserId}]]";

        /* 검색 관련 변수 */
        let userSearchKeywordParam = "[[${param.userSearchKeywordParam}]]";
        let userSort               = "[[${param.userSort}]]";
        let userDir                = "[[${param.userDir}]]";
        let userStart              = "[[${param.userStart}]]"==""?0:"[[${param.userStart}]]";
        let userLimit              = "[[${param.userLimit}]]"==""?500:"[[${param.userLimit}]]";

        let search_nationality     = "[[${param.nationality}]]"??"";
        let search_userType        = "[[${param.userType}]]"??"";
        let search_membershipYn    = "[[${param.membershipYn}]]"??"";
    </script>
</th:block>

<th:block layout:fragment="layout_content">
    <!-- 센터쪽 -->
    <div class="center_box">
        <p class="page_title">고객 상세정보</p>

        <div class="info_box user">
            <div class="info">
                <p class="title">
                    고객 정보
                    <span id="userNumber">U00000000-0000</span>
                </p>
                <div class="form_box">
                    <div class="input_box essential">
                        <label>국적</label>
                        <div class="select_box dropdown">
                            <button class="label" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">국적</button>
                            <input type="hidden" id="nationalityCd">
                            <ul class="select_option_list dropdown-menu" id="nationality">
<!--                                <li class="option_list_item local" value="KR">한국(KR)</li>-->
<!--                                <li class="option_list_item foreigner" value="JP">일본(JP)</li>-->
<!--                                <li class="option_list_item foreigner" value="CH">중국(CH)</li>-->
<!--                                <li class="option_list_item foreigner" value="US">미국(US)</li>-->
<!--                                <li class="option_list_item foreigner" value="VN">베트남(VN)</li>-->
                            </ul>
                        </div>
                    </div>
                    <div class="input_box essential">
                        <label>성함</label>
                        <input id="userName" type="text" placeholder="이름">
                    </div>
                    <div class="input_box">
                        <label>생년월일</label>
                        <div class="date_box">
                            <input id="birthday" placeholder="연도-월-일"/>
                            <img class="userBirthday" src="/image/web/calendar.svg" alt="calendar">
                        </div>
                        <p class="identity" id="identity"></p>
                    </div>
                    <div class="input_box local_box" id="rrn">
                        <label>주민등록번호</label>
                        <input id="userRrn1" type="text" placeholder="">
                        <span class="division">-</span>
                        <input id="userRrn2" type="text" placeholder="" autocomplete="off">
                    </div>
                    <div class="input_box identification foreigner_box">
                        <label>식별정보</label>
                        <div class="select_box dropdown">
                            <button class="label" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">여권번호</button>
                            <ul class="select_option_list dropdown-menu" id="identification">
                                <li class="option_list_item passport_number_option selected" id="pno">여권번호</li>
                                <li class="option_list_item foreigner_number_option" id="arc">외국인등록번호</li>
                            </ul>
                        </div>
                        <div class="passport_number_box">
                            <input id="userPno" type="text" placeholder="여권번호">
                        </div>
                        <div class="foreigner_number_box">
                            <input class="first" id="userArc1" type="text" placeholder="">
                            <span class="slash">-</span>
                            <input id="userArc2" type="text" placeholder="" autocomplete="off">
                        </div>
                    </div>
                    <div class="input_box">
                        <label>성별</label>
                        <div class="gender">
                            <input type="radio" name="gender" id="female" value="F">
                            <label for="female">여자</label>
                        </div>
                        <div class="gender">
                            <input type="radio" name="gender" id="male" value="M">
                            <label for="male">남자</label>
                        </div>
                    </div>
                    <div class="input_box">
                        <label>고객구분</label>
                        <div class="select_box dropdown">
                            <button class="label" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">고객구분</button>
                            <input type="hidden" id="userTypeCd">
                            <ul class="select_option_list dropdown-menu" id="userType">
<!--                                <li class="option_list_item" value="A"><img src="/image/web/fruit1.svg" alt="고객구분"></li>-->
<!--                                <li class="option_list_item" value="B"><img src="/image/web/fruit2.svg" alt="고객구분"></li>-->
<!--                                <li class="option_list_item" value="C"><img src="/image/web/fruit3.svg" alt="고객구분"></li>-->
                            </ul>
                        </div>
                    </div>
                    <div class="input_box essential">
                        <label>연락처</label>
                        <input id="phoneNumber" name="phoneNumber" type="tel" placeholder="">
                        <label class="sub_label">보조 연락처</label>
                        <input id="phoneNumber2" name="phoneNumber" type="tel" placeholder="">
                    </div>
                    <!--<div class="input_box">
                        <label>이메일</label>
                        <input id="email" type="text">
                    </div>
                    <div class="input_box">
                        <label>주소</label>
                        <input class="address" id="address" type="text" readonly="readonly">
                        <button class="address_btn" id="searchAddr" type="button">주소 찾기</button>
                        <input class="address_detail" id="addressDetails" type="text">
                    </div>-->
                    <div class="input_box">
                        <label>사진 거부</label>
                        <div class="gender">
                            <input type="radio" name="refusePhotoYn" id="refusePhotoY" value="Y">
                            <label for="refusePhotoY">예</label>
                        </div>
                        <div class="gender">
                            <input type="radio" name="refusePhotoYn" id="refusePhotoN" value="N">
                            <label for="refusePhotoN">아니오</label>
                        </div>
                    </div>
                    <div class="input_box">
                        <label>SMS 수신여부</label>
                        <div class="gender">
                            <input type="radio" name="smsYn" id="smsY" value="Y">
                            <label for="smsY">예</label>
                        </div>
                        <div class="gender">
                            <input type="radio" name="smsYn" id="smsN" value="N">
                            <label for="smsN">아니오</label>
                        </div>
                    </div>
                    <p class="title">앱 계정 정보</p>
                    <div class="input_box">
                        <label>앱 가입상태</label>
                        <input id="appUseYn" type="text" readonly>
                    </div>
                    <div class="input_box">
                        <label>계정명</label>
                        <input id="membershipAccount" type="text" readonly>
                    </div>
                    <div class="input_box">
                        <label>앱 가입일</label>
                        <input id="appIntroDate" type="text" readonly>
                    </div>
                    <div class="input_box">
                        <label>앱 탈퇴일</label>
                        <input id="leaveDate" type="text" readonly>
                    </div>

                    <p class="title">기타 정보</p>
                    <div class="input_box">
                        <label>관심진료</label>
                        <div class="select_box dropdown">
                            <button class="label" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">관심진료 선택</button>
                            <ul class="select_option_list dropdown-menu" id="treatment">
                            </ul>
                        </div>
                    </div>
                    <div class="input_box two">
                        <div>
                            <label>방문경로</label>
                            <div class="select_box dropdown">
                                <button class="label" type="button" data-toggle="dropdown" aria-haspopup="true"
                                        aria-expanded="false">방문경로</button>
                                <input type="hidden" id="channelCd">
                                <ul class="select_option_list dropdown-menu" id="channel">
                                </ul>
                            </div>
                        </div>
                        <div class="last">
                            <label>추천인</label>
                            <div class="search_box">
                                <button class="search_btn"><img src="/image/web/search_B.svg" alt="검색"/></button>
                                <input id="recommendUserId" type="text" placeholder="추천인 검색" readonly>
                            </div>
                        </div>
                    </div>
                    <p class="title">특이 사항 <span>*시술 및 약물 관련 특이사항 기록</span></p>
                    <div class="input_box">
                        <textarea id="etc"></textarea>
                    </div>
                    <p class="title">고객 메모</p>
                    <div class="input_box">
                        <textarea id="memo"></textarea>
                    </div>
                    <div class="button_box">
                        <button id="updateBtn">수정</button>
                    </div>
                </div>
            </div>

            <div class="body_info_box">
                <p class="title">고객 정보</p>
                <a href="#" id="physicalInfoPage">신체 기록 확인<img src='/image/web/right_arrow_B.svg'/></a>
                <div class="body_info">
                    <p id="regDt"></p>
                    <ul>
                        <li>
                            <p>키</p>
                            <p id="height">- cm</p>
                        </li>
                        <li>
                            <p>몸무게</p>
                            <p id="weight">- kg</p>
                        </li>
                        <li>
                            <p>골격근량</p>
                            <p id="muscle">- kg</p>
                        </li>
                        <li>
                            <p>체지방량</p>
                            <p id="fatMass">- kg</p>
                        </li>
                        <li>
                            <p>체지방률</p>
                            <p id="fatPercent">- %</p>
                        </li>
                        <li>
                            <p>BMI</p>
                            <p id="bmi">- kg/m2</p>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <form id="frm" onsubmit="return false;"></form>
</th:block>
<th:block layout:fragment="layout_script">
    <script src="/js/web/user/user.js"></script>
    <script src="/js/web/user/userUpdate.js"></script>
</th:block>
</html>