<!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/marketing_message_detail.css">
		<link rel="stylesheet" href="/css/web/modal_marketing_message.css">
		<link rel="stylesheet" href="/css/web/grid.css?v1.1">
	</th:block>

<th:block layout:fragment="layout_top_script">
<script src="/js/web/jquery.twbsPagination.js" type="text/javascript"></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 smsSearchKeywordParam = "[[${param.smsSearchKeywordParam}]]";
let smsSort               = "[[${param.smsSort}]]";
let smsDir                = "[[${param.smsDir}]]";
let smsStart              = "[[${param.smsStart}]]"==""?0:"[[${param.smsStart}]]";
let smsLimit              = "[[${param.smsLimit}]]"==""?100:"[[${param.smsLimit}]]";

let smsSearchStartDate    = "[[${param.smsSearchStartDate}]]";
let smsSearchEndDate      = "[[${param.smsSearchEndDate}]]";
let smsSearchDateType     = "[[${param.smsSearchDateType}]]"==""?"A":"[[${param.smsSearchDateType}]]";

</script>
</th:block>
<th:block layout:fragment="layout_content">
	<!-- 센터쪽 -->
	<div class="center_box">
		<p class="page_title">문자 발송내역</p>
		<p class="total" id="marketingSmsTotalCount">0건</p>

		<div class="filter_box">
			<div class="form_box">
				<!-- 캘린더input -->
				<div class="select_box first dropdown">
					<button class="label" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">기간</button>
					<input type="hidden" id="smsSearchDateType">

					<ul class="select_option_list dropdown-menu">
						<li id="li_A" class="option_list_item first" >오늘</li>
						<li id="li_B" class="option_list_item">최근30일</li>
						<li id="li_C" class="option_list_item">최근90일</li>
						<li id="li_D" class="option_list_item">이번주</li>
						<li id="li_E" class="option_list_item">이번달</li>
						<li id="li_F" class="option_list_item">올해</li>
						<li id="li_G" class="option_list_item">지난주</li>
						<li id="li_H" class="option_list_item">지난달</li>
					</ul>
				</div>
				<div class="calendar_box">
					<div class="date_box" id="divSmsSearchStartDate">
						<img src="/image/web/calendar.svg" alt="calendar">
						<input type="date" class="date_picker" id="smsSearchStartDate">
					</div>

					<span class="slash">-</span>

					<div class="date_box last" id="divSmsSearchEndDate">
						<img src="/image/web/calendar.svg" alt="calendar">
						<input type="date" class="date_picker" id="smsSearchEndDate">
					</div>
				</div>

				<!--<div class="select_box dropdown">
					<button class="label" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">카테고리</button>
					<ul class="select_option_list dropdown-menu" id="">
						<li class="option_list_item first">카테고리</li>
						<li class="option_list_item">카테고리</li>
					</ul>
				</div>-->

				<!--<div class="select_box last dropdown">
					<button class="label" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">템플릿</button>
					<ul class="select_option_list dropdown-menu" id="">
						<li class="option_list_item first">템플릿</li>
						<li class="option_list_item">피부</li>
					</ul>
				</div>-->

				<!-- 이름input -->
				<div class="search_list">
					<div class="search_box">
						<img src="/image/web/search_G.svg" alt="search">
						<input type="text" placeholder="고객명" id="txt_smsSearchKeyword">

						<div class="search_list"></div><!-- 검색내역 나오는곳 -->
					</div>
					<button class="search_btn" id="searchBtn">조회</button>
				</div>
			</div>
		</div>

		<!-- 고객목록 테이블 -->
		<div id="smsGrid" class="table_box ag-theme-balham"></div>

		<!-- 페이지게이션 -->
		<div class="page_box">
			<nav aria-label="Page navigation" class="navigation">
				<ul class="pagination" id="smsPagination">
				</ul>
			</nav>
		</div>
	</div>
<form id="marketingSmsHistSelectListForm" onsubmit="return false;"></form>
<th:block layout:fragment="layout_popup">
</th:block>
<th:block layout:fragment="layout_script">
<script src="/js/web/ag-grid-community-29.3.5.min.js"></script>
<script src="/js/web/marketing/marketingSmsHistSelectList.js"></script>

<script src="/js/web/marketing/popup/marketingSmsSelectPop.js"></script>
</th:block>
</html>