<!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/webFeedbackSelectList.css?v1.1">
    <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 categoryDivCd = "[[${param.categoryDivCd}]]"==""?"":"[[${param.categoryDivCd}]]";
		categoryDivCd = "[[${categoryDivCd}]]"==""?"":"[[${categoryDivCd}]]";
        
        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 branchOfficeCd = "[[${param.branchOfficeCd}]]";
        let mbName = "[[${param.mbName}]]";
        let mbHp = "[[${param.mbHp}]]";
        let opinionClassificationCd = "[[${param.opinionClassificationCd}]]";

        
        let webFeedbackSort               = "[[${param.webFeedbackSort}]]";
        let webFeedbackDir                = "[[${param.webFeedbackDir}]]";
        let webFeedbackStart              = "[[${param.webFeedbackStart}]]"==""?0:"[[${param.webFeedbackStart}]]";
        let webFeedbackLimit              = "[[${param.webFeedbackLimit}]]"==""?500:"[[${param.webFeedbackLimit}]]";

        let webFeedbackSearchStartDate    = "[[${param.webFeedbackSearchStartDate}]]";
        let webFeedbackSearchEndDate      = "[[${param.webFeedbackSearchEndDate}]]";
        let webFeedbackSearchDateType     = "[[${param.webFeedbackSearchDateType}]]"==""?"A":"[[${param.webFeedbackSearchDateType}]]";
    </script>
</th:block>
<th:block layout:fragment="layout_content">
    <!-- 센터쪽 -->
    <div class="center_box">
        <p class="page_title">홈페이지 예약</p>

        <div class="filter_box">
            <div class="form_box">                

                <!-- 이름input -->
                <div class="search_list">
                    <div class="search_box">
					    <select id="branchOfficeCd" required>
					        <option value="">전체</option>
					        <option value="GN">강남</option>
					    </select>
					    <div class="search_list"></div>
					</div>
                    <div class="search_box">
                        <img src="/image/web/search_G.svg" alt="search"/>
                        <input type="text" id="mbName" required placeholder="이름">

                        <div class="search_list"></div><!-- 검색내역 나오는곳 -->
                    </div>
                    <div class="search_box">
                        <img src="/image/web/search_G.svg" alt="search"/>
                        <input type="text" id="mbHp" required placeholder="핸드폰번호">

                        <div class="search_list"></div><!-- 검색내역 나오는곳 -->
                    </div>
                    <!-- Classification selectbox -->
					<div class="search_box">
					    <select id="opinionClassificationCd" required>
					        <option value="">전체</option>
					        <option value="PR">칭찬</option>
					        <option value="DS">불만</option>
					        <option value="ET">기타</option>
					    </select>
					    <div class="search_list"></div>
					</div>
                    <button id="btnSearchWebFeedback" class="search_btn" data-toggle="modal" data-target=".work_closed_modal" style="transition: all 0.2s ease-in-out 0s;">조회</button>
                </div>
            </div>
        </div>

        <div id="webFeedbackGrid" class="table_box ag-theme-balham"></div>

        <!-- 페이지게이션 -->
        <div class="page_box">
            <nav aria-label="Page navigation" class="navigation">
                <ul class="pagination" id="webFeedbackPagination"></ul>
            </nav>
        </div>
    </div>
    <form id="webFeedbackSelectListForm" method="POST" target="_blank"></form>
</th:block>
<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/appointment/Appointment.js"></script>
</th:block>
</html>