<th:block id="admin_top" class="admin_top" th:fragment="admin_top">
	<nav class="navbar">
		<div class="user">
			<div class="selectBox box">
				<img class="img" src="/img/icon_user.svg" />
				<div class="name" th:text="${loginSite.siteId}">OMS</div>
				<i class="fa fa-caret-down" aria-hidden="true"></i>
			</div>
			<div class="tgBoxcon head t70">
				<ul>
					<li><a href="/mypage"><i class="fas fa-cogs fa-sm fa-fw"></i>설정 및 정보</a></li>

				</ul>

				<ul>
					<li><a href="/logout"><i class="fas fa-sign-out-alt fa-sm fa-fw"></i>로그아웃</a></li>
				</ul>
			</div>
			<!--div class="bell"><i class="fas fa-bell fa-fw"></i><em>0</em></em></div-->
		</div>

		<!--ul class="navbar-nav">                             
                <li class="nav-item mWrap">
                  <div class="">
                    <a>
                      <span>현재 보유 금액</span>
                      <span class="lb" th:text="|${#numbers.formatInteger(siteCredit,0, 'COMMA')}  C|">220,263,133 C</span>
                    </a>
                    <a href="/cash/point">
                      <span>현재 보유 포인트</span>
                      <span class="lb" th:text="|${#numbers.formatInteger(sitePoint,0, 'COMMA')}  P|">0 P</span>
                    </a>
                  </div>
                  <div class="ptBtn">
	                  <a class="ptBtns btn">C 신청</a>
	                  <div class="modal-content">
	                    <div class="modal-header"><h5>C 신청</h5><a>×</a></div>
	                    <div class="modal-body">
	                      <ul>
	                        <li>보유 C</li>
	                        <li><input type="text" th:value="|${#numbers.formatInteger(siteCredit,0, 'COMMA')}|" readonly></li>
	                      </ul>
	                      <ul>
	                        <li>보유 서브포인트</li>
	                        <li>
	                        	<input type="text" id="pointAmt" th:value="|${#numbers.formatInteger(sitePoint,0, 'COMMA')}|" readonly>
	                        
	                        </li>
	                      </ul>
	                      <ul>
	                        <li>신청 C</li>
	                        <li><input id="ciCreditAmt" type="text" onkeypress="num_check()" onkeyup="comma_inputgeuminputgeum('ciCreditAmt',  this.value)"></li>
	                      </ul>
	                      <ul>
	                        <li>서브포인트 사용여부</li>
	                        <li class="chk"><input type="checkbox" id="pointUseYn" onclick="pointUseYnClick(this.checked)"></li>
	                      </ul>
	                    </div>
	                    <div class="modal-footer">
	                      <a href="javascript:charge()">지급신청</a>
	                    </div>
	                  </div>
	                  <a class="ptBtns btn">C 환전</a>
	                  <div class="modal-content">
	                    <div class="modal-header"><h5>C 환전</h5><a>×</a></div>
	                    <div class="modal-body">
	                      <ul>
	                        <li>보유 C</li>
	                        <li><input type="text" th:value="|${#numbers.formatInteger(siteCredit,0, 'COMMA')}|" readonly></li>
	                      </ul>
	                      <ul>
	                        <li>환전 C</li>
	                        <li><input id="coCreditAmt" type="text" onkeypress="num_check()" onkeyup="comma_inputgeuminputgeum('coCreditAmt',  this.value)"></li>
	                      </ul>
	                    </div>
	                    <div class="modal-footer">
	                      <a href="javascript:exchange()">환전신청</a>
	                    </div>
	                  </div>
	                </div>
                </li>
                
                <li class="nav-item mWrap">
                  <div class="">
                    <a>
                      <span>보유 보험금</span>
                      <span class="lb" th:text="|${#numbers.formatInteger(insureAmt,0, 'COMMA')}  C|">0 C</span>
                    </a>
                    <a href="applypoint.html">
                      <span>보유 보험 포인트</span>
                      <span class="lb" th:text="|${#numbers.formatInteger(insurePointAmt,0, 'COMMA')}  P|">0 P</span>
                    </a>
                  </div>
                  <div class="ptBtn">
	                  <a class="ptBtns btn">보험 신청</a>
	                  <div class="modal-content">
	                    <div class="modal-header"><h5>보험 신청</h5><a>×</a></div>
	                    <div class="modal-body">
	                      <ul>
	                        <li>보유 보험금</li>
	                        <li><input type="text" th:value="|${#numbers.formatInteger(insureAmt,0, 'COMMA')}|" readonly></li>
	                      </ul>
	                      <ul>
	                        <li>보유 보험포인트</li>
	                        <li><input type="text"  id="isPointAmt"  th:value="|${#numbers.formatInteger(insurePointAmt,0, 'COMMA')}|" readonly></li>
	                      </ul>
	                      <ul>
	                        <li>신청 보험금</li>
	                        <li><input type="text" id="ciInsureAmt" onkeypress="num_check()" onkeyup="comma_inputgeuminputgeum('ciInsureAmt',  this.value)"></li>
	                      </ul>
	                      <ul>
	                        <li>보험포인트 사용여부</li>
	                        <li class="chk"><input type="checkbox" id="isPointUseYn" onclick="isPointUseYnClick(this.checked)"></li>
	                      </ul>
	                    </div>
	                    <div class="modal-footer">
	                      <a href="javascript:chargeInsure()">지급신청</a>
	                    </div>
	                  </div>
	                  <a class="ptBtns btn">보험 환전</a>
	                  <div class="modal-content">
	                    <div class="modal-header"><h5>보험 환전</h5><a>×</a></div>
	                    <div class="modal-body">
	                      <ul>
	                        <li>보유 보험금</li>
	                        <li><input type="text" th:value="|${#numbers.formatInteger(insureAmt,0, 'COMMA')}|" readonly></li>
	                      </ul>
	                      <ul>
	                        <li>환전 보험금</li>
	                        <li><input type="text"  id="coInsureAmt" onkeypress="num_check()" onkeyup="comma_inputgeuminputgeum('coInsureAmt',  this.value)" ></li>
	                      </ul>
	                    </div>
	                    <div class="modal-footer">
	                      <a href="javascript:exchangeInsure()">환전신청</a>
	                    </div>
	                  </div>
	                </div>
                </li>
                
                <li class="nav-item mWrap">
                  <div class="">
                    <a>
                      <span>하부 에이전시 현재 총 보유 금액</span>
                      <span class="lb" th:text="|${#numbers.formatInteger(underSiteCredit,0, 'COMMA')}  C|">0 C</span>
                    </a>
                    <a>
                      <span>하부 유저 현재 총 보유 금액</span>
                      <span class="lb">0 C</span>
                    </a>
                  </div>
                </li>               
                <li class="nav-item mWrap">
                  <div class="">
                    <a href="/cash/chargeWait?creditStatus=0">
                      <span>C 신청</span>
                      <span class="lb blc" th:text="|(${creditWait.ciCnt})|"></span>
                    </a>
                    <a href="/cash/exchangeWait?creditStatus=0">
                      <span>C 환전</span>
                      <span class="lb rdc" th:text="|(${creditWait.coCnt})|">(0)</span>
                    </a>
                  </div>
                </li>
                <--li class="nav-item"><a><i class="fas fa-bell fa-fw"></i><span class="badge">31</span></a></li>
                <li class="nav-item">
                  <a class="selectBox">
                    <div class="flex">
                      <img src="/img/icon_my.svg" />
                      <span th:text="${loginSite.siteId}">no.1 (@no.1)</span>
                    </div>
                  </a>
                  <div class="tgBoxcon head">
                    <ul>
                      <li><a href="mypage.html"><i class="fas fa-cogs fa-sm fa-fw"></i>설정 및 정보</a></li>
                      <li><a href="alert.html"><i class="fas fa-bell fa-sm fa-fw"></i>알림 내역</a></li>
                    </ul>
                    <ul>
                      <li><a class="modalBtn"><i class="fas fa-sign-out-alt fa-sm fa-fw"></i>다른 디바이스 로그아웃</a></li>
                    </ul>
                    <ul>
                      <li><a href="/logoutProc"><i class="fas fa-sign-out-alt fa-sm fa-fw"></i>로그아웃</a></li>
                    </ul>
                  </div>
                </li->
              </ul-->
	</nav>


	<div class="modal-content">
		<div class="modal-header">
			<h5>다른 디바이스들을 로그아웃 하시겠습니까?</h5><a>×</a>
		</div>
		<div class="modal-body">
			<ul>
				<li>현재 비밀번호</li>
				<li><input type="text"><span>현재 접속 중인 디바이스를 제외한 모든 디바이스가 로그아웃 됩니다.</span></li>
			</ul>
		</div>
		<div class="modal-footer">
			<a>취소</a>
			<a>로그아웃</a>
		</div>
	</div>
</th:block>