<th:block id="admin_left" class="admin_left" th:fragment="admin_left">
    <ul class="sidebar">
        <li class="logo txt">
            <a href="/index"><img src="/img/logo_tripleA.svg" /></a>
        </li>
        <li class="leftNav">
            <div class="right">
                <div class="nav-item"
                    th:class="${currentURI == '/index' } ? 'nav-item active' : 'nav-item'">
                    <a class="nav-link"
                        th:class="${currentURI == '/index' } ? 'nav-link on' : 'nav-link'"
                        href="/index">
                        <em class="ico icon1"></em><span>대시보드</span>
                    </a>
                </div>
                <div class="nav-item"
                    th:class="${currentURI == '/mypage' } ? 'nav-item active' : 'nav-item'">
                    <a class="nav-link"
                        th:class="${currentURI == '/mypage' } ? 'nav-link on' : 'nav-link'"
                        href="/mypage">
                        <em class="ico icon2"></em><span>마이페이지</span>
                    </a>
                </div>
                <div class="nav-item"
                    th:class="${currentURI == '/limit' } ? 'nav-item active' : 'nav-item'">
                    <a class="nav-link"
                        th:class="${currentURI == '/limit' } ? 'nav-link on' : 'nav-link'"
                        href="/limit">
                        <em class="ico icon3"></em><span>최대 베팅 금액 제한</span>
                    </a>
                </div>
            </div>
        </li>
        <li class="leftNav">
            <div class="right">
                <div class="nav-item sub"
                    th:class="${currentURI == '/cash/charge' || currentURI == '/cash/chargeWait' || currentURI == '/cash/exchange' || currentURI == '/cash/exchangeWait' } ? 'nav-item sub active' : 'nav-item sub'">
                    <a class="nav-link">
                        <em class="ico icon4"></em><span>충전/지급</span><em style="display:none" class="bellT cioCnt"></em>
                        <i class="fa fa-caret-down" aria-hidden="true"></i>
                    </a>
                </div>
                <ul class="nav-item-sub"
                    th:style="${currentURI == '/cash/charge' || currentURI == '/cash/chargeWait'  || currentURI == '/cash/exchange' || currentURI == '/cash/exchangeWait'  } ? 'display:block' : 'display:none'">
                    <li th:class="${currentURI == '/cash/charge' } ? 'on' : ''"><a
                            href="/cash/charge">- 충전 내역</a></li><li th:class="${currentURI == '/cash/chargeWait' } ? 'on' : ''"><a
                            href="/cash/chargeWait?creditStatus=0">- 충전 신청<em style="display:none"
                                class="bell ciCnt">(1)</em></a></li>
                    <li th:class="${currentURI == '/cash/exchange' } ? 'on' : ''"><a
                            href="/cash/exchange">- 지급 내역</a></li>
                    <li th:class="${currentURI == '/cash/exchangeWait' } ? 'on' : ''"><a
                            href="/cash/exchangeWait?creditStatus=0">- 환전 신청<em style="display:none"
                                class="bell coCnt">(1)</em></a></li>
                </ul>
            </div>
        </li>
        <li class="leftNav">
            <div class="right">
                <div class="nav-item sub" th:class="${currentURI == '/agent/transaction' || currentURI == '/agent' || currentURI == '/agent/add' } ? 'nav-item sub active' : 'nav-item sub'">
                    <a class="nav-link">
                        <em class="ico icon5"></em><span>에이전시</span>
                        <i class="fa fa-caret-down" aria-hidden="true"></i>
                    </a>
                </div>
                <ul class="nav-item-sub" th:style="${currentURI == '/agent/transaction'  || currentURI == '/agent' || currentURI == '/agent/add'  } ? 'display:block' : 'display:none'">
                    <li th:class="${currentURI == '/agent/transaction' } ? 'on' : ''"><a href="/agent/transaction">- 트랜잭션 내역</a></li>
                    <li th:class="${currentURI == '/agent' } ? 'on' : ''"><a href="/agent">- 에이전시 목록</a></li>
                    <li th:class="${currentURI == '/agent/add' } ? 'on' : ''"><a href="/agent/add">- 에이전시 생성</a></li>
                </ul>
            </div>
        </li>
        <li class="leftNav">
            <div class="right">
                <div class="nav-item sub" th:class="${currentURI == '/insurance/betList' || currentURI == '/insurance/history' || currentURI == '/insurance/apply' || currentURI == '/insurance/exchange' } ? 'nav-item sub active' : 'nav-item sub'">
                    <a class="nav-link">
                        <em class="ico icon6"></em><span>보험</span><em style="display:none" class="bellT iioCnt"></em>
                        <i class="fa fa-caret-down" aria-hidden="true"></i>
                    </a>
                </div>
                <ul class="nav-item-sub"
                    th:style="${currentURI == '/insurance/betList' || currentURI == '/insurance/history' || currentURI == '/insurance/history'  || currentURI == '/insurance/apply' || currentURI == '/insurance/exchange'  } ? 'display:block' : 'display:none'">
                    <li th:class="${currentURI == '/insurance/betList'  && #ctx.request.queryString == 'updown=up' } ? 'on' : ''">
                        <a href="/insurance/betList?updown=up">- 상부보험베팅내역</a>
                    </li>
                    <li th:class="${currentURI == '/insurance/betList'  && #ctx.request.queryString == 'updown=down'} ? 'on' : ''">
                        <a href="/insurance/betList?updown=down">- 하부보험베팅내역</a>
                    </li>
                    <li th:class="${currentURI == '/insurance/history' } ? 'on' : ''">
                        <a href="/insurance/history">- 보험변화내역</a>
                    </li>
                    <li th:class="${currentURI == '/insurance/apply' } ? 'on' : ''">
                        <a href="/insurance/apply">- 하부보험금신청내역<em style="display:none" class="bell iiCnt">(1)</em></a>
                    </li>
                    <li th:class="${currentURI == '/insurance/exchange' } ? 'on' : ''">
                        <a href="/insurance/exchange">- 하부보험금환전내역<em style="display:none" class="bell ioCnt">(1)</em></a>
                    </li>
                    <li th:class="${currentURI == '/insurance/set' } ? 'on' : ''">
                        <a href="/insurance/set">- 보험설정</a>
                    </li>
                </ul>
            </div>
        </li>

        <li class="leftNav">
            <div class="right">
                <div class="nav-item sub"
                    th:class="${currentURI == '/user/betlist' || currentURI == '/user/transaction' || currentURI == '/user' || currentURI == '/user/payments' } ? 'nav-item sub active' : 'nav-item sub'">
                    <a class="nav-link">
                        <em class="ico icon2"></em><span>유저</span>
                        <i class="fa fa-caret-down" aria-hidden="true"></i>
                    </a>
                </div>
                <ul class="nav-item-sub"
                    th:style="${currentURI == '/user/betlist'  || currentURI == '/user/transaction' || currentURI == '/user' || currentURI == '/user/payments'  } ? 'display:block' : 'display:none'">
                    <li th:class="${currentURI == '/user/betlist' } ? 'on' : ''">
                        <a href="/user/betlist?searchType=casino">- 베팅 내역</a>
						<!--ul class="nav-item-sub">
			              	<li class="on"><a href="/user/betlist?searchType=casino">- 카지노</a></li>
			              	<li><a href="/user/betlist?searchType=hcasino">- 호텔카지노</a></li>
			              	<li><a href="/user/betlist?searchType=sport">- 스포츠</a></li>
			              	<li><a href="/user/betlist?searchType=slot">- 슬롯</a></li>
			              	<li><a href="/user/betlist?searchType=mine">- 폭탄게임</a></li>
			            </ul-->
					</li>
		<li th:class="${currentURI == '/user/transaction' } ? 'on' : ''"><a
                            href="/user/transaction">- 트랜잭션 내역</a></li>
                    <li th:class="${currentURI == '/user' } ? 'on' : ''"><a href="/user">- 유저 목록</a>
                    </li>
                    <li th:class="${currentURI == '/user/payments' } ? 'on' : ''"><a
                            href="/user/payments">- 지급 내역</a></li>
                </ul>
            </div>
        </li>
        <li class="leftNav">
            <div class="right">
                <div class="nav-item sub"
                    th:class="${currentURI == '/stat' || currentURI == '/stat/bottom' || currentURI == '/stat/pot' || currentURI == '/stat/casino' || currentURI == '/stat/user' || currentURI == '/stat/date' } ? 'nav-item sub active' : 'nav-item sub'">
                    <a class="nav-link">
                        <em class="ico icon7"></em><span>통계</span>
                        <i class="fa fa-caret-down" aria-hidden="true"></i>
                    </a>
                </div>
                <ul class="nav-item-sub"
                    th:style="${currentURI == '/stat'  || currentURI == '/stat/bottom' || currentURI == '/stat/pot' || currentURI == '/stat/casino' || currentURI == '/stat/user' || currentURI == '/stat/date' || currentURI == '/stat/agentReport'  } ? 'display:block' : 'display:none'">
                    <li th:class="${currentURI == '/stat' } ? 'on' : ''">
                        <a href="/stat">- 마이 에이전시 수익 리스트</a>
                    </li>
                    <li th:class="${currentURI == '/stat/bottom' } ? 'on' : ''">
                        <a href="/stat/bottom">- 하부 에이전시 수익 리스트</a>
                    </li>
                    <li th:class="${currentURI == '/stat/pot' } ? 'on' : ''">
                        <a href="/stat/pot">- 크레딧 거래 내역</a>
                    </li>
                    <li th:class="${currentURI == '/stat/casino' } ? 'on' : ''">
                        <a href="/stat/casino">- 게임 회사별 수익 리스트</a>
                    </li>
                    <li th:class="${currentURI == '/stat/user' } ? 'on' : ''">
                        <a href="/stat/user">- 유저 수익 검색</a>
                    </li>
                    <li th:class="${currentURI == '/stat/date' } ? 'on' : ''">
                        <a href="/stat/date">- 기간내 유저 수익 내역</a>
                    </li>
                    <li th:class="${currentURI == '/stat/std' } ? 'on' : ''">
                        <a href="/stat/std">- std</a>
                    </li>
                    <li th:class="${currentURI == '/stat/agentReport' } ? 'on' : ''">
                        <a href="/stat/agentReport">- 에이전시 수익정산</a>
                    </li>
                </ul>
            </div>
        </li>
        <li class="leftNav">
            <div class="right">
                <div class="nav-item sub"
                    th:class="${currentURI == '/agent/transaction' || currentURI == '/agent' || currentURI == '/agent/add' } ? 'nav-item sub active' : 'nav-item sub'">
                    <a class="nav-link">
                        <em class="ico icon9"></em><span>설정</span>
                        <i class="fa fa-caret-down" aria-hidden="true"></i>
                    </a>
                </div>
                <ul class="nav-item-sub">
                    <li><a href="/agent/gamelink">- 게임사 연결설정</a></li>
                    <li><a href="/agent/venderlist">- 상위 벤더 개별 연결</a></li>
                    <li><a href="/agent/apiset">- apiset</a></li>
                </ul>
            </div>
        </li>
        <li class="leftNav">
            <div class="right">
                <div class="nav-item sub"
                    th:class="${currentURI == '/apiAuth' || currentURI == '/apiPlay' || currentURI == '/apiBetList' || currentURI == '/apiBetDetail'  } ? 'nav-item sub active' : 'nav-item sub'">
                    <a class="nav-link">
                        <em class="ico icon8"></em><span>Dev</span>
                        <i class="fa fa-caret-down" aria-hidden="true"></i>
                    </a>
                </div>
                <ul class="nav-item-sub" th:style="${currentURI == '/apiAuth' || currentURI == '/apiPlay' || currentURI == '/apiBetList' || currentURI == '/apiBetDetail'  } ? 'display:block' : 'display:none'">
                    <li ><a href="/manual">- API문서</a></li>
                    <li th:class="${currentURI == '/apiIntro' } ? 'on' : ''"><a href="/apiIntro">- 소개 (작업중) </a></li>
                    <li><a href="/apiAuth">- 인증</a></li>
                    <li><a href="/apiPlay">- 게임런칭</a></li>
                    <li><a href="/apiBetList">- 트랜젝션목록</a></li>
                    <li><a href="/apiBetDetail">- 베팅상세</a></li>
                </ul>               
            </div>
        </li>
		<!-- 
          <li class="leftNav">
          	  <div class="left"><img src="/img/menu_icon7.svg" /></div>
          	  <div class="right">
          	      <div class="nav-item">
		              <a class="nav-link" href="/api">
		                  <span>기본 API (분리형 지갑)</span>
		              </a>
		          </div>
		          <div class="nav-item">
		              <a class="nav-link" href="/apiAll">
		                  <span>확장 API (통합형 지갑)</span>
		              </a>
		          </div>
		          <div class="nav-item">
		              <a class="nav-link" href="/apiLog">
		                  <span>API 에러 로그</span>
		              </a>
		          </div>
		          <div class="nav-item">
		              <a class="nav-link" href="/apiManual">
		                  <span>API 메뉴얼</span>
		              </a>
		          </div>
		          <div class="nav-item">
		              <a class="nav-link" href="/infoRecord">
		                  <span>수정 정보 기록</span>
		              </a>
		          </div>
          	  </div>
          </li> 	
          -->
	</ul><!-- left -->
	<!--div class="mBox box2">	       	
	        <p>
	          <span>현재 보유 금액</span>
	          <span class="lb">881,225,496  C</span>
	        </p>
	        <p href="/cash/point">
	          <span>현재 보유 포인트</span>
	          <span class="lb">0  P</span>
	        </p>
            <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" value="881,225,496" readonly=""></li>
                  </ul>
                  <ul>
                    <li>보유 서브포인트</li>
                    <li>
                    	<input type="text" id="pointAmt" value="0" readonly="">
                    
                    </li>
                  </ul>
                  <ul>
                    <li>신청 C</li>
                    <li><input id="ciCreditAmt" type="text"></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" value="881,225,496" readonly=""></li>
                  </ul>
                  <ul>
                    <li>환전 C</li>
                    <li><input id="coCreditAmt" type="text"></li>
                  </ul>
                </div>
                <div class="modal-footer">
                  <a href="javascript:exchange()">환전신청</a>
                </div>
              </div>
            </div>
	           
        </div-->
	<!-- <div class="mBox box1">
		<p>
			<span>보유 보험금</span>
			<span class="lb" th:text="|${#numbers.formatInteger(insureAmt,0, 'COMMA')} C|">8,540,697 C</span>
		</p>
		<p href="applypoint.html">
			<span>보유 보험 포인트</span>
			<span class="lb" th:text="|${#numbers.formatInteger(insurePointAmt,0, 'COMMA')} P|">372,858 P</span>
		</p>
		<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>
	</div> -->
<div class="mBox box1">
        <div class="ptBtn">
            <span>전체 사이트:</span>
            <span id="on_wait" style="display:none">처리중</span>
            <a id="on_bt" class="ptBtns btn" href="javascript:changeSiteParseSet('on')">파싱설정 ON</a>
        </div>
        <div class="ptBtn mt10">
            <span>전체 사이트:</span>
            <span id="off_wait" style="display:none">처리중</span>
            <a id="off_bt" class="ptBtns btn" href="javascript:changeSiteParseSet('off')">파싱설정 OFF</a>
        </div>
		<!-- 
		<div class="ptBtn mt10">
			<span>p소프트 : </span>
			<span id="gsoft"  style="display:none">처리중</span>
			<a id="gsoft" class="ptBtns btn" href="javascript:userwithdraw('gsoft')">유저 보유금 회수</a>
		</div>
		 -->
	</div>
	
</th:block>