<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>시나리오이탈노드관리</title>
<%@ include file="/WEB-INF/jsp/adm/include/topLinkTag.jsp"%>
</head>

<script type="text/javascript">
	$(document).ready(function () {
		$("#testTb1").dataTable({
			"autoWidth": false,
			"paging": true,
			"pagingType": "full_numbers",
			"ordering": true,
			"info": false,
			"filter": false,
			"lengthChange": true,
			"dom": 'rt<"bottom"fip><"clear">',
		});

		$("#testTb2").dataTable({
			"autoWidth": false,
			"paging": true,
			"pagingType": "full_numbers",
			"ordering": true,
			"info": false,
			"filter": false,
			"lengthChange": true,
			"dom": 'rt<"bottom"fip><"clear">',
		});
	});
</script>

<body>

	<h1>ICOMSYS ADMIN</h1>
	<h1>대시보드</h1>
	<div class="skip_navigation">
		<ul>
			<li>
				<a href="#Content" class="go_content">본문 바로가기</a>
			</li>
			<li>
				<a href="#Gnb">메뉴 바로가기</a>
			</li>
		</ul>
	</div>

	<header id="header">
		<%@ include file="/WEB-INF/jsp/adm/include/header.jsp"%>
	</header>
	<c:import url="/adm/menu/getLnbMenu.do" />

	<script type="text/javascript" src="<c:url value='/aajs/outscenario.js' />"></script>

	<style>
		.minIco.stopBtnIco {
			background: url("/lib/assets/images/ico-stopBtn.png") no-repeat;
			background-size: contain;
		}
	</style>

	<h1>DASH BOARD</h1>

	<section id="Content" class="bot_common">
		<div class="location">
			<ul>
				<li class="home"><a href="#">HOME</a></li>
				<li><a href="#">모니터링</a></li>
				<li><a href="#">시나리오 이탈 노드 관리</a></li>
			</ul>
		</div>

		<!-- TODO: 래부터 신규 컨텐츠 마크업 입니다. -->
		<div class="sub_cont">
			<div class="cont_box">
				<div class="box_title">
					<div class="fl">
						<h2 class="mt12">시나리오 이탈 노드 관리</h2>
					</div>
					<div class="btn_wrap fr">

						<a href="#" class="btn" onclick="javascript:Outscenario.getOutscenarioList();">조회</a>
					</div>
				</div>
				<div class="tbl position-rel">
					<table class="search block">
						<colgroup>
							<col width="130px">
							<col width="180px">
							<col width="100px">
							<col width="400px">
							<col width="100px">
							<col width="80px">
						</colgroup>
						<tbody>
						<tr>
							<th class="tl">시나리오 그룹</th>
							<td>
								<div class="sel_box">
									<select class="wide" id="oprMngCode">

									</select>
								</div>
							</td>
							<th class="tl">통화일자</th>
							<td>
								<div class="input-grid-flex">
									<div class="datetimepicker_box">
										<div class='input-group date datetimepicker_from'>
											<input id="dataFrom" type='text' class="form-control" readonly />
											<span for="dataFrom" class="input-group-addon">
												<span class="glyphicon glyphicon-calendar calender_ico"></span>
											</span>
										</div>
										<span class="form_bridge">~</span>
										<div class='input-group date datetimepicker_to'>
											<input id="dataTo" type='text' class="form-control" readonly />
											<span for="dataTo" class="input-group-addon">
												<span class="glyphicon glyphicon-calendar calender_ico"></span>
											</span>
										</div>
									</div>
									<div class="rdo_box type-toggle">
										<input type="radio" name="radio_ipt" id="rdo02" class="" checked onclick="javascript:Outscenario.setCurrentDate();">
										<label for="rdo02">오늘</label>
										<input type="radio" name="radio_ipt" id="rdo01" class="" onclick="javascript:Outscenario.setWeekDate();">
										<label for="rdo01">일주일</label>
									</div>

<%--									<div class="chk_box type-toggle">--%>
<%--										<input type="checkbox" name="" id="limit3" class="" >--%>
<%--										<label for="limit3">상위 3개씩 보기</label>--%>
<%--									</div>--%>
								</div>
							</td>
							<th class="tl">시나리오 명</th>
							<td>
								<a href="#" class="moreOpenBtn"><b>+</b> 0개</a>
							</td>
						</tr>
						</tbody>
					</table>
					<div class="moreContOption">
						<div class="option-grid" id="scenarioChkbox">

						</div>

					</div>
					<script>
						$(document).ready(function () {
							$('.moreOpenBtn').on('click', function (e) {
								e.preventDefault()
								$('.moreContOption').toggle();
							})
						})

					</script>
				</div>
			</div>

			<div class="cont_box">
				<div class="box_title">
					<div class="fl">
						<h2 class="mt12">*이탈 기준 : 고객 종료</h2>
					</div>
					<div class="btn_wrap fr">
						<a href="#" class="btn excel" onclick="javascript:Outscenario.excelDownload();">다운로드</a>
					</div>
				</div>
				<div class="tbl">
					<table id="testTb1" class="click">
						<colgroup>
							<col width="auto">
							<col width="auto">
							<col width="auto">
							<col width="auto">
						</colgroup>
						<thead>
						<tr>
							<th>시나리오 그룹</th>
							<th>시나리오 명 (건수)</th>
							<th>이탈 구간 노드 코드 (노드 형태) (건수)</th>
							<th>이탈 노드 차지 비율</th>
						</tr>
						</thead>
						<tbody id="dataArea">

						</tbody>
					</table>
				</div>
			</div>
		</div>

	</section>

	<!--  modal :: 대화내용   -->
	<div class="modal" id="talkHistoryDetails" style="width:1030px">
		<div class="modal_header">
			<h3>대화내용</h3>
		</div>
		<div class="modal_body">
			<div class="row">
				<div class="col">
					<div class="modal_cont">
						<div class="box_title">
							<div class="fl">
								<a href="#" class="btn line" id="moveScenario">시나리오 편집기 이동</a>
							</div>
						</div>
						<div class="tbl">
							<table id="testTb2">
								<colgroup>
									<col width="auto">
									<col width="auto">
									<col width="auto">
									<col width="auto">
								</colgroup>
								<thead>
								<tr>
									<th>순번</th>
									<th>발신번호</th>
									<th>수신번호</th>
									<th>통화시간</th>
									<th>통화일시</th>
								</tr>
								</thead>
								<tbody id="callDataArea">

								</tbody>
							</table>
						</div>
					</div>
				</div>
				<div class="col">
					<div class="modal_cont vh-flex">
						<div class="box_title">
							<div class="fr">
								<div class="icon-guide">
									<span class="btn btn-sm line"><i class="minIco listeningIco"></i> 녹취듣기</span>
									<span class="btn btn-sm line"><i class="minIco downloaderIco"></i>녹취 다운로드</span>
									<span class="btn btn-sm line"><i class="minIco addedIco"></i> 대화 책갈피 추가</span>
									<span class="btn btn-sm line"><i class="minIco removeIco"></i> 대화 책갈피 제거</span>
								</div>
							</div>
						</div>
						<div class="scenario flex-1">
							<div class="content-scroll type-bg" style="height:457px;">
								<div class="monitering-chat" id="detailTalk">

								</div>

							</div>
						</div>


					</div>
				</div>
			</div>

		</div>
		<div class="modal_controller">
			<a href="#" class="close">close</a>
		</div>
	</div>

	<!-- modal :: 책갈피추가 -->
	<div class="modal multi" id="addedBookmark">
		<input type="hidden" id="addOprMngCode">
		<input type="hidden" id="logTypeVal">
		<input type="hidden" id="tokenVal">
		<input type="hidden" id="talkSeqVal">
		<div class="modal_header">
			<h3>대화 책갈피 추가</h3>
		</div>
		<div class="modal_body">
			<div class="modal_cont">
				<dl>
					<dt>
						<h4>대화내용</h4>
					</dt>
					<dd id="bookmarkText">

					</dd>
				</dl>
				<dl>
					<dt>
						<h4>책갈피 유형</h4>
					</dt>
					<dd>
						<div class="sel_box">
							<select class="wide" id="bookmarkErr">

							</select>
						</div>
					</dd>
				</dl>
			</div>
		</div>
		<div class="modal_footer">
			<div class="btn_wrap fr">
				<a href="#" class="btn" id="addBookmarkBtn">저장</a>
			</div>
		</div>
		<div class="modal_controller">
			<a href="#" class="close">close</a>
		</div>
	</div>

	<!-- modal :: 책갈피제거 -->
	<div class="modal multi" id="removeBookmark">
		<input type="hidden" id="removeOprMngCode">
		<input type="hidden" id="seqVal">
		<div class="modal_header">
			<h3>대화 책갈피 제거</h3>
		</div>
		<div class="modal_body">
			<div class="modal_cont">
				<dl>
					<dt>
						<h4>대화내용</h4>
					</dt>
					<dd>
						<input type="text" id="removeBookmarkText" style="max-width: 305px;" readonly/>
					</dd>
				</dl>
				<dl>
					<dt>
						<h4>조치 유형</h4>
					</dt>
					<dd>
						<div class="sel_box">
							<select class="wide" id="measureType">

							</select>
						</div>
					</dd>
				</dl>
				<dl>
					<dt>
						<h4>조치 내용</h4>
					</dt>
					<dd>
						<div class="sel_box">
							<input type="text" id="measureInfo" maxlength="20" style="max-width: 305px;"/>
						</div>
					</dd>
				</dl>
			</div>
		</div>
		<div class="modal_footer">
			<div class="btn_wrap fr">
				<a href="#" class="btn" id="removeBookmarkBtn">저장</a>
			</div>
		</div>
		<div class="modal_controller">
			<a href="#" class="close">close</a>
		</div>
	</div>

	<div class="audio-box">
		<audio src=""></audio>
	</div>


</body>
</html>
