<%@ 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>
<body>

	<h1>ICOMSYS ADMIN</h1>
	<h1>API NODE</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/conversationMark.js' />"></script>

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

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

	<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="fr">
						<div class="btn_wrap fl">
							<a href="javascript:Bookmark.fncConversationMarkList();" class="btn">조회</a>
						</div>
					</div>
				</div>
				<div class="tbl">
					<table class="search block">
						<colgroup>
							<col width="140px">
							<col width="40%">
							<col width="140px">
							<col width="20%">
							<col width="140px">
							<col width="20%">
						</colgroup>
						<tbody>

						<tr>
							<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:Bookmark.setCurrentDate();">
										<label for="rdo02">오늘</label>
										<input type="radio" name="radio_ipt" id="rdo01" class="" onclick="javascript:Bookmark.setWeekDate();">
										<label for="rdo01">일주일</label>
									</div>
								</div>
							</td>
							<th class="tl">오류 유형</th>
							<td>
								<div class="sel_box">
									<select class="wide" id="bookmarkErrCode">
										<option value="">전체</option>
									</select>
								</div>
							</td>
							<th class="tl">조치 유형</th>
							<td>
								<div class="sel_box">
									<select class="wide" id="measureTypeCode">
										<option value="">전체</option>
									</select>
								</div>
							</td>
						</tr>
						<tr>
							<th class="tl">대화내용</th>
							<td class="tl" colspan="5">
								<input type="text" class="max-full" id="talkText" maxlength="20" style="width: 700px;">
							</td>
						</tr>
						</tbody>
					</table>
				</div>
			</div>

			<div class="cont_box">
				<div class="box_title">
					<div class="fl">
						<h2 class="mt12">대화 책갈피 리스트</h2>
					</div>
					<div class="fr">
						<div class="btn_wrap fr">
							<a href="#" class="btn excel" onclick="javascript:Bookmark.excelDownload();">다운로드</a>
						</div>
						<div class="icon-guide">
							<span class="btn btn-sm line"><i class="minIco addedIco-sq"></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="tbl">
					<table id="testTb1" class="click">
						<colgroup>
							<col width="70px">
							<col width="160px">
							<col width="150px">
							<col width="150px">
							<col width="auto">
							<col width="160px">
							<col width="150px">
						</colgroup>
						<thead>
						<tr>
							<th>No</th>
							<th>통화일자</th>
							<th>오류 유형</th>
							<th>조치 유형</th>
							<th>대화내용</th>
							<th>등록일자</th>
							<th>기능</th>
						</tr>
						</thead>
						<tbody id="dataArea">

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

	</section>

	<div class="modal" id="viewConversationContent" style="width:800px">
		<div class="modal_header">
			<h3>대화내용</h3>
		</div>
		<div class="modal_body">
			<div class="modal_cont">
				<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-bookmark">
					<div class="content-scroll type-bg" style="height:274px;">
						<div class="monitering-chat" id="detailTalk">

						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="modal_controller">
			<a href="#" class="close" id="closeConversationBtn">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>
<%--						<span id="removeBookmarkText"></span>--%>
						<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>

	<!--  modal :: 인텐트 예문 추가  -->
	<c:import url="/admin/rcp/statistics/monitoring/intent/addexamplepopup.do" />

</body>
</html>
