<!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/webPhotoDietSelectList.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 categoryDivCd = "[[${param.categoryDivCd}]]" == "" ? "" : "[[${param.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 title = "[[${param.title}]]";
        let writeName = "";

        let dateType = "";
        let startDate = "";
        let endDate = "";

        let sort = "[[${param.sort}]]";
        let dir = "[[${param.dir}]]";
        let start = "[[${param.start}]]" == "" ? 0 : "[[${param.start}]]";
        let limit = "[[${param.limit}]]" == "" ? 500 : "[[${param.limit}]]";
    </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">

                <div class="search_list" style="margin-right: 10px;">
                    <select id="procedureReviewSearchCategory"
                        style="height: 38px; padding: 0 12px; border: 1px solid #E9ECF0; border-radius: 5px; font-size: 14px; outline: none; background: #fff;">
                        <option value="">전체 센터</option>
                        <option value="07">다이어트 센터</option>
                        <option value="08">쁘띠 센터</option>
                    </select>
                </div>

                <!-- 제목 검색 input -->
                <div class="search_list">
                    <div class="search_box">
                        <img src="/image/web/search_G.svg" alt="search" />
                        <input type="text" id="titleSearch" required placeholder="제목">

                        <div class="search_list"></div><!-- 검색내역 나오는곳 -->
                    </div>
                    <button id="btnSearchProcedureReview" class="search_btn" data-toggle="modal"
                        data-target=".work_closed_modal" style="transition: all 0.2s ease-in-out 0s;">조회</button>
                </div>

                <div class="right_btn_box">
                    <button id="btnInsertProcedureReview" class="treatmentdiet_btn">
                        <img src="/image/web/notice_btn_icon.svg" alt="등록">등록
                    </button>
                    <button id="btnDeleteProcedureReview" class="delete_btn">
                        <img src="/image/web/delete_btn_icon.svg" alt="삭제">삭제
                    </button>
                </div>
            </div>
        </div>

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

        <!-- 페이지게이션 -->
        <div class="page_box">
            <nav aria-label="Page navigation" class="navigation">
                <ul class="pagination" id="procedureReviewPagination"></ul>
            </nav>
        </div>
    </div>
    <form id="procedureReviewSelectListForm" 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/crm/procedureReview/procedureReviewSelectList.js"></script>
</th:block>

</html>