<!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/homeLayout}">
	<th:block layout:fragment="layout_css">
		<link rel="stylesheet" href="/css/web/hospital_employee_sub.css?v1.1">
		<link rel="stylesheet" href="/css/web/modal_hospital_employee_sub.css?v1.1">
	</th:block>

<th:block layout:fragment="layout_top_script">
<script src="/js/web/common_option.js"></script>
<script>
let menuClass     = "[[${param.menuClass}]]"==""?"":"[[${param.menuClass}]]";

let selectUseYn   = "[[${selectUseYn}]]"==""?"N":"[[${selectUseYn}]]";
let insertUseYn   = "[[${insertUseYn}]]"==""?"N":"[[${insertUseYn}]]";
let updateUseYn   = "[[${updateUseYn}]]"==""?"N":"[[${updateUseYn}]]";
let deleteUseYn   = "[[${deleteUseYn}]]"==""?"N":"[[${deleteUseYn}]]";
let downloadUseYn = "[[${downloadUseYn}]]"==""?"N":"[[${downloadUseYn}]]";

/* 검색 관련 변수 */
let memberSearchKeywordParam = "[[${param.memberSearchKeywordParam}]]";
let memberSort               = "[[${param.memberSort}]]";
let memberDir                = "[[${param.memberDir}]]";
let memberStart              = "[[${param.memberStart}]]"==""?0:"[[${param.memberStart}]]";
let memberLimit              = "[[${param.memberLimit}]]"==""?100:"[[${param.memberLimit}]]";

let memberSearchGroupId      = "[[${param.memberSearchGroupId}]]"==""?"":"[[${param.memberSearchGroupId}]]";
let memberSearchDutyId       = "[[${param.memberSearchDutyId}]]"==""?"":"[[${param.memberSearchDutyId}]]";
let memberSearchAuthId       = "[[${param.memberSearchAuthId}]]"==""?"":"[[${param.memberSearchAuthId}]]";

let muMemberId               = "[[${param.muMemberId}]]";

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

	<div class="info_box">
		<div class="info">
			<p class="title first">기본정보</p>
	
			<div class="form_box first">
				<div class="input_box">
					<label>사번</label>
					<input type="text" id="memberCode" placeholder="사번" disabled>
				</div>
				
				<div class="input_box">
					<label>아이디</label>
					<input type="text" id="loginId" placeholder="아이디" disabled>
				</div>
				
				<div class="input_box">
					<label>비밀번호</label>
					<a id="btnUpdateMemberPassword" class="password_btn" style="transition: all 0.2s ease-in-out 0s;">비밀번호 재설정</a>
				</div>
			</div>
			
			<div class="form_box">
				<div class="input_box">
					<label>이름</label>
					<input type="text" id="memberName" placeholder="이름" maxlength="35">
				</div>
				
				<div class="input_box">
					<label>연락처</label>
					<input type="tel" id="phoneNumber" placeholder="연락처" maxlength="13">
				</div>
				
				<div class="input_box">
					<label>이메일</label>
					<input type="text" id="email" placeholder="이메일" maxlength="255">
				</div>
						
				<div class="input_box">
					<label>유형</label>
					<div class="radio_box">
						<input type="radio" name="type" id="typeD" value="D"/>
						<label for="typeD" >닥터</label>
					</div>
					<div class="radio_box">
						<input type="radio" name="type" id="typeA" value="A"/>
						<label for="typeA" >상담</label>
					</div>
					<div class="radio_box">
						<input type="radio" name="type" id="typeE" value="E" checked/>
						<label for="typeE" >직원</label>
					</div>
				</div>
			</div>
			
			<p class="title">조직 및 권한</p>
	
			<div class="form_box">
				<div class="input_box">
					<label>조직/직무</label>
					<div class="select_list">
						<div class="select_box dropdown">
							<button type="button" class="label dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">조직</button>
							<input type="hidden" id="muGroupId"></input>
		
							<ul class="select_option_list dropdown-menu"></ul>
						</div>
					</div>
					
					<div class="select_list last">
						<div class="select_box dropdown">
							<button type="button" class="label dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">직무</button>
							<input type="hidden" id="muDutyId"></input>
		
							<ul class="select_option_list dropdown-menu"></ul>
						</div>
					</div>
				</div>
				
				<div class="input_box">
					<label>권한그룹</label>
					<div class="select_list">
						<div class="select_box dropdown">
							<button type="button" class="label dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">권한그룹 설정</button>
							<input type="hidden" id="muAuthId"></input>
							
							<ul class="select_option_list dropdown-menu"></ul>
						</div>
					</div>
				</div>

				<div class="input_box">
					<label>정렬순서</label>
					<input type="number" id="orderNumber" placeholder="">
				</div>
			</div>
			
			<div class="btn_box">
				<button id="btnUpdateMember" class="save_btn">저장</button>
				<button id="btnUpdateMemberStatus" class="account_btn">비활성화</button>
			</div>
		</div>
	</div>
</div>
<form id="memberUpdateForm" onsubmit="return false;"></form>
</th:block>
<th:block layout:fragment="layout_popup">
</th:block>
<th:block layout:fragment="layout_script">
<script src="/js/web/member/memberUpdate.js"></script>
<script src="/js/web/member/popup/memberPasswordPop.js"></script>
</th:block>
</html>
